From 101b02d3ceae0ad052ac99630e9d94c475d106e1 Mon Sep 17 00:00:00 2001 From: Mavaddat Javid <5055400+mavaddat@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:51:59 -0400 Subject: [PATCH] Call jscodeshift natively Platform-neutral call to `jscodeshift`. --- packages/gatsby-codemods/src/bin/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`)