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

Method execWorkspaces

deps/npm/lib/commands/pack.js:75–86  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

73 }
74
75 async execWorkspaces (args) {
76 // If they either ask for nothing, or explicitly include '.' in the args, we effectively translate that into each workspace requested
77 const useWorkspaces = args.length === 0 || args.includes('.')
78
79 if (!useWorkspaces) {
80 log.warn('Ignoring workspaces for specified package(s)')
81 return this.exec(args)
82 }
83
84 await this.setWorkspaces()
85 return this.exec([...this.workspacePaths, ...args.filter(a => a !== '.')])
86 }
87}
88
89module.exports = Pack

Callers

nothing calls this directly

Calls 5

execMethod · 0.95
includesMethod · 0.80
warnMethod · 0.80
setWorkspacesMethod · 0.80
filterMethod · 0.65

Tested by

no test coverage detected