diff options
author | Rebecca Turner <me@re-becca.org> | 2015-10-29 16:50:12 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-11-02 14:25:04 -0500 |
commit | 507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab (patch) | |
tree | 68ea2bbf0733eb1a1977b899040e18d035737a51 /deps/npm/scripts | |
parent | 6e40bf065931e20737875b27ab9ee71eaf5c7f99 (diff) | |
download | android-node-v8-507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab.tar.gz android-node-v8-507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab.tar.bz2 android-node-v8-507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab.zip |
deps: upgrade npm to 3.3.10
PR-URL: https://github.com/nodejs/node/pull/3599
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/scripts')
-rwxr-xr-x | deps/npm/scripts/index-build.js | 10 | ||||
-rw-r--r-- | deps/npm/scripts/installable.sh | 13 |
2 files changed, 5 insertions, 18 deletions
diff --git a/deps/npm/scripts/index-build.js b/deps/npm/scripts/index-build.js index 8fbbf8595d..058bc74019 100755 --- a/deps/npm/scripts/index-build.js +++ b/deps/npm/scripts/index-build.js @@ -17,11 +17,11 @@ glob(root + '/{README.md,doc/*/*.md}', function (er, files) { }).filter(function (f) { return f }).sort(function (a, b) { - return (a[0] === b[0]) ? - (path.basename(a[1]) === 'npm.md' ? -1 : - path.basename(b[1]) === 'npm.md' ? 1 : - a[1] > b[1] ? 1 : -1) : - a[0] - b[0] + return (a[0] === b[0]) + ? (path.basename(a[1]) === 'npm.md' ? -1 + : path.basename(b[1]) === 'npm.md' ? 1 + : a[1] > b[1] ? 1 : -1) + : a[0] - b[0] })) }) diff --git a/deps/npm/scripts/installable.sh b/deps/npm/scripts/installable.sh deleted file mode 100644 index 1d5a90c290..0000000000 --- a/deps/npm/scripts/installable.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -npmver=$(perl -E "say q{$npm_config_user_agent} =~ m{/(\S+)}") - -if semver -r ^3.0.0-0 $npmver > /dev/null; then - echo "Packaging with $npmver" -else - echo "[0;41;4mPackaging or installing [1mnpm@$npm_package_version[22m with [1mnpm@$npmver[22m is impossible.[0m" 1>&2 - echo "[0;41;3mPlease install [1mnpm@^3.0.0-0[22m from the registry and use that or run your command with[0m" 1>&2 - echo "[0;41;3mthis version of npm with:[0m" 1>&2 - npmargs=$(node -e "a=$npm_config_argv; console.log(a.original.join(' '))") - echo "[1m $npm_node_execpath $PWD $npmargs[0m" 1>&2 - exit 1 -fi |