Permalink
Browse files

output message if shrinkwrap is present in the top level json

  • Loading branch information...
1 parent 85f70a2 commit 7b251155d846dc0a7588e632e5084c6b86437376 Glenn Block committed Jul 29, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/install.js
View
@@ -85,6 +85,11 @@ function install (args, cb_) {
// the /path/to/node_modules/..
var where = path.resolve(npm.dir, "..")
+ // output a message if shrinkwrap is present
+ if(path.resolve(where, "npm-shrinkwrap.json")) {
+ log.warn("install", "using npm-shrinkwrap.json");
+ }
+
// internal api: install(where, what, cb)
if (arguments.length === 3) {
where = args
@@ -99,6 +104,8 @@ function install (args, cb_) {
})
}
+
+
mkdir(where, function (er, made) {
if (er) return cb(er)
// install dependencies locally by default,
@@ -213,7 +220,6 @@ function readDependencies (context, where, opts, cb) {
} catch (ex) {
return cb(ex)
}
-
log.info("shrinkwrap", "file %j", wrapfile)
var rv = {}
Object.keys(data).forEach(function (key) {

0 comments on commit 7b25115

Please sign in to comment.