From e3a06e0f8129bffdb22c416b290451ca49a0218a Mon Sep 17 00:00:00 2001 From: oliverschuerch Date: Fri, 13 Oct 2023 16:02:21 +0200 Subject: [PATCH] chore(components-angular): refine package.json files --- package.json | 2 ++ packages/components-angular/package.json | 14 +++++----- .../projects/components/package.json | 26 ++++++++++++++++--- pnpm-lock.yaml | 18 ++++--------- 4 files changed, 37 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 3a3d957751..4fdb87ca99 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,8 @@ "components:e2e": "start-server-and-test docs:headless 9300 'pnpm --filter design-system-components e2e'", "components:e2e:watch": "start-server-and-test docs:headless 9300 'pnpm --filter design-system-components e2e:watch'", "components:snapshots": "start-server-and-test docs:headless 9300 'pnpm --filter design-system-components snapshots'", + "components-angular:start": "pnpm --filter design-system-components-angular-workspace start", + "components-angular:build": "pnpm --filter design-system-components-angular-workspace build", "intranet-header:start": "pnpm --filter design-system-intranet-header-workspace start", "header:start": "pnpm --filter internet-header dev", "header:build": "pnpm --filter internet-header build", diff --git a/packages/components-angular/package.json b/packages/components-angular/package.json index 21fcac68fe..6360449af9 100644 --- a/packages/components-angular/package.json +++ b/packages/components-angular/package.json @@ -1,14 +1,13 @@ { "name": "@swisspost/design-system-components-angular-workspace", "version": "1.0.0", + "license": "Apache-2.0", + "private": true, "scripts": { - "ng": "ng", - "start": "ng serve", - "build": "ng build", - "watch": "ng build --watch --configuration development", - "test": "ng test" + "clean": "rimraf dist", + "start": "ng serve --port 9002", + "build": "ng build components" }, - "private": true, "dependencies": { "@angular/animations": "16.2.0", "@angular/common": "16.2.0", @@ -34,6 +33,7 @@ "karma-jasmine": "5.1.0", "karma-jasmine-html-reporter": "2.1.0", "ng-packagr": "16.2.0", + "rimraf": "5.0.1", "typescript": "5.1.3" } -} +} \ No newline at end of file diff --git a/packages/components-angular/projects/components/package.json b/packages/components-angular/projects/components/package.json index 78701b7e9e..94864453d1 100644 --- a/packages/components-angular/projects/components/package.json +++ b/packages/components-angular/projects/components/package.json @@ -1,12 +1,32 @@ { "name": "@swisspost/design-system-components-angular", "version": "1.0.0", - "peerDependencies": { - "@angular/common": "16.2.0", - "@angular/core": "16.2.0" + "description": "Swiss Post Design System - Angular Wrapper Components", + "author": "Swiss Post ", + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "https://github.com/swisspost/design-system.git" + }, + "homepage": "https://swisspost-web-frontend.netlify.app", + "bugs": { + "url": "https://github.com/swisspost/design-system/issues" + }, + "private": true, + "files": [ + "dist" + ], + "publishConfig": { + "access": "restricted", + "linkDirectory": true, + "directory": "../../dist/components" }, "dependencies": { "tslib": "2.3.0" }, + "peerDependencies": { + "@angular/common": "16.2.0", + "@angular/core": "16.2.0" + }, "sideEffects": false } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 01056112eb..9bb5f292c0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -189,6 +189,9 @@ importers: ng-packagr: specifier: 16.2.0 version: 16.2.0(@angular/compiler-cli@16.2.0)(tslib@2.3.0)(typescript@5.1.3) + rimraf: + specifier: 5.0.1 + version: 5.0.1 typescript: specifier: 5.1.3 version: 5.1.3 @@ -204,6 +207,7 @@ importers: tslib: specifier: 2.3.0 version: 2.3.0 + publishDirectory: ../../dist/components packages/components-react: dependencies: @@ -13624,18 +13628,6 @@ packages: - supports-color dev: true - /glob@10.3.3: - resolution: {integrity: sha512-92vPiMb/iqpmEgsOoIDvTjc50wf9CCCvMzsi6W0JLPeUKE8TWP1a73PgqSrqy7iAZxaSD1YdzU7QZR5LF51MJw==} - engines: {node: '>=16 || 14 >=14.17'} - hasBin: true - dependencies: - foreground-child: 3.1.1 - jackspeak: 2.2.0 - minimatch: 9.0.1 - minipass: 5.0.0 - path-scurry: 1.10.1 - dev: true - /glob@10.3.7: resolution: {integrity: sha512-wCMbE1m9Nx5yD9LYtgsVWq5VhHlk5WzJirw594qZR6AIvQYuHrdDtIktUVjQItalD53y7dqoedu9xP0u0WaxIQ==} engines: {node: '>=16 || 14 >=14.17'} @@ -20376,7 +20368,7 @@ packages: engines: {node: '>=14'} hasBin: true dependencies: - glob: 10.3.3 + glob: 10.3.7 dev: true /rollup-plugin-inject@3.0.2: