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

build: allow for broader versions of tslib peer dependency #41

Conversation

lukelafountaine
Copy link
Contributor

@lukelafountaine lukelafountaine commented Jul 12, 2022

This package currently is not compatible with another package that my project depends on. The change in this MR should allow the toolbox to work with a broader number of other packages that list tslib as a peer dependency.

@lukelafountaine
Copy link
Contributor Author

ping @onebytegone

package.json Outdated
@@ -33,7 +33,7 @@
"type guards"
],
"peerDependencies": {
"tslib": "1.9.x"
"tslib": ">= 1.9.0 < 2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work? According to https://semver.npmjs.com/ it seems to be compatible.

Suggested change
"tslib": ">= 1.9.0 < 2"
"tslib": "^1.9.0"

It's generally good practice to make peer dependencies as lenient as possible so that they
are compatible with other packages that share that same peer dependency, as mentioned
here: https://nodejs.org/en/blog/npm/peer-dependencies/
@onebytegone onebytegone merged commit 19e5ba4 into silvermine:master Jul 15, 2022
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

2 participants