diff --git a/packages/astro/src/core/config/tsconfig.ts b/packages/astro/src/core/config/tsconfig.ts index debb0a3ff..db4b1392f 100644 --- a/packages/astro/src/core/config/tsconfig.ts +++ b/packages/astro/src/core/config/tsconfig.ts @@ -71,7 +71,7 @@ export async function loadTSConfig( ['jsconfig.json', 'tsconfig.json'].map((configName) => // `tsconfck` expects its first argument to be a file path, not a directory path, so we'll fake one find(join(safeCwd, './dummy.txt'), { - root: findUp ? root : undefined, + root: findUp ? undefined : root, configName: configName, }) )