diff --git a/src/node/core/ts/loadTSConfig.ts b/src/node/core/ts/loadTSConfig.ts index e48edd62..0ac202e4 100644 --- a/src/node/core/ts/loadTSConfig.ts +++ b/src/node/core/ts/loadTSConfig.ts @@ -4,13 +4,13 @@ import ts from 'typescript' export async function loadTSConfig(options: { cwd: string tsconfigPath: string -}): Promise { +}): Promise { const {cwd, tsconfigPath} = options const configPath = ts.findConfigFile(cwd, ts.sys.fileExists, tsconfigPath) if (!configPath) { - throw new Error(`could not find a valid '${tsconfigPath}'`) + return undefined } const configFile = ts.readConfigFile(configPath, ts.sys.readFile)