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

Move jest-cli to peerDependencies #32

Merged
merged 1 commit into from
Jan 4, 2017
Merged

Conversation

jmurzy
Copy link
Contributor

@jmurzy jmurzy commented Dec 23, 2016

🍺

@jmurzy
Copy link
Contributor Author

jmurzy commented Dec 23, 2016

@alansouzati It'd be great if you could cut a new release when if you merge this.

Happy Holidays! 🎄

@alansouzati
Copy link
Collaborator

Thanks for your contribution. Can you add details around the motivation to move to peerDependencies?

"babel-plugin-transform-object-rest-spread": "^6.3.13",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
"gulp": "^3.8.7"
"gulp": "^3.8.7",
"jest-cli": ">=17.0.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why we need to declare jest-cli in both devDependencies and peerDependencies?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, can you explain the motivation behind moving from ^ to >= ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's declared in devDependencies because without it the tests would fail. 😉

And again, => means any version 17 or above is good. In the unlikely case where Jest introduces a breaking change to its public CLI interface, you can publish a patch release with an upper bound e.g. =>17.0.0 < 19.5.0, fix the issue, then release a major version with a new lower bound. Hope this makes sense.

@jmurzy
Copy link
Contributor Author

jmurzy commented Jan 4, 2017

@alansouzati Because the version of Jest I use should not be dictated by a gulp plugin. More on peerDependencies here.

@alansouzati
Copy link
Collaborator

Thanks for clarifying, yes it definitely makes sense. Again, thanks for your contribution! And happy new year!

@alansouzati alansouzati merged commit bf18df7 into Nerajno:master Jan 4, 2017
@alansouzati
Copy link
Collaborator

alansouzati commented Jan 4, 2017

I've released gulp-jest 1.0.0. I assumed it was a breaking change as now we don't provide jest-cli out of the box.

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