diff options
author | isaacs <i@izs.me> | 2012-01-13 04:24:48 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-01-13 04:31:25 +0400 |
commit | b320e469bda17a41cd41fcc4c6f324b013bb5c3a (patch) | |
tree | 9d56590ca43d102f7da9fa8039095961a0f54cbb /bin | |
parent | dc50bdd6fdc03cf90d26acfaf30613153ab93da1 (diff) |
git bash shim for npm itself
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/npm | 6 |
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 |