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>2012-01-13 04:24:48 +0400
committerisaacs <i@izs.me>2012-01-13 04:31:25 +0400
commitb320e469bda17a41cd41fcc4c6f324b013bb5c3a (patch)
tree9d56590ca43d102f7da9fa8039095961a0f54cbb /bin
parentdc50bdd6fdc03cf90d26acfaf30613153ab93da1 (diff)
git bash shim for npm itself
Diffstat (limited to 'bin')
-rwxr-xr-xbin/npm6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/npm b/bin/npm
new file mode 100755
index 000000000..5fbcd3b03
--- /dev/null
+++ b/bin/npm
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -x "`dirname "$0"`/node.exe" ]; then
+ "`dirname "$0"`/node.exe" "`dirname "$0"`/node_modules/npm/bin/npm-cli.js" "$@"
+else
+ node "`dirname "$0"`/node_modules/npm/bin/npm-cli.js" "$@"
+fi