ci: Fix typescript incremental builds (no-changelog) (#7275)

`tsBuildInfoFile` is supposed to be relative to `tsconfig` like `outDir`
is.
Because of this, we are currently saving the TS incremental build cache
for all packages in the same file. This is likely causing issues where
the built backend code sometimes does not accurately map to the current
source code.

This PR changes the incremental build setup to keep the cache in
individual `dist` folders, like it used to be up until a 2 months ago,
before https://github.com/n8n-io/n8n/pull/6816.
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-09-29 13:26:06 +02:00
committed by GitHub
parent 763d4514fa
commit f8406c04b1
12 changed files with 17 additions and 9 deletions

View File

@@ -2,7 +2,8 @@
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist"
"outDir": "dist",
"tsBuildInfoFile": "dist/build.tsbuildinfo"
},
"include": ["src/**/*.ts"],
"exclude": ["test/**"]