Need few codemod commands #70
-
Hi presently I am using the usual codemod command: npx jscodeshift -t .\node_modules@wdio\codemod\protractor <file_path> It rewrites the same file. I need codemod commands for the following:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Seems like JSCodeshift doesn't have that feature, feel free to create a feature request in that project
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 do you mean by that?
See answer in 2. |
Beta Was this translation helpful? Give feedback.
-
Maybe:
Not sure what the right glob pattern is. |
Beta Was this translation helpful? Give feedback.
Seems like JSCodeshift doesn't have that feature, feel free to create a feature request in that project
I believe you can use the glob pattern to fetch a whole directory of files, e.g.
What do you mean by that?