diff options
author | isaacs <i@izs.me> | 2020-09-18 01:22:22 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-09-18 01:22:22 +0300 |
commit | f019a248a67e8c46dbe41bf31f4818c5ca2138bf (patch) | |
tree | 501f9622d19a7ad94056ad92745e2f6a24bbc37b /bin | |
parent | 5ccf22a4a4fdc365595ac9e8ea1b1829e61235eb (diff) |
Remove unused npx binary
Close: https://github.com/npm/cli/pull/1792
Diffstat (limited to 'bin')
-rw-r--r-- | bin/npx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/bin/npx b/bin/npx deleted file mode 100644 index 261e33985..000000000 --- a/bin/npx +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix - -basedir=`dirname "$0"` - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -NODE_EXE="$basedir/node.exe" -if ! [ -x "$NODE_EXE" ]; then - NODE_EXE=node -fi - -NPM_CLI_JS="$basedir/node_modules/npm/bin/npm-cli.js" -NPX_CLI_JS="$basedir/node_modules/npm/bin/npx-cli.js" - -case `uname` in - *MINGW*) - NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` - NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" - if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then - NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS" - fi - ;; - *CYGWIN*) - NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g` - NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js" - if [ -f "$NPM_PREFIX_NPX_CLI_JS" ]; then - NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS" - fi - ;; -esac - -"$NODE_EXE" "$NPX_CLI_JS" "$@" |