Skip to content

Commit 88e33a5

Browse files
committed
Fix clean.sh
tsc doesn't check if the output exists when incremental is true. i.e if I delete the out directory, but keep the tsbuildinfo and try to rebuild, nothing happens cause it thinks everything is up to date I guess... With this change, yarn clean will now remove the tsbuildinfo correctly so things work as expected.
1 parent 6e8d8d9 commit 88e33a5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ci/build/clean.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ main() {
55
cd "$(dirname "${0}")/../.."
66
source ./ci/lib.sh
77

8-
rm -Rf \
8+
rm -rf \
99
out \
1010
release \
1111
release-standalone \
1212
release-packages \
1313
release-gcp \
14-
release-images/ \
14+
release-images \
1515
dist \
16-
.tsbuildinfo \
17-
.cache/out.tsbuildinfo
16+
.cache
1817

1918
pushd lib/vscode
2019
git clean -xffd

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"esModuleInterop": true,
1414
"allowSyntheticDefaultImports": true,
1515
"sourceMap": true,
16-
"tsBuildInfoFile": "./.cache/tsbuildinfo",
16+
"tsBuildInfoFile": "./.cache/out.tsbuildinfo",
1717
"incremental": true,
1818
"rootDir": "./src",
1919
"typeRoots": ["./node_modules/@types", "./typings"]

0 commit comments

Comments
 (0)