Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Willighagen <lars.willighagen@gmail.com>2018-10-02 21:23:34 +0300
committerKat Marchán <kzm@zkat.tech>2019-02-19 01:55:20 +0300
commite135c2bb360dcf00ecee34a95985afec21ba3655 (patch)
tree487733371f94a19ae3f11018366bff69d4f91c76 /lib/outdated.js
parent8047b19b1b994fd4b4e7b5c91d7cc4e0384bd5e4 (diff)
update: re-enable updating local packages
PR #11584 removed the possibility of updating local packages (linked with symlinks) with `npm update`. Reason was that this functionality didn't work in v3.6.0. However, the system behind local dependencies has since changed, and I can't reproduce the original error anymore. Reverts 59e5056a2129cb2951f4ff3b657ada20657f01a7 Fixes: https://npm.community/t/1725?u=larsgw PR-URL: https://github.com/npm/cli/pull/73 Credit: @larsgw Reviewed-By: @iarna Reviewed-By: @zkat
Diffstat (limited to 'lib/outdated.js')
-rw-r--r--lib/outdated.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/outdated.js b/lib/outdated.js
index ebd67fb6b..baeb5e717 100644
--- a/lib/outdated.js
+++ b/lib/outdated.js
@@ -157,7 +157,7 @@ function makePretty (p, opts) {
}
if (opts.color) {
- columns[0] = color[has === want || want === 'linked' ? 'yellow' : 'red'](columns[0]) // dep
+ columns[0] = color[has === want ? 'yellow' : 'red'](columns[0]) // dep
columns[2] = color.green(columns[2]) // want
columns[3] = color.magenta(columns[3]) // latest
}