Skip to content

Commit

Permalink
unbuild: Tell gently-rm about which modules we are removing bins for
Browse files Browse the repository at this point in the history
PR-URL: npm/npm#9198
  • Loading branch information
iarna committed Aug 14, 2015
1 parent b31812e commit 6e9a865
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/unbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ function rmBins (pkg, folder, parent, top, cb) {
var binRoot = top ? npm.bin : path.resolve(parent, '.bin')
asyncMap(Object.keys(pkg.bin), function (b, cb) {
if (process.platform === 'win32') {
chain([ [gentlyRm, path.resolve(binRoot, b) + '.cmd', true],
[gentlyRm, path.resolve(binRoot, b), true] ], cb)
chain([ [gentlyRm, path.resolve(binRoot, b) + '.cmd', true, folder],
[gentlyRm, path.resolve(binRoot, b), true, folder] ], cb)
} else {
gentlyRm(path.resolve(binRoot, b), true, cb)
gentlyRm(path.resolve(binRoot, b), true, folder, cb)
}
}, cb)
}
Expand Down

0 comments on commit 6e9a865

Please sign in to comment.