-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #14235 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
- Loading branch information
Showing
1,042 changed files
with
45,758 additions
and
19,643 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @npm/cli-team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/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 | ||
|
||
NPX_CLI_JS="$basedir/node_modules/npm/bin/npx-cli.js" | ||
|
||
case `uname` in | ||
*MINGW*) | ||
NPM_PREFIX=`"$NODE_EXE" "$NPX_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" "$NPX_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" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env node | ||
|
||
const npx = require('libnpx') | ||
const path = require('path') | ||
|
||
const NPM_PATH = path.join(__dirname, 'npm-cli.js') | ||
|
||
npx(npx.parseArgs(process.argv, NPM_PATH)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
:: Created by npm, please don't edit manually. | ||
@ECHO OFF | ||
|
||
SETLOCAL | ||
|
||
SET "NODE_EXE=%~dp0\node.exe" | ||
IF NOT EXIST "%NODE_EXE%" ( | ||
SET "NODE_EXE=node" | ||
) | ||
|
||
SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js" | ||
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPX_CLI_JS%" prefix -g') DO ( | ||
SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js" | ||
) | ||
IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" ( | ||
SET "NPX_CLI_JS=%NPM_PREFIX_NPX_CLI_JS%" | ||
) | ||
|
||
"%NODE_EXE%" "%NPX_CLI_JS%" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.