Macil / flow-copy-source

Script to copy javascript files and append ".flow" to the filename
MIT License
173 stars 13 forks source link

Old files remain even after originals have been removed #4

Closed anfedorov closed 7 years ago

anfedorov commented 7 years ago

Would be helpful to remove any .flow files that are no longer in the source.

Macil commented 7 years ago

I think it could be useful, but when being used with babel it would be an incomplete solution because it wouldn't solve the issue of old .js files still being around too unless babel had the same option.

To avoid this issue, a project's prepare command could start with removing the output directory like react-draggable-list's does.