diff --git a/package.json b/package.json index 7b07ed021e3..d209af277cc 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "test": "pnpm -r test", "lint": "pnpm -r lint", "cherry-pick": "node ./tools/cherry-pick/bin/run", - "clean": "pnpm store prune && git clean -fx **/node_modules && pnpm i", + "clean": "rimraf -g '**/node_modules' '**/.wireit' && pnpm store prune && pnpm i", "preinstall": "npx only-allow pnpm", "postinstall": "pnpm git:update-hooks", "git:update-hooks": "if test -d .git; then rm -rf .git/hooks && mkdir -p .git/hooks && husky install; else husky install; fi", @@ -54,6 +54,7 @@ "prettier": "npm:wp-prettier@^2.8.5", "regenerator-runtime": "^0.13.11", "request": "^2.88.2", + "rimraf": "^3.0.2", "sass": "^1.69.5", "sass-loader": "^10.5.0", "syncpack": "^10.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 196166b9b29..505b3c43501 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -101,6 +101,9 @@ importers: request: specifier: ^2.88.2 version: 2.88.2 + rimraf: + specifier: ^3.0.2 + version: 3.0.2 sass: specifier: ^1.69.5 version: 1.69.5 @@ -28256,6 +28259,7 @@ packages: /ci-info@1.6.0: resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==} + requiresBuild: true /ci-info@2.0.0: resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==} @@ -29295,6 +29299,7 @@ packages: /crypto-random-string@1.0.0: resolution: {integrity: sha512-GsVpkFPlycH7/fRR7Dhcmnoii54gV1nz7y4CWyeFS14N+JVBBhY+r8amRHE4BwSYal7BPTDp8isvAlCxyFt3Hg==} engines: {node: '>=4'} + requiresBuild: true /crypto-random-string@2.0.0: resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==} @@ -36094,6 +36099,7 @@ packages: /is-obj@1.0.1: resolution: {integrity: sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==} engines: {node: '>=0.10.0'} + requiresBuild: true /is-obj@2.0.0: resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} @@ -47634,6 +47640,7 @@ packages: /snapdragon-util@3.0.1: resolution: {integrity: sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==} engines: {node: '>=0.10.0'} + requiresBuild: true dependencies: kind-of: 3.2.2 @@ -49633,6 +49640,7 @@ packages: /to-regex-range@2.1.1: resolution: {integrity: sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==} engines: {node: '>=0.10.0'} + requiresBuild: true dependencies: is-number: 3.0.0 repeat-string: 1.6.1