Skip to content
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

[cli] Install a dependency's environment definitions #4541

Merged
merged 3 commits into from Oct 25, 2023

Conversation

Brianzchen
Copy link
Member

Closes #4445. For any dependency that ships flow type definitions check if they have a flow-typed.config.json and if so, read their env to check if they depend on any environment definitions.

If so install them along side any environment definitions the project installing might need. This allows a library to be developed with flow-typed knowing it will behave the same when consumed by a consumer using flow.

Not very common for open source, but very useful when developing a stack of internal npm libraries all shipping flow types.

@Brianzchen Brianzchen requested a review from a team October 24, 2023 10:14
Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

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

lgtm, if i understand it right there's no change in behaviour (outside of this exact one) right?

@Brianzchen
Copy link
Member Author

lgtm, if i understand it right there's no change in behaviour (outside of this exact one) right?

Yep thats right! Test prove that at least :D

@Brianzchen Brianzchen merged commit 908dc38 into flow-typed:main Oct 25, 2023
4 checks passed
@Brianzchen Brianzchen deleted the env-deps branch October 25, 2023 20:17
Copy link
Contributor

@AndrewSouthpaw AndrewSouthpaw left a comment

Choose a reason for hiding this comment

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

Generally lgtm, thanks for putting this together! (I'm OOO and didn't review closely but overall direction is a win.)

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.

None yet

3 participants