Closed clintwood closed 5 years ago
This is very helpful and a nice way to author flow packages.
@leebyron, any chance you could take a look at this PR?
While it's nice from a performance standpoint not to have to read the source files twice, I don't know that this is strictly necessary given that https://github.com/Macil/flow-copy-source exists, and the fact that we have plans to resurrect gen-flow-files as the official solution for generating .js.flow
files.
All good!
This PR adds a
-c, --copy-source
options to Copy typed source with .flow extension to output which Only applies when --out-file or --out-dir options are used.Using this option will copy
src/file.ext
todest/file.ext.flow
(whereext
is any extension supported byflow-remove-types
) anytime there is an output file.