Skip to content

Commit b8863f8

Browse files
chore: restructure order of package.json files (#3983)
Closes #3745 --------- Co-authored-by: Philipp Gfeller <[email protected]>
1 parent 4a300df commit b8863f8

File tree

13 files changed

+197
-142
lines changed

13 files changed

+197
-142
lines changed

packages/changelog-github/package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A changelog entry generator for GitHub that links to PRs and users",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": false,
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/swisspost/design-system.git"
@@ -19,7 +20,8 @@
1920
"scripts": {
2021
"build": "tsc",
2122
"lint": "eslint",
22-
"lint:fix": "eslint --fix"
23+
"lint:fix": "eslint --fix",
24+
"clean": "rimraf dist"
2325
},
2426
"dependencies": {
2527
"@changesets/get-github-info": "0.6.0",
@@ -32,6 +34,8 @@
3234
"eslint": "9.18.0",
3335
"globals": "15.14.0",
3436
"typescript": "5.8.2",
35-
"typescript-eslint": "8.20.0"
36-
}
37+
"typescript-eslint": "8.20.0",
38+
"rimraf": "6.0.1"
39+
},
40+
"keywords": ["changelog", "github", "changesets"]
3741
}

packages/components-angular/package.json

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
22
"name": "@swisspost/design-system-components-angular-workspace",
33
"version": "1.1.10-next.34",
4+
"description": "Wrapper arround @swisspost/design-system-components for angular",
5+
"author": "Swiss Post <[email protected]>",
6+
"license": "Apache-2.0",
7+
"private": true,
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/swisspost/design-system.git"
11+
},
12+
"homepage": "https://design-system.post.ch",
13+
"bugs": {
14+
"url": "https://github.com/swisspost/design-system/issues"
15+
},
416
"scripts": {
517
"start": "ng serve --port 9210",
618
"build": "pnpm clean && ng build components",
@@ -10,7 +22,6 @@
1022
"lint": "ng lint",
1123
"lint:fix": "ng lint --fix"
1224
},
13-
"private": true,
1425
"dependencies": {
1526
"@angular/animations": "19.2.0",
1627
"@angular/common": "19.2.0",
@@ -45,5 +56,12 @@
4556
"rimraf": "6.0.1",
4657
"typescript": "5.8.2",
4758
"typescript-eslint": "8.16.0"
48-
}
59+
},
60+
"keywords": [
61+
"angular",
62+
"design-system",
63+
"components",
64+
"ui",
65+
"frontend"
66+
]
4967
}

