Skip to content

Commit 728d1e6

Browse files
authored
refactor: Scope the usage of disableSourceOfProjectReferenceRedirect to packages where it's really needed (#3299)
This pull request updates TypeScript configuration to adjust how project reference redirects are handled. The main change is moving the `disableSourceOfProjectReferenceRedirect` option from the root `tsconfig.node.json` to the more specific `packages/cli-tools/tsconfig.node.json` configuration. In essence, we don't want it enabled globally, and since the `cli-tools` is the only package that uses a private resource from another package (that it references) we can go with more accurate setup. ### Changes **TypeScript configuration changes:** * Removed `disableSourceOfProjectReferenceRedirect` from the root `tsconfig.node.json` to avoid globally disabling project reference redirects. * Added `disableSourceOfProjectReferenceRedirect: true` to `packages/cli-tools/tsconfig.node.json` so that this setting only applies to the CLI tools package, providing more granular control.
1 parent 24ff75c commit 728d1e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cli-tools/tsconfig.node.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../../tsconfig.node.json",
33
"compilerOptions": {
4-
"outDir": "dist"
4+
"outDir": "dist",
5+
"disableSourceOfProjectReferenceRedirect": true
56
},
67
"include": [
78
"package.json",

tsconfig.node.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"sourceMap": true,
1515
"stripInternal": true,
1616
"useUnknownInCatchVariables": false,
17-
"strictBindCallApply": true,
18-
"disableSourceOfProjectReferenceRedirect": true
17+
"strictBindCallApply": true
1918
},
2019
"lib": [
2120
"DOM"

0 commit comments

Comments
 (0)