react-codemod icon indicating copy to clipboard operation
react-codemod copied to clipboard

fix: spawn `jscodeshift` cli using node

Open merceyz opened this issue 4 years ago • 0 comments

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

merceyz avatar Jun 07 '21 19:06 merceyz