We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb28c2 commit bb4f0beCopy full SHA for bb4f0be
src/typescript.ts
@@ -93,7 +93,10 @@ export function getTypescriptConfig(
93
}
94
95
// disallow overrriding rootDir
96
- configParseResult.options.rootDir = './'
+ if (path.resolve(configParseResult.options.rootDir) !== path.resolve(cwd) && logger) {
97
+ logger.log('Warning: "rootDir" from local tsconfig.json is overriden')
98
+ }
99
+ configParseResult.options.rootDir = cwd;
100
101
return configParseResult.options
102
0 commit comments