diff --git a/packages/puppeteer-core/package.json b/packages/puppeteer-core/package.json index 5244f6ad51c..94c3513a16a 100644 --- a/packages/puppeteer-core/package.json +++ b/packages/puppeteer-core/package.json @@ -39,11 +39,12 @@ "build:types": "wireit", "build": "wireit", "check": "tsx tools/ensure-correct-devtools-protocol-package", - "clean": "tsc -b --clean && rimraf lib src/generated", "format:types": "wireit", "generate:package-json": "wireit", "generate:sources": "wireit", - "prepack": "wireit" + "prepack": "wireit", + "clean": "tsc -b --clean && rimraf lib src/generated", + "clean:third_party": "wireit" }, "wireit": { "prepack": { @@ -72,6 +73,9 @@ "src/generated/**" ] }, + "clean:third_party": { + "command": "rimraf lib/esm/third_party lib/cjs/third_party" + }, "build:third_party": { "command": "rollup --config rollup.third_party.config.js", "dependencies": [ @@ -129,6 +133,7 @@ "command": "tsc -b", "clean": "if-file-deleted", "dependencies": [ + "clean:third_party", "generate:sources" ], "files": [