flow / flow-codemod

Flow codemod scripts
MIT License
15 stars 3 forks source link

Provide stripped version of strict-type-args.js. #5

Closed bhosmer closed 8 years ago

bhosmer commented 8 years ago

Current version of jscodeshift doesn't strip Flow annotations from the transform function itself, and explicitly disables pickup of a colocated .babelrc - so this diff replaces the main transform module with a stripped version, and puts the original in a src directory.

Versions should be kept in sync, easily done by making changes in src and using babel to strip annotations as desribed here: https://flowtype.org/docs/running.html#babel-quick-start.