1'use strict' 2 3const npm = require('../npm.js') 4const log = require('npmlog') 5 6module.exports = gentleFSOpts 7 8function gentleFSOpts (gently, base, abs) { 9 return { 10 // never rm the root, prefix, or bin dirs 11 // 12 // globals included because of `npm link` -- as far as the package 13 // requesting the link is concerned, the linked package is always 14 // installed globally 15 prefixes: [ 16 npm.prefix, 17 npm.globalPrefix, 18 npm.dir, 19 npm.root, 20 npm.globalDir, 21 npm.bin, 22 npm.globalBin 23 ], 24 absolute: abs, 25 log: log, 26 prefix: npm.prefix, 27 force: npm.config.get('force'), 28 gently: gently, 29 base: base, 30 name: 'npm' 31 } 32} 33