diff --git a/rollup.utils.js b/rollup.utils.js index 9e2496f2bf..021c6292c8 100644 --- a/rollup.utils.js +++ b/rollup.utils.js @@ -30,8 +30,7 @@ function getBuildDirectories(packageName, folderName) { if (process.env.LOCAL_BUILD_DIRECTORY) { try { - let nodeModulesDir = path.join( - process.cwd(), + let nodeModulesDir = path.resolve( process.env.LOCAL_BUILD_DIRECTORY, "node_modules" );