Skip to content

Commit fa900a4

Browse files
authored
fix: remove incremental compilation caches across builds (#466)
Currently, consecutive builds of the extension will fail because [TypeScript always saves](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#composite-projects) incremental compilation information in a composite project like this one. In particular, this means that even when the output directory of the TS compilation is removed, TypeScript doesn't realize that the output files are no longer there because it has cached the build graph, and thus not all the expected files are present for copying to the extension output directory. This commit fixes the above issue by removing TypeScript's incremental compilation build files before rebuilding the project.
1 parent d71cfad commit fa900a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -ex -o pipefail
66
rm -rf client/out
77
rm -rf server/out
88
rm -rf dist
9+
rm -rf **/*.tsbuildinfo
910

1011
# Build the client and server
1112
yarn run compile

0 commit comments

Comments
 (0)