MCPcopy Create free account
hub / github.com/npm/cli / #loadWorkspaces

Method #loadWorkspaces

workspaces/arborist/lib/node.js:884–892  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

882 }
883
884 #loadWorkspaces () {
885 if (!this.#workspaces) {
886 return
887 }
888
889 for (const [name, path] of this.#workspaces.entries()) {
890 new Edge({ from: this, name, spec: `file:${path}`, type: 'workspace' })
891 }
892 }
893
894 [_loadDeps] () {
895 // Caveat! Order is relevant!

Callers 2

workspacesMethod · 0.95
packageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected