From ada727cf1a9394c5b3eb4722ef17a0bc5fb9195d Mon Sep 17 00:00:00 2001 From: Auke van Leeuwen Date: Tue, 17 Jan 2023 07:34:01 +0100 Subject: [PATCH] fix(js): fix reading tsconfig.json on TypeScript 4.9 (#14380) --- packages/nx/src/utils/typescript.ts | 1 + packages/workspace/src/utilities/typescript.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/nx/src/utils/typescript.ts b/packages/nx/src/utils/typescript.ts index 9a49c1cf47038..8f0b40b17677f 100644 --- a/packages/nx/src/utils/typescript.ts +++ b/packages/nx/src/utils/typescript.ts @@ -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( diff --git a/packages/workspace/src/utilities/typescript.ts b/packages/workspace/src/utilities/typescript.ts index 98a6cbfffa3e0..9b3f7485b8eab 100644 --- a/packages/workspace/src/utilities/typescript.ts +++ b/packages/workspace/src/utilities/typescript.ts @@ -40,6 +40,7 @@ function readTsConfigOptions(tsConfigPath: string) { // we don't need to scan the files, we only care about options const host: Partial = { readDirectory: () => [], + readFile: () => '', fileExists: tsModule.sys.fileExists, };