Skip to content

Commit

Permalink
Resolve executable path with node-which
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Mar 14, 2017
1 parent 534da41 commit a18dbe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion babel-tap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node
'use strict';

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

0 comments on commit a18dbe5

Please sign in to comment.