mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-29 15:14:40 +03:00
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:
parent
763d4514fa
commit
f8406c04b1
@ -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/**"]
|
||||
|
@ -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/**"]
|
||||
|
@ -10,6 +10,7 @@
|
||||
"@/*": ["./*"],
|
||||
"@db/*": ["./databases/*"]
|
||||
},
|
||||
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
|
||||
// TODO: remove all options below this line
|
||||
"strict": false,
|
||||
"noUnusedLocals": false,
|
||||
|
@ -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/**"]
|
||||
|
@ -7,6 +7,7 @@
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
},
|
||||
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
// TODO: remove all options below this line
|
||||
|
@ -3,6 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"preserveSymlinks": true,
|
||||
"tsBuildInfoFile": "dist/build.tsbuildinfo",
|
||||
// TODO: remove all options below this line
|
||||
"noUnusedLocals": false,
|
||||
"useUnknownInCatchVariables": false
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
|
||||
"compilerOptions": {
|
||||
"outDir": "dist"
|
||||
"outDir": "dist",
|
||||
"tsBuildInfoFile": "dist/build.tsbuildinfo"
|
||||
},
|
||||
"include": [
|
||||
"credentials/**/*.ts",
|
||||
|
@ -6,6 +6,7 @@
|
||||
"@test/*": ["./test/*"],
|
||||
"@utils/*": ["./utils/*"]
|
||||
},
|
||||
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
|
||||
// TODO: remove all options below this line
|
||||
"noImplicitReturns": false,
|
||||
"useUnknownInCatchVariables": false
|
||||
|
@ -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/**"]
|
||||
|
@ -7,6 +7,7 @@
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
},
|
||||
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo",
|
||||
// TODO: remove all options below this line
|
||||
"useUnknownInCatchVariables": false
|
||||
},
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"types": ["node", "jest"],
|
||||
"noEmit": true,
|
||||
"tsBuildInfoFile": "dist/typecheck.tsbuildinfo"
|
||||
"noEmit": true
|
||||
}
|
||||
}
|
||||
|
@ -2,8 +2,7 @@
|
||||
"compilerOptions": {
|
||||
"types": ["node"],
|
||||
"noEmit": false,
|
||||
"declaration": true,
|
||||
"tsBuildInfoFile": "dist/build.tsbuildinfo"
|
||||
"declaration": true
|
||||
},
|
||||
"tsc-alias": {
|
||||
"replacers": {
|
||||
|
Loading…
Reference in New Issue
Block a user