Skip to content

Commit

Permalink
fix: convert paths to relative when invoking jscodeshift (#124)
Browse files Browse the repository at this point in the history
This avoids a crash due to the shell command being too long, and should
hopefully avoid the new error in the codecombat example project.
  • Loading branch information
alangpierce authored May 13, 2017
1 parent 287c127 commit 09af9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Re-run with the "check" command for more details.`);
let resolvedPath = resolveJscodeshiftScriptPath(scriptPath);
console.log(`Running jscodeshift script ${resolvedPath}...`);
await execLive(`${config.jscodeshiftPath} --parser flow \
-t ${resolvedPath} ${jsFiles.join(' ')}`);
-t ${resolvedPath} ${jsFiles.map(p => relative('', p)).join(' ')}`);
}
}

Expand Down

0 comments on commit 09af9e7

Please sign in to comment.