Skip to content

Commit 59ccd59

Browse files
committed
Resolve executable path with node-which
1 parent dc2b576 commit 59ccd59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

babel-tap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22
'use strict';
33

4-
process.execPath = require.resolve('.bin/babel-node');
4+
var which = require('which');
5+
process.execPath = which.sync('babel-node');
56
require('tap/bin/run.js');

0 commit comments

Comments
 (0)