From c2fbf88d20331a907e1c124d80de0d7c2c2adf06 Mon Sep 17 00:00:00 2001 From: Philipp Gfeller Date: Fri, 26 Apr 2024 10:06:38 +0200 Subject: [PATCH] chore: fix cyclic dependency --- .../intranet-header-workspace/package.json | 1 - .../projects/intranet-header/package.json | 6 ++--- pnpm-lock.yaml | 23 ++++++++----------- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/packages/intranet-header-workspace/package.json b/packages/intranet-header-workspace/package.json index 1a27188aa2..5b2b5a6b89 100644 --- a/packages/intranet-header-workspace/package.json +++ b/packages/intranet-header-workspace/package.json @@ -6,7 +6,6 @@ "scripts": { "clean": "rimraf dist", "start": "ng serve --port 9320", - "build": "ng build intranet-header", "lint": "ng lint" }, "dependencies": { diff --git a/packages/intranet-header-workspace/projects/intranet-header/package.json b/packages/intranet-header-workspace/projects/intranet-header/package.json index 6ef2aa8cb5..01390ee355 100644 --- a/packages/intranet-header-workspace/projects/intranet-header/package.json +++ b/packages/intranet-header-workspace/projects/intranet-header/package.json @@ -17,11 +17,11 @@ "access": "public", "linkDirectory": true }, + "scripts": { + "build": "cd .. && ng build intranet-header" + }, "dependencies": { "@swisspost/design-system-styles": "workspace:7.0.0", "tslib": "2.6.2" - }, - "devDependencies": { - "@swisspost/design-system-intranet-header-workspace": "workspace:3.0.12" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bbd56cf711..7c33174475 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -240,12 +240,13 @@ importers: '@angular/core': specifier: ^16.0.0 || ^17.0.0 version: 17.2.3(rxjs@7.8.1)(zone.js@0.14.4) - '@swisspost/design-system-components': - specifier: workspace:7.0.0 - version: link:../../../components tslib: specifier: 2.6.2 version: 2.6.2 + devDependencies: + '@swisspost/design-system-components': + specifier: workspace:7.0.0 + version: link:../../../components publishDirectory: ../../dist/components packages/components-react: @@ -477,18 +478,12 @@ importers: '@swisspost/design-system-components': specifier: workspace:7.0.0 version: link:../components - '@swisspost/design-system-components-angular': - specifier: workspace:7.0.0 - version: link:../components-angular/dist/components '@swisspost/design-system-components-react': specifier: workspace:7.0.0 version: link:../components-react '@swisspost/design-system-icons': specifier: workspace:7.0.0 version: link:../icons - '@swisspost/design-system-intranet-header': - specifier: workspace:7.0.0 - version: link:../intranet-header-workspace/dist/intranet-header '@swisspost/design-system-styles': specifier: workspace:7.0.0 version: link:../styles/dist @@ -562,6 +557,12 @@ importers: '@storybook/web-components-vite': specifier: 8.0.8 version: 8.0.8(encoding@0.1.13)(lit@3.1.2)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(typescript@5.3.3)(vite@5.1.5(@types/node@20.11.16)(less@4.2.0)(sass@1.74.1)(terser@5.29.1)) + '@swisspost/design-system-components-angular': + specifier: workspace:7.0.0 + version: link:../components-angular/dist/components + '@swisspost/design-system-intranet-header': + specifier: workspace:7.0.0 + version: link:../intranet-header-workspace/dist/intranet-header '@types/css-modules': specifier: 1.0.5 version: 1.0.5 @@ -906,10 +907,6 @@ importers: tslib: specifier: 2.6.2 version: 2.6.2 - devDependencies: - '@swisspost/design-system-intranet-header-workspace': - specifier: workspace:3.0.12 - version: link:../.. publishDirectory: ../../dist/intranet-header packages/migrations: