Skip to content

Commit

Permalink
fix(gatsby-codemods): call jscodeshift natively (#38635)
Browse files Browse the repository at this point in the history
Call jscodeshift natively

Platform-neutral call to `jscodeshift`.
  • Loading branch information
mavaddat authored Jan 4, 2024
1 parent a2b2afd commit f129c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-codemods/src/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit f129c37

Please sign in to comment.