MCPcopy Index your code
hub / github.com/nodejs/node / execWorkspaces

Method execWorkspaces

deps/npm/lib/commands/exec.js:35–43  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

33 }
34
35 async execWorkspaces (args) {
36 await this.setWorkspaces()
37
38 for (const [name, path] of this.workspaces) {
39 const locationMsg =
40 `in workspace ${this.npm.chalk.green(name)} at location:\n${this.npm.chalk.dim(path)}`
41 await this.callExec(args, { name, locationMsg, runPath: path })
42 }
43 }
44
45 async callExec (args, { name, locationMsg, runPath } = {}) {
46 let localBin = this.npm.localBin

Callers

nothing calls this directly

Calls 3

callExecMethod · 0.95
setWorkspacesMethod · 0.80
greenMethod · 0.45

Tested by

no test coverage detected