summaryrefslogtreecommitdiff
path: root/deps/npm/lib/unbuild.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/unbuild.js')
-rw-r--r--deps/npm/lib/unbuild.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/unbuild.js b/deps/npm/lib/unbuild.js
index 9bb8d7b665..f5efb1ee6d 100644
--- a/deps/npm/lib/unbuild.js
+++ b/deps/npm/lib/unbuild.js
@@ -59,7 +59,7 @@ function rmStuff (pkg, folder, 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
- var parent = path.dirname(folder)
+ var parent = pkg.name[0] === '@' ? path.dirname(path.dirname(folder)) : path.dirname(folder)
var gnm = npm.dir
var top = gnm === parent