Skip to content

Commit

Permalink
fix(js): fix reading tsconfig.json on TypeScript 4.9
Browse files Browse the repository at this point in the history
Fixes #14223
  • Loading branch information
aukevanleeuwen committed Jan 15, 2023
1 parent e4bf706 commit 589f802
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 589f802

Please sign in to comment.