Skip to content

Commit d65012c

Browse files
radarisaacs
authored andcommitted
Rename bin to node-which
Naming the executable of this library `which` can cause issues -- such as microsoft/vscode#82552. Rename executable to `node-which`, so that people can clearly differentiate between built-in `which` (bash, zsh, etc) and the Node version. PR-URL: #67 Credit: @radar Close: #67 Reviewed-by: @isaacs
1 parent 8ef6069 commit d65012c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Changes
22

3-
43
## 2.0.1
54

65
* generate changelog and publish on version bump
File renamed without changes.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"url": "git://github.com/isaacs/node-which.git"
99
},
1010
"main": "which.js",
11-
"bin": "./bin/which",
11+
"bin": {
12+
"node-which": "./bin/node-which"
13+
},
1214
"license": "ISC",
1315
"dependencies": {
1416
"isexe": "^2.0.0"
@@ -30,7 +32,7 @@
3032
},
3133
"files": [
3234
"which.js",
33-
"bin/which"
35+
"bin/node-which"
3436
],
3537
"tap": {
3638
"check-coverage": true

test/bin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var t = require('tap')
22
var spawn = require('child_process').spawn
33
var node = process.execPath
4-
var bin = require.resolve('../bin/which')
4+
var bin = require.resolve('../bin/node-which')
55

66
function which (args, extraPath, cb) {
77
if (typeof extraPath === 'function')

0 commit comments

Comments
 (0)