facebookarchive / codemod

Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.
Apache License 2.0
4.12k stars 197 forks source link

Doesn't recognize .d.ts extension #115

Open wildeyes opened 4 years ago

wildeyes commented 4 years ago

Trying to run codemod on .d.ts files, but it doesn't find any.

I'm running; codemod --extensions 'd.ts,' '(export { default as (\w*) }.*)' 'export const \2: unknown; //\1 'a.