diff options
Diffstat (limited to 'lib/install/save.js')
-rw-r--r-- | lib/install/save.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/install/save.js b/lib/install/save.js index 350480d66..9f649ccca 100644 --- a/lib/install/save.js +++ b/lib/install/save.js @@ -113,9 +113,9 @@ var getSaveType = exports.getSaveType = function (args) { validate('A', arguments) var nothingToSave = !args.length var globalInstall = npm.config.get('global') - var noSaveFlags = !npm.config.get('save') - && !npm.config.get('save-dev') - && !npm.config.get('save-optional') + var noSaveFlags = !npm.config.get('save') && + !npm.config.get('save-dev') && + !npm.config.get('save-optional') if (nothingToSave || globalInstall || noSaveFlags) return null if (npm.config.get('save-optional')) return 'optionalDependencies' @@ -127,7 +127,7 @@ function computeVersionSpec (child) { validate('O', arguments) var requested = child.package._requested if (!requested || requested.type === 'tag') { - requested = { + requested = { type: 'version', spec: child.package.version } |