Add ability to pass one or many directories to jscodeshift. Fixes #21#24
Add ability to pass one or many directories to jscodeshift. Fixes #21#24
Conversation
ab06389 to
b59dd76
Compare
|
Can you simply increase the timeout in |
Add ability to pass one or many directories to jscodeshift. Fixes #21
|
Would be nice to use |
|
I didn't think that was important. In my codemods I always do the filtering in code (like search for specific require statements) and I just run them on everything. If you would prefer node-glob, feel free to send a PR. |
|
Ok thanks @cpojer, ill see if it comes up and PR if needed :) |
|
I think one of the issues is also that your shell will evaluate the path before it's passed to jscodeshift. However, some shells, with the correct setting, actually support |
…fier Allow for MemberExpression in JSXIdentifier
This allows us to use jscodeshift without find/xargs which should really help with the cli ergonomics. I've been fighting with this all the time and got really annoyed, so glad I finally got around to change the Runner.
This makes use of
node-dirand uses Promises. I converted the Runner code to ES6, pretty sure there are some subjective code style choices but I tried to make the style more "functional" and use const where appropriate.