-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Develop a library with flowtype #2374
Comments
See #1996 (comment) Just as an example of a project setup, I have this "preversion" script in one of my projects: https://github.com/rpominov/fun-task/blob/9e5b512e4d4e2b6aeaf967ca63991afa0b3c885b/package.json#L10 |
@rpominov Thanks! |
In the changelog, the existence of a It's supposed to be alpha-level, but try: flow gen-flow-files --out-dir lib src/index.js |
@LPGhatguy yeah I saw that....this is exactly what I want. |
I think the .js.flow build step strategy is well enough documented now that we can close this issue. |
Where I can read about this strategy? |
I'm currently developing a library using flowtype. And I'm using babel with preset-0. Also, transpile it before npm publish.
After transpiling, the type annotation has been thrown away, so projects using my library won't have benefits of type checking. I have tried some way to handle this problem.
Is there a the suggested way to do this?
And for point 2, am I doing something wrong?
Thanks
The text was updated successfully, but these errors were encountered: