diff --git a/packages/gatsby-codemods/src/bin/cli.js b/packages/gatsby-codemods/src/bin/cli.js index 4ca2827d31e89..589762d6a1298 100644 --- a/packages/gatsby-codemods/src/bin/cli.js +++ b/packages/gatsby-codemods/src/bin/cli.js @@ -11,7 +11,7 @@ const codemods = [ ] export const transformerDirectory = path.join(__dirname, `../`, `transforms`) -export const jscodeshiftExecutable = require.resolve(`.bin/jscodeshift`) +export const jscodeshiftExecutable = require.resolve(`jscodeshift/bin/jscodeshift.js`) export function runTransform(transform, targetDir) { const transformerPath = path.join(transformerDirectory, `${transform}.js`)