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
  • Loading branch information
aukevanleeuwen authored Jan 17, 2023
1 parent 351b4aa commit ada727c
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

1 comment on commit ada727c

@vercel
Copy link

@vercel vercel bot commented on ada727c Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-dev-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.