Skip to content

Commit

Permalink
Optimize peer dependency handling (public-ui#6213)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg authored Mar 15, 2024
2 parents 9520918 + 7328c73 commit 658999f
Show file tree
Hide file tree
Showing 21 changed files with 424 additions and 764 deletions.
4 changes: 4 additions & 0 deletions .ncurc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dep": ["prod", "dev", "optional", "peer"],
"peer": true
}
5 changes: 1 addition & 4 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# - npm
legacy-peer-deps=true
save-exact=true

# - pnpm
auto-install-peers=true
prefer-offline=true
shamefully-hoist=true
strict-peer-dependencies=false
workspace-concurrency=1
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"unused": "pnpm -r unused",
"ts-prune": "git clean -f -d -X packages/adapters/**/src && pnpm -r exec npx ts-prune src -e",
"ncu:major": "ncu && pnpm -r exec ncu",
"ncu:minor": "ncu -t minor -u && pnpm -r exec ncu -t minor -u -x rxjs,typescript,zone.js",
"ncu:minor": "ncu -t minor -u && pnpm -r exec ncu -t minor -u",
"ncu:patch": "ncu -t patch -u && pnpm -r exec ncu -t patch -u",
"pack": "pnpm -r exec pnpm pack",
"prepare": "pnpm exec playwright install && echo \"Don't forget to build all packages once: pnpm -r build\"",
Expand All @@ -21,21 +21,21 @@
"prepare:husky:lint": "echo \"pnpm -r lint\" >> .husky/pre-commit",
"prepare:husky:unused": "echo \"pnpm -r unused\" >> .husky/pre-push",
"reinstall": "pnpm clean:pnpm && pnpm i",
"test": "pnpm -r --workspace-concurrency=1 test",
"test": "pnpm -r test",
"test-reset-and-update": "rimraf packages/themes/**/snapshots/** && pnpm test-update",
"test-update": "pnpm -r --workspace-concurrency=1 test-update",
"test-update": "pnpm -r test-update",
"update": "pnpm ncu:patch && pnpm ncu:minor && pnpm ncu:major"
},
"devDependencies": {
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@commitlint/cli": "19.2.0",
"@commitlint/config-conventional": "19.1.0",
"@types/node": "ts5.4",
"cross-env": "7.0.3",
"husky": "9.0.11",
"lerna": "8.1.2",
"license-report": "6.5.0",
"lint-staged": "15.2.2",
"npm-check-updates": "16.14.15",
"npm-check-updates": "16.14.16",
"npm-run-all": "4.1.5",
"pnpm": "8.15.4",
"prettier": "3.2.5",
Expand Down
6 changes: 3 additions & 3 deletions packages/adapters/angular/v11/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
"@types/normalize-package-data": "2.4.4",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"rxjs": "6.5.5",
"rxjs": "6.6.7",
"tslib": "2.6.2",
"typescript": "4.1",
"typescript": "4.1.6",
"zone.js": "0.11.8"
},
"peerDependencies": {
"@angular/core": "^11",
"@angular/core": "11.2.14",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/adapters/angular/v12/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
"@types/normalize-package-data": "2.4.4",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"rxjs": "7.6.0",
"rxjs": "7.8.1",
"tslib": "2.6.2",
"typescript": "4.3",
"zone.js": "0.11.8"
},
"peerDependencies": {
"@angular/core": "^12",
"@angular/core": "12.2.17",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/adapters/angular/v13/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
"@types/normalize-package-data": "2.4.4",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"rxjs": "7.6.0",
"rxjs": "7.8.1",
"tslib": "2.6.2",
"typescript": "4.6",
"zone.js": "0.11.8"
},
"peerDependencies": {
"@angular/core": "^13",
"@angular/core": "13.4.0",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/adapters/angular/v14/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
"@types/normalize-package-data": "2.4.4",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"rxjs": "7.6.0",
"rxjs": "7.8.1",
"tslib": "2.6.2",
"typescript": "4.8.4",
"zone.js": "0.12.0"
},
"peerDependencies": {
"@angular/core": "^14",
"@angular/core": "14.3.0",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions packages/adapters/angular/v15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
"rxjs": "7.8.1",
"tslib": "2.6.2",
"typescript": "4.9.5",
"zone.js": "0.12.0"
"zone.js": "0.13.3"
},
"peerDependencies": {
"@angular/core": "^15",
"@angular/core": "15.2.10",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/angular/v16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"zone.js": "0.13.3"
},
"peerDependencies": {
"@angular/core": "^16",
"@angular/core": "16.2.12",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
12 changes: 6 additions & 6 deletions packages/adapters/angular/v17/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@
"import": "./dist/index.js"
},
"devDependencies": {
"@angular/compiler": "17.2.4",
"@angular/compiler-cli": "17.2.4",
"@angular/core": "17.2.4",
"@angular/compiler": "17.3.0",
"@angular/compiler-cli": "17.3.0",
"@angular/core": "17.3.0",
"@public-ui/components": "2.0.9",
"@types/minimatch": "5.1.2",
"@types/minimist": "1.2.5",
"@types/node": "ts5.2",
"@types/node": "ts5.3",
"@types/normalize-package-data": "2.4.4",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"rxjs": "7.8.1",
"tslib": "2.6.2",
"typescript": "5.3.3",
"typescript": "5.4.2",
"zone.js": "0.14.4"
},
"peerDependencies": {
"@angular/core": "^17",
"@angular/core": "17.3.0",
"@public-ui/components": "2.0.9"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"unbuild": "1.2.1"
},
"peerDependencies": {
"preact": ">=10.11.3"
"preact": ">=10.19.6"
},
"sideEffects": false,
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/adapters/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"@types/minimist": "1.2.5",
"@types/node": "ts5.4",
"@types/normalize-package-data": "2.4.4",
"@types/react": "18.2.65",
"@types/react-dom": "18.2.21",
"@types/react": "18.2.66",
"@types/react-dom": "18.2.22",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.4.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"peerDependencies": {
"@public-ui/components": "2.0.9",
"solid-js": ">=1.2.0"
"solid-js": ">=1.8.15"
},
"sideEffects": false,
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"eslint-plugin-no-loops": "0.3.0",
"eslint-plugin-react": "7.34.0",
"jest": "26.6.3",
"knip": "5.0.3",
"knip": "5.1.0",
"lighthouse": "11.6.0",
"mustache": "4.2.0",
"postcss": "8.4.35",
Expand All @@ -111,7 +111,7 @@
"pug": "3.0.2",
"rimraf": "5.0.5",
"stencil-awesome-test": "1.0.6",
"terser": "5.29.1",
"terser": "5.29.2",
"tslib": "2.6.2",
"twig": "1.17.1",
"typescript": "5.4.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-kolibri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@typescript-eslint/eslint-plugin": "7.2.0",
"@typescript-eslint/parser": "7.2.0",
"eslint": "8.57.0",
"knip": "5.0.3",
"knip": "5.1.0",
"prettier": "3.2.5",
"tsup": "8.0.2",
"typescript": "5.4.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/designer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"@leanup/stack-solid": "1.3.49",
"@leanup/stack-webpack": "1.3.49",
"@types/prettier": "2.7.3",
"@unocss/preset-mini": "0.58.5",
"@unocss/webpack": "0.58.5",
"@unocss/preset-mini": "0.58.6",
"@unocss/webpack": "0.58.6",
"ajv": "8.12.0",
"chromedriver": "122.0.5",
"chromedriver": "122.0.6",
"cpy-cli": "5.0.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-no-loops": "0.3.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/samples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"@public-ui/react": "2.0.9",
"@public-ui/themes": "2.0.9",
"@types/node": "ts5.4",
"@types/react": "18.2.65",
"@types/react-dom": "18.2.21",
"@unocss/preset-uno": "0.58.5",
"@unocss/webpack": "0.58.5",
"@types/react": "18.2.66",
"@types/react-dom": "18.2.22",
"@unocss/preset-uno": "0.58.6",
"@unocss/webpack": "0.58.6",
"ajv": "8.12.0",
"chromedriver": "122.0.5",
"chromedriver": "122.0.6",
"cpy-cli": "5.0.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-react": "7.34.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"nodemon": "3.1.0",
"postcss": "8.4.35",
"rollup-plugin-postcss": "4.0.2",
"sass": "1.71.1",
"sass": "1.72.0",
"typescript": "5.4.2",
"unbuild": "1.2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/kolibri-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-no-loops": "0.3.0",
"eslint-plugin-react": "7.34.0",
"knip": "5.0.3",
"knip": "5.1.0",
"mocha": "10.3.0",
"nodemon": "3.1.0",
"rimraf": "5.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/visual-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@babel/preset-env": "7.24.0",
"eslint": "8.57.0",
"eslint-plugin-no-loops": "0.3.0",
"knip": "5.0.3",
"knip": "5.1.0",
"prettier": "3.2.5"
},
"files": [
Expand Down
Loading

0 comments on commit 658999f

Please sign in to comment.