8000 Resolve executable path with node-which · JoPFullJS/react-sortable@93dcb51 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93dcb51

Browse files
committed
Resolve executable path with node-which
1 parent 20c7964 commit 93dcb51

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)
0