Skip to content

Commit 38bc83b

Browse files
committed
fix: opts.extraBinPaths should not get mutated
1 parent 6513825 commit 38bc83b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function _incorrectWorkingDirectory (wd, pkg) {
101101
}
102102

103103
function lifecycle_ (pkg, stage, wd, opts, env, cb) {
104-
const pathArr = opts.extraBinPaths || []
104+
const pathArr = [...opts.extraBinPaths || []]
105105
const p = wd.split(/[\\/]node_modules[\\/]/)
106106
let acc = path.resolve(p.shift())
107107

0 commit comments

Comments
 (0)