aboutsummaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/lib/config/bin-links.js
blob: 1ee90cc35e92f50555152ada6ce5669f8f0d8e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict'

const npm = require('../npm.js')
var packageId = require('../utils/package-id.js')
const log = require('npmlog')

module.exports = binLinksOpts

function binLinksOpts (pkg) {
  return {
    ignoreScripts: npm.config.get('ignore-scripts'),
    force: npm.config.get('force'),
    globalBin: npm.globalBin,
    globalDir: npm.globalDir,
    json: npm.config.get('json'),
    log: log,
    name: 'npm',
    parseable: npm.config.get('parseable'),
    pkgId: packageId(pkg),
    prefix: npm.config.get('prefix'),
    prefixes: [
      npm.prefix,
      npm.globalPrefix,
      npm.dir,
      npm.root,
      npm.globalDir,
      npm.bin,
      npm.globalBin
    ],
    umask: npm.config.get('umask')
  }
}