diff --git a/packages/js/src/utils/typescript/run-type-check.ts b/packages/js/src/utils/typescript/run-type-check.ts index 32c3cf51cecdff..1a8c4256cce471 100644 --- a/packages/js/src/utils/typescript/run-type-check.ts +++ b/packages/js/src/utils/typescript/run-type-check.ts @@ -139,6 +139,7 @@ async function setupTypeScript(options: TypeCheckOptions) { const dfltStructure = options.mode === 'emitDeclarationOnly' ? options.projectRoot && + options.outDir && rootDirIsWorkspaceRoot && path.normalize(options.outDir).endsWith(_projectRoot) : undefined;