Skip to content

Commit 9201f05

Browse files
fix(js): use workspaceRoot in copy-workspace-modules path
copy-workspace-modules should prepend the workspaceRoot when copying the workspaceModule to ensure that the executor can successfully copy the module regardless of where in the workspace it is run from.
1 parent bc11f27 commit 9201f05

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/js/src/executors/copy-workspace-modules/copy-workspace-modules.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ function handleWorkspaceModules(
7676
logger.verbose(`Copying ${pkgName}.`);
7777

7878
const workspaceModuleProject = workspaceModules.get(pkgName);
79-
const workspaceModuleRoot = workspaceModuleProject.data.root;
79+
const workspaceModuleRoot = join(
80+
workspaceRoot,
81+
workspaceModuleProject.data.root
82+
);
8083
const newWorkspaceModulePath = join(workspaceModulesDir, pkgName);
8184

8285
// Copy the module

0 commit comments

Comments
 (0)