diff --git a/package-lock.json b/package-lock.json index b149e362d90..9a026ce06a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,7 +66,6 @@ "pngjs": "7.0.0", "prettier": "3.0.3", "puppeteer": "file:packages/puppeteer", - "rimraf": "5.0.1", "rollup": "3.28.1", "rollup-plugin-polyfill-node": "0.12.0", "semver": "7.5.4", @@ -9523,24 +9522,6 @@ "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.1.tgz", - "integrity": "sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==", - "dev": true, - "dependencies": { - "glob": "^10.2.5" - }, - "bin": { - "rimraf": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/rollup": { "version": "3.28.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.1.tgz", @@ -17726,15 +17707,6 @@ "version": "1.0.4", "dev": true }, - "rimraf": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.1.tgz", - "integrity": "sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==", - "dev": true, - "requires": { - "glob": "^10.2.5" - } - }, "rollup": { "version": "3.28.1", "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.28.1.tgz", diff --git a/package.json b/package.json index 6c667d6b00a..a9a7549e090 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:docs": "wireit", "check:pinned-deps": "tsx tools/ensure-pinned-deps", "check": "npm run check --workspaces --if-present && run-p check:*", - "clean": "rimraf -g \"./**/.wireit\" && npm run clean --workspaces --if-present", + "clean": "npm run clean --workspaces --if-present", "debug": "mocha --inspect-brk", "docs": "run-s build:docs generate:markdown", "format:eslint": "eslint --ext js --ext ts --fix .", @@ -158,7 +158,6 @@ "pngjs": "7.0.0", "prettier": "3.0.3", "puppeteer": "file:packages/puppeteer", - "rimraf": "5.0.1", "rollup": "3.28.1", "rollup-plugin-polyfill-node": "0.12.0", "semver": "7.5.4", diff --git a/packages/browsers/package.json b/packages/browsers/package.json index 3b1558d1346..86d36924953 100644 --- a/packages/browsers/package.json +++ b/packages/browsers/package.json @@ -5,8 +5,7 @@ "scripts": { "build:docs": "wireit", "build": "wireit", - "build:test": "wireit", - "clean": "tsc --build --clean && rm -rf lib", + "clean": "git clean -Xdf -e '!node_modules' .", "test": "wireit" }, "bin": "lib/cjs/main-cli.js", diff --git a/packages/ng-schematics/package.json b/packages/ng-schematics/package.json index 9d22d8fd237..a8104163af2 100644 --- a/packages/ng-schematics/package.json +++ b/packages/ng-schematics/package.json @@ -4,12 +4,12 @@ "description": "Puppeteer Angular schematics", "scripts": { "build": "wireit", - "clean": "tsc -b --clean && rm -rf lib && rm -rf test/build", + "clean": "git clean -Xdf -e '!node_modules' .", "dev:test": "npm run test --watch", "dev": "npm run build --watch", - "test": "wireit", + "sandbox:test": "node tools/sandbox.js --test", "sandbox": "node tools/sandbox.js", - "sandbox:test": "node tools/sandbox.js --test" + "test": "wireit" }, "wireit": { "build": { diff --git a/packages/puppeteer-core/package.json b/packages/puppeteer-core/package.json index 40fc1749188..4241b2e9f75 100644 --- a/packages/puppeteer-core/package.json +++ b/packages/puppeteer-core/package.json @@ -35,13 +35,9 @@ }, "scripts": { "build:docs": "wireit", - "build:tsc": "wireit", - "build:types": "wireit", "build": "wireit", "check": "tsx tools/ensure-correct-devtools-protocol-package", - "clean": "tsc -b --clean && rm -rf lib src/generated", - "generate:package-json": "wireit", - "generate:sources": "wireit", + "clean": "git clean -Xdf -e '!node_modules' .", "prepack": "wireit", "unit": "wireit" }, diff --git a/packages/puppeteer/package.json b/packages/puppeteer/package.json index b9ce7c4b589..6418df64b9d 100644 --- a/packages/puppeteer/package.json +++ b/packages/puppeteer/package.json @@ -35,11 +35,8 @@ }, "scripts": { "build:docs": "wireit", - "build:tsc": "wireit", - "build:types": "wireit", "build": "wireit", - "clean": "tsc -b --clean && rm -rf lib", - "generate:package-json": "wireit", + "clean": "git clean -Xdf -e '!node_modules' .", "postinstall": "node install.js", "prepack": "wireit" }, diff --git a/packages/testserver/package.json b/packages/testserver/package.json index e21cf44b45e..bc438762dc5 100644 --- a/packages/testserver/package.json +++ b/packages/testserver/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "build": "wireit", - "clean": "tsc -b --clean && rm -rf lib" + "clean": "git clean -Xdf -e '!node_modules' ." }, "wireit": { "build": { diff --git a/test/installation/package.json b/test/installation/package.json index 02d71b9caa6..e4f360cc2d0 100644 --- a/test/installation/package.json +++ b/test/installation/package.json @@ -5,8 +5,7 @@ "private": true, "scripts": { "build": "wireit", - "build:packages": "wireit", - "clean": "tsc -b --clean && rm -rf build", + "clean": "git clean -Xdf -e '!node_modules' .", "test": "mocha" }, "wireit": { diff --git a/test/package.json b/test/package.json index 276b0cddc80..28c5989d2c1 100644 --- a/test/package.json +++ b/test/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "wireit", - "clean": "tsc -b --clean && rm -rf build" + "clean": "git clean -Xdf -e '!node_modules' ." }, "wireit": { "build": {