Skip to content

Commit 11f3207

Browse files
authored
chore: Move pnpm version to root package.json & cleanup clean command (#14531)
I noticed that running `yarn clean` from the root hang for me sometimes, in two ways. On one hand, it seemed to hang/fail on running `pnpm store prune` in the e2e-tests package. This PR fixes this by moving the pnpm dependency to the root of the monorepo, ensuring we have a consistent version for this and volta can properly set this up. On the other hand, it seemed to hang on watchman cleanup in node-integration-tests. I moved this up actually, and only run it in `clean:all` as we don't really need this all that often. Finally, I also aligned the used rimraf version across the monorepo to 5.0.10.
1 parent 343506b commit 11f3207

File tree

4 files changed

+22
-77
lines changed

4 files changed

+22
-77
lines changed

dev-packages/e2e-tests/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@
1313
"test:validate-test-app-setups": "ts-node validate-test-app-setups.ts",
1414
"test:prepare": "ts-node prepare.ts",
1515
"test:validate": "run-s test:validate-configuration test:validate-test-app-setups",
16-
"clean": "rimraf tmp node_modules pnpm-lock.yaml && yarn clean:test-applications",
16+
"clean": "rimraf tmp node_modules && yarn clean:test-applications && yarn clean:pnpm",
1717
"ci:build-matrix": "ts-node ./lib/getTestMatrix.ts",
1818
"ci:build-matrix-optional": "ts-node ./lib/getTestMatrix.ts --optional=true",
19-
"clean:test-applications": "rimraf --glob test-applications/**/{node_modules,dist,build,.next,.sveltekit,pnpm-lock.yaml,.last-run.json,test-results} && pnpm store prune"
19+
"clean:test-applications": "rimraf --glob test-applications/**/{node_modules,dist,build,.next,.sveltekit,pnpm-lock.yaml,.last-run.json,test-results}",
20+
"clean:pnpm": "pnpm store prune"
2021
},
2122
"devDependencies": {
2223
"@types/glob": "8.0.0",
2324
"@types/node": "^18.0.0",
2425
"dotenv": "16.0.3",
2526
"esbuild": "0.20.0",
2627
"glob": "8.0.3",
27-
"rimraf": "^5.0.0",
28+
"rimraf": "^5.0.10",
2829
"ts-node": "10.9.1",
2930
"yaml": "2.2.2"
3031
},
3132
"volta": {
32-
"extends": "../../package.json",
33-
"pnpm": "9.4.0"
33+
"extends": "../../package.json"
3434
}
3535
}

dev-packages/node-integration-tests/scripts/clean.js

