From 25db3f11880028e2a9193e6d06ddd3fe4510a265 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Thu, 31 Aug 2023 16:58:31 +0200 Subject: [PATCH] chore: use git clean (#10828) --- package-lock.json | 28 ---------------------------- package.json | 3 +-- packages/browsers/package.json | 3 +-- packages/ng-schematics/package.json | 6 +++--- packages/puppeteer-core/package.json | 6 +----- packages/puppeteer/package.json | 5 +---- packages/testserver/package.json | 2 +- test/installation/package.json | 3 +-- test/package.json | 2 +- 9 files changed, 10 insertions(+), 48 deletions(-) diff --git a/package-lock.json b/package-lock.json index b149e362..9a026ce0 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 6c667d6b..a9a7549e 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 3b1558d1..86d36924 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 9d22d8fd..a8104163 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 40fc1749..4241b2e9 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 b9ce7c4b..6418df64 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 e21cf44b..bc438762 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 02d71b9c..e4f360cc 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 276b0cdd..28c5989d 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": {