chore: fix third_party build (#9554)

The third_party folder is compiled with tsc and then rolled up in-place.
This means that the next build might try to compile the file that has
been rolled up leading to build errors. It seems the safest solution is
to always rebuild third_party folder as the size is relatively small.
This commit is contained in:
Alex Rudenko 2023-01-20 15:12:03 +01:00 committed by GitHub
parent 6bee9a09c4
commit a919d18ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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": [