Skip to content

Commit 508e591

Browse files
committed
[docs] Update the readme blueprint to generate instructions for running a codemod locally
We recently had an engineer who was not familiar with npx and could not figure out how to run a new codemod locally. I've updated the blueprint to make it clear to new users how to run a codemod locally before publishing.
1 parent 3f94366 commit 508e591

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/local/generate/codemod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports.handler = function handler(options) {
7272
7373
## Local Usage
7474
\`\`\`
75-
npx ${process.cwd()}/${projectName}/bin/cli.js ${codemodName} path/of/files/ or/some**/*glob.js
75+
node ./bin/cli.js ${codemodName} path/of/files/ or/some**/*glob.js
7676
\`\`\`
7777
7878
## Input / Output

0 commit comments

Comments
 (0)