diff --git a/packages/rollup/src/executors/rollup/rollup.impl.ts b/packages/rollup/src/executors/rollup/rollup.impl.ts index 5b9ee1ddeba72f..95824d262de5ae 100644 --- a/packages/rollup/src/executors/rollup/rollup.impl.ts +++ b/packages/rollup/src/executors/rollup/rollup.impl.ts @@ -306,7 +306,7 @@ function createTsCompilerOptions( ) { const compilerOptionPaths = computeCompilerOptionsPaths(config, dependencies); const compilerOptions = { - rootDir: options.projectRoot, + rootDir: config.options.rootDir, allowJs: options.allowJs, declaration: true, paths: compilerOptionPaths,