-9
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,3 @@ for (const path of paths) {
1717
//
1818
}
1919
}
20-
21-
// eslint-disable-next-line no-console
22-
console.log('Cleaning up watchman...');
23-
24-
try {
25-
execSync('watchman watch-del "./../.."; watchman watch-project "./../.."', { stdio: 'inherit' });
26-
} catch (_) {
27-
//
28-
}

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"clean:caches": "yarn rimraf eslintcache .nxcache && yarn jest --clearCache",
1919
"clean:deps": "lerna clean --yes && rm -rf node_modules && yarn",
2020
"clean:tarballs": "rimraf {packages,dev-packages}/*/*.tgz",
21-
"clean:all": "run-s clean:build clean:tarballs clean:caches clean:deps",
21+
"clean:watchman": "watchman watch-del \".\"",
22+
"clean:all": "run-s clean:build clean:tarballs clean:caches clean:deps clean:watchman",
2223
"fix": "run-s fix:biome fix:prettier fix:lerna",
2324
"fix:lerna": "lerna run fix",
2425
"fix:biome": "biome check --apply .",
@@ -44,7 +45,8 @@
4445
},
4546
"volta": {
4647
"node": "18.20.3",
47-
"yarn": "1.22.22"
48+
"yarn": "1.22.22",
49+
"pnpm": "9.4.0"
4850
},
4951
"workspaces": [
5052
"packages/angular",
@@ -122,7 +124,7 @@
122124
"nodemon": "^2.0.16",
123125
"npm-run-all2": "^6.2.0",
124126
"prettier": "^3.1.1",
125-
"rimraf": "^3.0.2",
127+
"rimraf": "^5.0.10",
126128
"rollup": "^4.24.2",
127129
"rollup-plugin-cleanup": "^3.2.1",
128130
"rollup-plugin-license": "^3.3.1",

yarn.lock

+12-60
Original file line numberDiff line numberDiff line change
@@ -9964,17 +9964,8 @@
99649964
dependencies:
99659965
"@types/unist" "*"
99669966

9967-
"@types/history-4@npm:@types/[email protected]":
9968-
version "4.7.8"
9969-
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.8.tgz#49348387983075705fe8f4e02fb67f7daaec4934"
9970-
integrity sha512-S78QIYirQcUoo6UJZx9CSP0O2ix9IaeAXwQi26Rhr/+mg7qqPy8TzaxHSUut7eGjL8WmLccT7/MXf304WjqHcA==
9971-
9972-
"@types/history-5@npm:@types/[email protected]":
9973-
version "4.7.8"
9974-
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.8.tgz#49348387983075705fe8f4e02fb67f7daaec4934"
9975-
integrity sha512-S78QIYirQcUoo6UJZx9CSP0O2ix9IaeAXwQi26Rhr/+mg7qqPy8TzaxHSUut7eGjL8WmLccT7/MXf304WjqHcA==
9976-
9977-
"@types/history@*":
9967+
"@types/history-4@npm:@types/[email protected]", "@types/history-5@npm:@types/[email protected]", "@types/history@*":
9968+
name "@types/history-4"
99789969
version "4.7.8"
99799970
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.8.tgz#49348387983075705fe8f4e02fb67f7daaec4934"
99809971
integrity sha512-S78QIYirQcUoo6UJZx9CSP0O2ix9IaeAXwQi26Rhr/+mg7qqPy8TzaxHSUut7eGjL8WmLccT7/MXf304WjqHcA==
@@ -10301,15 +10292,7 @@
1030110292
"@types/history" "^3"
1030210293
"@types/react" "*"
1030310294

10304-
"@types/react-router-4@npm:@types/[email protected]":
10305-
version "5.1.14"
10306-
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.14.tgz#e0442f4eb4c446541ad7435d44a97f8fe6df40da"
10307-
integrity sha512-LAJpqYUaCTMT2anZheoidiIymt8MuX286zoVFPM3DVb23aQBH0mAkFvzpd4LKqiolV8bBtZWT5Qp7hClCNDENw==
10308-
dependencies:
10309-
"@types/history" "*"
10310-
"@types/react" "*"
10311-
10312-
"@types/react-router-5@npm:@types/[email protected]":
10295+
"@types/react-router-4@npm:@types/[email protected]", "@types/react-router-5@npm:@types/[email protected]":
1031310296
version "5.1.14"
1031410297
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.14.tgz#e0442f4eb4c446541ad7435d44a97f8fe6df40da"
1031510298
integrity sha512-LAJpqYUaCTMT2anZheoidiIymt8MuX286zoVFPM3DVb23aQBH0mAkFvzpd4LKqiolV8bBtZWT5Qp7hClCNDENw==
@@ -28671,7 +28654,8 @@ react-is@^18.0.0:
2867128654
dependencies:
2867228655
"@remix-run/router" "1.0.2"
2867328656

28674-
"react-router-6@npm:[email protected]":
28657+
"react-router-6@npm:[email protected]", [email protected]:
28658+
name react-router-6
2867528659
version "6.3.0"
2867628660
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.3.0.tgz#3970cc64b4cb4eae0c1ea5203a80334fdd175557"
2867728661
integrity sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==
@@ -28686,13 +28670,6 @@ react-router-dom@^6.2.2:
2868628670
history "^5.2.0"
2868728671
react-router "6.3.0"
2868828672

28689-
28690-
version "6.3.0"
28691-
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.3.0.tgz#3970cc64b4cb4eae0c1ea5203a80334fdd175557"
28692-
integrity sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==
28693-
dependencies:
28694-
history "^5.2.0"
28695-
2869628673
react@^18.0.0:
2869728674
version "18.0.0"
2869828675
resolved "https://registry.yarnpkg.com/react/-/react-18.0.0.tgz#b468736d1f4a5891f38585ba8e8fb29f91c3cb96"
@@ -29614,10 +29591,10 @@ rimraf@^4.4.1:
2961429591
dependencies:
2961529592
glob "^9.2.0"
2961629593

29617-
rimraf@^5.0.0:
29618-
version "5.0.9"
29619-
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.9.tgz#c3baa1b886eadc2ec7981a06a593c3d01134ffe9"
29620-
integrity sha512-3i7b8OcswU6CpU8Ej89quJD4O98id7TtVM5U4Mybh84zQXdrFmDLouWBEEaD/QfO3gDDfH+AGFCGsR7kngzQnA==
29594+
rimraf@^5.0.10:
29595+
version "5.0.10"
29596+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.10.tgz#23b9843d3dc92db71f96e1a2ce92e39fd2a8221c"
29597+
integrity sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==
2962129598
dependencies:
2962229599
glob "^10.3.7"
2962329600

@@ -31091,16 +31068,7 @@ string-template@~0.2.1:
3109131068
resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add"
3109231069
integrity sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=
3109331070

31094-
"string-width-cjs@npm:string-width@^4.2.0":
31095-
version "4.2.3"
31096-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
31097-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
31098-
dependencies:
31099-
emoji-regex "^8.0.0"
31100-
is-fullwidth-code-point "^3.0.0"
31101-
strip-ansi "^6.0.1"
31102-
31103-
[email protected], string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3:
31071+
"string-width-cjs@npm:string-width@^4.2.0", [email protected], string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3:
3110431072
version "4.2.3"
3110531073
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
3110631074
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -31212,14 +31180,7 @@ stringify-object@^3.2.1:
3121231180
is-obj "^1.0.1"
3121331181
is-regexp "^1.0.0"
3121431182

31215-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
31216-
version "6.0.1"
31217-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
31218-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
31219-
dependencies:
31220-
ansi-regex "^5.0.1"
31221-
31222-
[email protected], strip-ansi@^6.0.0, strip-ansi@^6.0.1:
31183+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", [email protected], strip-ansi@^6.0.0, strip-ansi@^6.0.1:
3122331184
version "6.0.1"
3122431185
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
3122531186
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -34260,16 +34221,7 @@ wrangler@^3.67.1:
3426034221
optionalDependencies:
3426134222
fsevents "~2.3.2"
3426234223

34263-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
34264-
version "7.0.0"
34265-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
34266-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
34267-
dependencies:
34268-
ansi-styles "^4.0.0"
34269-
string-width "^4.1.0"
34270-
strip-ansi "^6.0.0"
34271-
34272-
[email protected], wrap-ansi@^7.0.0:
34224+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", [email protected], wrap-ansi@^7.0.0:
3427334225
version "7.0.0"
3427434226
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
3427534227
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)