Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const chalk = require('chalk');
const isGitClean = require('is-git-clean');

const transformerDirectory = path.join(__dirname, '../', 'transforms');
const jscodeshiftExecutable = require.resolve('.bin/jscodeshift');
const jscodeshiftExecutable = require.resolve('jscodeshift/bin/jscodeshift.js');

function checkGitStatus(force) {
let clean = false;
Expand Down Expand Up @@ -113,7 +113,7 @@ function runTransform({ files, flags, parser, transformer, answers }) {

console.log(`Executing command: jscodeshift ${args.join(' ')}`);

const result = execa.sync(jscodeshiftExecutable, args, {
const result = execa.sync('node', [jscodeshiftExecutable, ...args], {
stdio: 'inherit',
stripEof: false
});
Expand Down