packages/components-react/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Design System React Components for easy integration with the React ecosystem",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": false,
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/swisspost/design-system.git"
@@ -12,15 +13,15 @@
1213
"bugs": {
1314
"url": "https://github.com/swisspost/design-system/issues"
1415
},
15-
"main": "dist/index.js",
16-
"types": "dist/index.d.ts",
17-
"files": [
18-
"dist"
19-
],
2016
"publishConfig": {
2117
"access": "public",
2218
"linkDirectory": true
2319
},
20+
"files": [
21+
"dist"
22+
],
23+
"main": "dist/index.js",
24+
"types": "dist/index.d.ts",
2425
"scripts": {
2526
"build": "pnpm run clean && tsc -p .",
2627
"clean": "rimraf dist",

packages/components/package.json

+15-10
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,32 @@
22
"name": "@swisspost/design-system-components",
33
"version": "9.0.0-next.34",
44
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
5+
"author": "Swiss Post <[email protected]>",
56
"license": "Apache-2.0",
6-
"main": "dist/index.cjs.js",
7-
"module": "dist/index.js",
8-
"types": "dist/types/index.d.ts",
9-
"collection": "dist/collection/collection-manifest.json",
10-
"collection:main": "dist/collection/index.js",
11-
"unpkg": "dist/post-components/post-components.esm.js",
127
"private": false,
138
"repository": {
149
"type": "git",
1510
"url": "https://github.com/swisspost/design-system"
1611
},
12+
"homepage": "https://design-system.post.ch",
13+
"bugs": {
14+
"url": "https://github.com/swisspost/design-system/issues"
15+
},
16+
"publishConfig": {
17+
"access": "public",
18+
"linkDirectory": true
19+
},
1720
"files": [
1821
"dist/",
1922
"loader/",
2023
"loaders/"
2124
],
22-
"publishConfig": {
23-
"access": "public",
24-
"linkDirectory": true
25-
},
25+
"main": "dist/index.cjs.js",
26+
"module": "dist/index.js",
27+
"types": "dist/types/index.d.ts",
28+
"collection": "dist/collection/collection-manifest.json",
29+
"collection:main": "dist/collection/index.js",
30+
"unpkg": "dist/post-components/post-components.esm.js",
2631
"scripts": {
2732
"play": "stencil build --dev --port 9200 --serve --watch --docs --docs-readme",
2833
"start": "stencil build --dev --watch --docs --docs-readme",

packages/documentation/package.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Swiss Post Design System Documentation.",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": true,
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/swisspost/design-system.git"
@@ -13,7 +14,6 @@
1314
"url": "https://github.com/swisspost/design-system/issues"
1415
},
1516
"main": "index.js",
16-
"private": true,
1717
"scripts": {
1818
"prebuild:managerui": "sass --update --load-path=node_modules .storybook/styles/manager.scss public/manager/ui.css",
1919
"start": "pnpm clean && pnpm prebuild:managerui --style=expanded & storybook dev -p 9000 --quiet --docs",
@@ -84,5 +84,14 @@
8484
"typescript": "5.8.2",
8585
"typescript-eslint": "8.20.0",
8686
"vite": "6.2.6"
87-
}
87+
},
88+
"keywords": [
89+
"storybook",
90+
"design-system",
91+
"documentation",
92+
"web-components",
93+
"stencil",
94+
"ui",
95+
"frontend"
96+
]
8897
}

packages/icons/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A collection of Swiss Post icons intended for use with the Design System.",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": false,
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/swisspost/design-system.git"
@@ -19,7 +20,6 @@
1920
"files": [
2021
"public"
2122
],
22-
"private": false,
2323
"scripts": {
2424
"play": "pnpm build && http-server ./public -o -a localhost -p 9330",
2525
"start": "nodemon",

packages/internet-header/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "The header for client facing applications.",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": true,
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/swisspost/design-system.git"
@@ -12,21 +13,20 @@
1213
"bugs": {
1314
"url": "https://github.com/swisspost/design-system/issues"
1415
},
15-
"main": "loader/index.cjs.js",
16-
"module": "loader/index.js",
17-
"es2017": "loader/index.es2017.js",
18-
"types": "loader/index.d.ts",
19-
"collection": "dist/collection/collection-manifest.json",
20-
"collection:main": "dist/collection/index.js",
21-
"unpkg": "dist/swisspost-internet-header/swisspost-internet-header.esm.js",
22-
"private": true,
2316
"publishConfig": {
2417
"access": "restricted"
2518
},
2619
"files": [
2720
"dist/",
2821
"loader/"
2922
],
23+
"main": "loader/index.cjs.js",
24+
"module": "loader/index.js",
25+
"es2017": "loader/index.es2017.js",
26+
"types": "loader/index.d.ts",
27+
"collection": "dist/collection/collection-manifest.json",
28+
"collection:main": "dist/collection/index.js",
29+
"unpkg": "dist/swisspost-internet-header/swisspost-internet-header.esm.js",
3030
"scripts": {
3131
"play": "stencil build --serve --port 9310 --watch --docs-readme --dev --config stencil.config.dev.ts",
3232
"start": "stencil build --watch --docs-readme",

packages/nextjs-integration/package.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
{
22
"name": "@swisspost/design-system-nextjs-integration",
33
"version": "0.1.14-next.34",
4+
"description": "NextJS example integration of the Swiss Post Design System",
5+
"author": "Swiss Post <[email protected]>",
6+
"license": "Apache-2.0",
47
"private": true,
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/swisspost/design-system.git"
11+
},
12+
"homepage": "https://design-system.post.ch",
13+
"bugs": {
14+
"url": "https://github.com/swisspost/design-system/issues"
15+
},
516
"scripts": {
617
"start": "next dev",
718
"build": "pnpm clean && next build",
@@ -35,5 +46,11 @@
3546
"tailwindcss": "3.4.17",
3647
"typescript": "5.8.2",
3748
"typescript-eslint": "8.20.0"
38-
}
49+
},
50+
"keywords": [
51+
"nextjs",
52+
"swisspost",
53+
"design-system",
54+
"example"
55+
]
3956
}

