Skip to content

Conversation

@ryami333
Copy link
Contributor

@ryami333 ryami333 commented Feb 27, 2018

When you do import foo from 'react-accessible-accordion/foo'; then Flow first looks for foo.js.flow for typing information. This means that if you publish all your source files into dist/ but you rename them *.flow then your users get Flow types without any additional configuration (eg. no need to use Flow-Typed).

The package flow-copy-source was created for this very purpose - it just copies everything from src/ to dist/ and appends .flow to all the file names.

See here for discussion.

Closes #51.

@ryami333
Copy link
Contributor Author

Note: no breaking changes. Publishing will require a bump to the 'patch' version only.

Copy link
Contributor

@vincentaudebert vincentaudebert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sweet! Thanks Mitch

@vincentaudebert vincentaudebert merged commit 28c23dc into master Feb 27, 2018
@vincentaudebert vincentaudebert deleted the feature/publish-flow-types branch February 27, 2018 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants