diff options
author | isaacs <i@izs.me> | 2011-10-22 05:34:22 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-22 05:34:22 +0400 |
commit | 2e457459673f24aba25451b858a47cd22e873c7f (patch) | |
tree | d60fdd9c953be0471a47f03382bf1a51e1cc4427 /lib/bin.js | |
parent | c12817f6332bd4c9e7926e4b212498e0cb03289b (diff) |
Close #1582 Make prefixes better on windows
1. Make prefixes and paths more windows-like on windows.
2. Abstract out all path-munging behavior to lib/npm.js where it belongs.
Diffstat (limited to 'lib/bin.js')
-rw-r--r-- | lib/bin.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bin.js b/lib/bin.js index 46535564d..bd82bc9e3 100644 --- a/lib/bin.js +++ b/lib/bin.js @@ -7,8 +7,7 @@ bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)" function bin (args, cb) { var path = require("path") - , global = npm.config.get("global") - , b = global ? path.join(npm.prefix, "bin") : path.join(npm.dir, ".bin") + , b = npm.bin , PATH = (process.env.PATH || "").split(":") output.write(b, function (er) { cb(er, b) }) |