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

Upgrade to [email protected] / fix some typings #2307

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

ryyppy
Copy link
Contributor

@ryyppy ryyppy commented Dec 20, 2016

  • Adds inquirer libdefs for more exact typings
  • Refine / Fix some flowtype errors (mostly in __tests__)
  • Fix a small bug in src/util/map.js found by [email protected]

Summary

This PR adds flow-typed definitions for inquirer. Nice thing is, I didn't even need to touch the code after adding the definitions (I played around with it and could produce errors when passing wrong parameters to inquirer.prompt()).

Also I invested some time to upgrade flow from 0.33 to the most recent version 0.37.3, fixing some typing issues / bugs along the way.

Test plan

When I originally pulled the source from master, I realized that 11 tests were failing.
So I was doing two test runs, one testing the HEAD and one testing my modifications.

The same number of tests failed.
Also I made sure that [email protected] type checks the source properly.

@ryyppy
Copy link
Contributor Author

ryyppy commented Dec 22, 2016

@bestander What is happening with CI right now? Any open issue tackling this problem? Seems that several tests are failing due to some changes

@bestander
Copy link
Member

@ryyppy, I fixed this, could you rebase please?

* Adds inquirer libdefs for more exact typings
* Refine / Fix some flowtype errors (mostly in __tests__)
* Fix a small bug in src/util/map.js found by [email protected]
@ryyppy
Copy link
Contributor Author

ryyppy commented Dec 25, 2016

@bestander Hmm, not sure what's happening here on CircleCI:

image

@bestander bestander merged commit 867cf4f into yarnpkg:master Jan 3, 2017
@@ -16,6 +16,7 @@
"defaults": "^1.0.3",
"detect-indent": "^4.0.0",
"diff": "^2.2.1",
"flow-bin": "^0.37.3",
Copy link
Member

Choose a reason for hiding this comment

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

That is the reason why Circle failed.
I'll send a quick fix

bestander added a commit to bestander/yarn that referenced this pull request Jan 3, 2017
@ryyppy
Copy link
Contributor Author

ryyppy commented Jan 3, 2017

Awesome, thanks 👍

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.

2 participants