Skip to content

Commit 0b405af

Browse files
committed
fix(libnpmexec): workspaces support
Fixes the proper path location to use when targetting specific workspaces. Makes it so that libnpmexec is always reading from the Arborist actual tree instead of reading `node_modules` from the file system when retrieving local package data. Fixes: npm#3520 Relates to: npm#4619 Relates to: npm/statusboard#403
1 parent ff1367f commit 0b405af

File tree

6 files changed

+369
-112
lines changed

6 files changed

+369
-112
lines changed

lib/commands/exec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Exec extends BaseCommand {
9595

9696
for (const path of this.workspacePaths) {
9797
const locationMsg = await getLocationMsg({ color, path })
98-
await this.exec(args, { locationMsg, path, runPath: path })
98+
await this.exec(args, { locationMsg, path: this.npm.localPrefix, runPath: path })
9999
}
100100
}
101101
}

0 commit comments

Comments
 (0)