diff options
Diffstat (limited to 'deps/npm/lib/build.js')
-rw-r--r-- | deps/npm/lib/build.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/npm/lib/build.js b/deps/npm/lib/build.js index 815739c460..d9deb32da1 100644 --- a/deps/npm/lib/build.js +++ b/deps/npm/lib/build.js @@ -69,6 +69,9 @@ function writeBuiltinConf (folder, cb) { } function linkStuff (pkg, folder, global, didRB, cb) { + // allow to opt out of linking binaries. + if (npm.config.get("bin-links") === false) return cb() + // if it's global, and folder is in {prefix}/node_modules, // then bins are in {prefix}/bin // otherwise, then bins are in folder/../.bin @@ -109,7 +112,7 @@ function rebuildBundles (pkg, folder, parent, gtop, cb) { chain(files.filter(function (file) { // rebuild if: // not a .folder, like .bin or .hooks - return file.charAt(0) !== "." + return !file.match(/^[\._-]/) // not some old 0.x style bundle && file.indexOf("@") === -1 // either not a dep, or explicitly bundled |