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

Remove "engines" field from package.json #1712

Merged
merged 2 commits into from
Dec 9, 2021
Merged

Remove "engines" field from package.json #1712

merged 2 commits into from
Dec 9, 2021

Conversation

colebemis
Copy link
Contributor

@colebemis colebemis commented Dec 9, 2021

The engines field is breaking builds for projects using node <16. Since node 16 is not required to use @primer/react, let's remove this field from the package.json.

CleanShot 2021-12-09 at 14 53 32@2x

@colebemis colebemis requested review from a team and rezrah December 9, 2021 22:54
@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2021

🦋 Changeset detected

Latest commit: 2da1e52

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2021

size-limit report 📦

Path Size
dist/browser.esm.js 56.98 KB (0%)
dist/browser.umd.js 57.29 KB (0%)

Copy link
Contributor

@jfuchs jfuchs left a comment

Choose a reason for hiding this comment

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

Is engines supposed to be about what's needed to run the distributed package? Or is it about what's needed to build and contribute?

@colebemis
Copy link
Contributor Author

I think it's "what's needed to run the distributed package" because I couldn't install @primer/react without node 16

@colebemis
Copy link
Contributor Author

https://docs.npmjs.com/cli/v6/configuring-npm/package-json#engines

You can also use the "engines" field to specify which versions of npm are capable of properly installing your program.

@colebemis colebemis merged commit 4ce8f07 into main Dec 9, 2021
@colebemis colebemis deleted the colebemis-patch-2 branch December 9, 2021 23:49
@github-actions github-actions bot mentioned this pull request Dec 9, 2021
pksjce pushed a commit that referenced this pull request Dec 20, 2021
* Remove "engines" field from package.json

* Create tidy-maps-care.md
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