Skip to content

Commit

Permalink
fix(js): fix reading tsconfig.json on TypeScript 4.9 (#14380)
Browse files Browse the repository at this point in the history
(cherry picked from commit ada727c)
  • Loading branch information
aukevanleeuwen authored and FrozenPandaz committed Jan 17, 2023
1 parent 3b9ca39 commit ecf7bef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/nx/src/utils/typescript.ts
Expand Up @@ -34,6 +34,7 @@ function readTsConfigOptions(tsConfigPath: string) {
// we don't need to scan the files, we only care about options
const host = {
readDirectory: () => [],
readFile: () => '',
fileExists: tsModule.sys.fileExists,
};
return tsModule.parseJsonConfigFileContent(
Expand Down
1 change: 1 addition & 0 deletions packages/workspace/src/utilities/typescript.ts
Expand Up @@ -40,6 +40,7 @@ function readTsConfigOptions(tsConfigPath: string) {
// we don't need to scan the files, we only care about options
const host: Partial<ts.ParseConfigHost> = {
readDirectory: () => [],
readFile: () => '',
fileExists: tsModule.sys.fileExists,
};

Expand Down

0 comments on commit ecf7bef

Please sign in to comment.