packages/styles-primeng-workspace/package.json

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"name": "@swisspost/design-system-styles-primeng-workspace",
3-
"description": "Showcase for a Post like custom prime-ng theme",
43
"version": "1.0.6-next.34",
4+
"description": "Showcase for a Post like custom prime-ng theme",
55
"license": "Apache-2.0",
66
"private": true,
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/swisspost/design-system.git"
10+
},
11+
"homepage": "https://design-system.post.ch",
12+
"bugs": {
13+
"url": "https://github.com/swisspost/design-system/issues"
14+
},
715
"scripts": {
816
"start": "npm-run-all --parallel start:lib start:app",
917
"start:lib": "ng build --watch --configuration development styles-primeng",
@@ -53,5 +61,12 @@
5361
"stylelint-scss": "6.10.0",
5462
"typescript": "5.8.2",
5563
"typescript-eslint": "8.16.0"
56-
}
64+
},
65+
"keywords": [
66+
"primeng",
67+
"theme",
68+
"scss",
69+
"styles",
70+
"swisspost"
71+
]
5772
}

packages/styles-primeng-workspace/projects/styles-primeng/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@swisspost/design-system-styles-primeng",
33
"version": "9.0.0-next.34",
44
"description": "Swiss Post styles for PrimeNg datatable.",
5-
"author": "Swiss Post <oss@post.ch>",
5+
"author": "Swiss Post <design-system@post.ch>",
66
"license": "Apache-2.0",
77
"repository": {
88
"type": "git",

packages/styles/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Design System Styles for the Swiss Post web platform.",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": false,
78
"repository": {
89
"type": "git",
910
"url": "https://github.com/swisspost/design-system.git"

packages/tokens/package.json

+16-15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "Design Tokens for the Swiss Post Design System.",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
7+
"private": false,
8+
"type": "module",
79
"repository": {
810
"type": "git",
911
"url": "https://github.com/swisspost/design-system.git"
@@ -12,7 +14,11 @@
1214
"bugs": {
1315
"url": "https://github.com/swisspost/design-system/issues"
1416
},
15-
"type": "module",
17+
"publishConfig": {
18+
"directory": "./dist",
19+
"access": "public",
20+
"linkDirectory": true
21+
},
1622
"scripts": {
1723
"build": "pnpm clean && node ./build.js && pnpm copy-files",
1824
"build:verbose": "node ./build.js --verbosity=verbose",
@@ -21,19 +27,6 @@
2127
"lint:fix": "eslint --fix",
2228
"copy-files": "copyfiles -f package.json README.md CONTRIBUTING.md CHANGELOG.md LICENSE dist"
2329
},
24-
"keywords": [
25-
"tokens",
26-
"tokens studio",
27-
"scss",
28-
"design-system",
29-
"ui",
30-
"frontend"
31-
],
32-
"publishConfig": {
33-
"directory": "./dist",
34-
"access": "public",
35-
"linkDirectory": true
36-
},
3730
"devDependencies": {
3831
"@eslint/js": "9.18.0",
3932
"@tokens-studio/sd-transforms": "1.2.9",
@@ -42,5 +35,13 @@
4235
"globals": "15.14.0",
4336
"rimraf": "6.0.1",
4437
"style-dictionary": "4.3.0"
45-
}
38+
},
39+
"keywords": [
40+
"tokens",
41+
"tokens studio",
42+
"scss",
43+
"design-system",
44+
"ui",
45+
"frontend"
46+
]
4647
}

0 commit comments

Comments
 (0)