Skip to content

Commit f129c37

Browse files
authored
fix(gatsby-codemods): call jscodeshift natively (#38635)
Call jscodeshift natively Platform-neutral call to `jscodeshift`.
1 parent a2b2afd commit f129c37

File tree

1 file changed

+1
-1
lines changed
  • packages/gatsby-codemods/src/bin

1 file changed

+1
-1
lines changed

packages/gatsby-codemods/src/bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const codemods = [
1111
]
1212

1313
export const transformerDirectory = path.join(__dirname, `../`, `transforms`)
14-
export const jscodeshiftExecutable = require.resolve(`.bin/jscodeshift`)
14+
export const jscodeshiftExecutable = require.resolve(`jscodeshift/bin/jscodeshift.js`)
1515

1616
export function runTransform(transform, targetDir) {
1717
const transformerPath = path.join(transformerDirectory, `${transform}.js`)

0 commit comments

Comments
 (0)