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
path: root/bin
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-09-18 01:22:22 +0300
committerisaacs <i@izs.me>2020-09-18 01:22:22 +0300
commitf019a248a67e8c46dbe41bf31f4818c5ca2138bf (patch)
tree501f9622d19a7ad94056ad92745e2f6a24bbc37b /bin
parent5ccf22a4a4fdc365595ac9e8ea1b1829e61235eb (diff)
Remove unused npx binary
Close: https://github.com/npm/cli/pull/1792
Diffstat (limited to 'bin')
-rw-r--r--bin/npx35
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" "$@"