Permalink
Browse files

Don't try to install cwd inside bundle

  • Loading branch information...
1 parent 11f0922 commit 313f2632b9f778ea9f1e66e4e9dd082e4766b52b @isaacs isaacs committed Feb 23, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/bundle.js
View
@@ -72,6 +72,12 @@ function bundle (args, dir, cb_) {
log.info(location, "destroyed", cb)
})
+ if (cmd === npm.commands.install && args.length === 0) {
+ // `npm bundle install` --> npm bundle
+ // Don't try to install the cwd inside of ./node_modules
+ cmd = null
+ }
+
if (typeof cmd === "function") {
return cmd(args, cb)
}

0 comments on commit 313f263

Please sign in to comment.