-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider copying the file content instead of exporting it #7
Comments
To accomplish that, we would need a tool that can recurse over Flow types and bundle them together into a single file. This is because your Don't get me wrong, though! I would absolutely love to have a tool that can extract type definitions and bundle them all together into one big file! I just don't have time to write one right now. 🤷♂ |
I should also mention that there is a tool called flow-copy-source which can copy your entire |
There is no need to recurse over Flow types, as you've already pointed out, the only thing required to acomplish what I wrote would be to replicate flow-copy-source behaviour, basically, copying the files passed to the plugin with |
And the main reason behind this other approach would be to simplify the package folder structure, as if you copy all files with I'm doing what I wrote as a 2nd process after rollup using flow-copy-source, but I've recently started to work on a new package, so I researched a bit and I found this plugin you created so I opened this discussion to evaluate this other alternative. |
I used to use
I get the aesthetics of shipping a package to NPM without the The only downside I can see is if your source folder has a lot of assets, like images or CSS. In that case, copying over just the JS would be reasonable. This is the main use-case that would make me open to a |
Hi there,
I was just wondering why you choosed to export the original file instead of copying it directly, and the main reason behind my proposal is that with the current approach you need to preserve the src folder, while if the contents were copied, then it wouldn't be necessary to keep it.
The text was updated successfully, but these errors were encountered: