From 0ed3e39d45641b0ebd45aca4ae5c6072676c35f6 Mon Sep 17 00:00:00 2001 From: Luca Borrione Date: Sat, 25 Mar 2017 14:18:41 +0000 Subject: [PATCH] issue28: adding the saveType when running npm update so that the package.json will my updated as well when updating local outdated packages (#29) --- tasks/lib/dev_update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lib/dev_update.js b/tasks/lib/dev_update.js index da5af80..81be6ad 100644 --- a/tasks/lib/dev_update.js +++ b/tasks/lib/dev_update.js @@ -38,7 +38,7 @@ var getSpawnArguments = function (phase, dependency, saveType) { case 'outdated': return ['outdated', '--json', '--depth=0']; case 'update': - return ['update', dependency]; + return ['update', dependency, saveType]; case 'install': //this will force the version to install to override locks in package.json return ['install', dependency + '@latest', saveType];