jscodeshift
jscodeshift copied to clipboard
Expose runner to as interface
Hey 👋
it would be nice if jscodeshift can be used programmatically. Something like:
import { Runner } from 'jscodeshift';
allowing to pass in the arguments from the CLI as object.
I would really appreciate this as well.
FWIW this is possible via the following:
import jscodeshift from "jscodeshift/src/Runner";
The import statement (import jscodeshift from 'jscodeshift/src/Runner';) does not work. The error is Cannot find module 'jscodeshift/src/Runner' or its corresponding type declarations.ts(2307)