react-codemod
react-codemod copied to clipboard
fix: spawn `jscodeshift` cli using node
What's the problem this PR addresses?
Using require.resolve('.bin/jscodeshift') relies on an implementation detail that isn't guaranteed to exist (Yarn PnP) or point to the expected version of jscodeshift
How did you fix it?
Resolve the JS CLI directly and spawn it using node