From 0dd0a1775790aa17d0a17f546e475092a13513cb Mon Sep 17 00:00:00 2001 From: literat Date: Fri, 16 Feb 2024 10:36:26 +0100 Subject: [PATCH] Chore(web-react): Icon and web package are optional peer dependencies * we can use web-react without web and icons package * the web-react package is technically unstyled, it uses class names only * however some kind of styling must be used, and in a same manner the icons must be used * icons are exported and generated from the supernova * web package is used as a base for styling, so install it --- packages/web-react/package.json | 17 ++++++++++++----- yarn.lock | 14 +++++++++----- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packages/web-react/package.json b/packages/web-react/package.json index 0884ef8bd0..f801a6af7d 100644 --- a/packages/web-react/package.json +++ b/packages/web-react/package.json @@ -85,11 +85,18 @@ "webpack-merge": "6.0.1" }, "peerDependencies": { - "@lmc-eu/spirit-design-tokens": "*", - "@lmc-eu/spirit-icons": "*", - "@lmc-eu/spirit-web": "*", - "react": "^17.0.2 || ^18.0.0", - "react-dom": "^17.0.2 || ^18.0.0" + "@lmc-eu/spirit-icons": "^2.0.0", + "@lmc-eu/spirit-web": "^3.0.0", + "react": "^17.0.2 || ^18.0.0 || ^19.0.0", + "react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@lmc-eu/spirit-icons": { + "optional": true + }, + "@lmc-eu/spirit-web": { + "optional": true + } }, "scripts": { "build:prepare": "shx rm -rf dist && shx mkdir -p dist && shx cp package.json README.md dist/ ", diff --git a/yarn.lock b/yarn.lock index 58c90541ac..837ef8c1be 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5119,11 +5119,15 @@ __metadata: webpack-cli: "npm:5.1.4" webpack-merge: "npm:6.0.1" peerDependencies: - "@lmc-eu/spirit-design-tokens": "*" - "@lmc-eu/spirit-icons": "*" - "@lmc-eu/spirit-web": "*" - react: ^17.0.2 || ^18.0.0 - react-dom: ^17.0.2 || ^18.0.0 + "@lmc-eu/spirit-icons": ^2.0.0 + "@lmc-eu/spirit-web": ^3.0.0 + react: ^17.0.2 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.2 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@lmc-eu/spirit-icons": + optional: true + "@lmc-eu/spirit-web": + optional: true languageName: unknown linkType: soft