Hacked By AnonymousFox

Current Path : /opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/arborist/lib/arborist/
Upload File :
Current File : //opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/arborist/lib/arborist/load-workspaces.js

const mapWorkspaces = require('@npmcli/map-workspaces')

// shared ref used by other mixins/Arborist
const _loadWorkspaces = Symbol.for('loadWorkspaces')

module.exports = cls => class MapWorkspaces extends cls {
  async [_loadWorkspaces] (node) {
    const workspaces = await mapWorkspaces({
      cwd: node.path,
      pkg: node.package,
    })

    if (node && workspaces.size) {
      node.workspaces = workspaces
    }

    return node
  }
}

Hacked By AnonymousFox1.0, Coded By AnonymousFox