Skip to content

Need few codemod commands #70

Discussion options

You must be logged in to vote

I need to keep the old file untouched and write the migration changes to a new file.

Seems like JSCodeshift doesn't have that feature, feel free to create a feature request in that project

Say I have a folder called .\e2e\steps under which there are multiple files. What is the codemod command to change all the files in the current folder.

I believe you can use the glob pattern to fetch a whole directory of files, e.g.

npx jscodeshift -t .\node_modules@wdio\codemod\protractor ./path/to/dir/**/*.e2e.js

What is the command to add multiple files to the conversion.

What do you mean by that?

Is there a codemod command that can help to do migrate all files inside the parent directory incl…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@chidaquest
Comment options

Answer selected by chidaquest
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants