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

fix: do not enforce engines in package.json #1277

Merged
merged 1 commit into from
May 19, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 17, 2023

The engines field causes warnings on npm but errors on yarn when the required node version is not met.

Not all of our modules require LTS node and they are used by projects outside of libp2p/helia/etc.

This change removes the automatic addition of an engines field to a project's package.json while running the check-project command, instead projects that do require a certain node version are free to define it and deal with the breakage that subsequently occurs.

Partial revert of: #1184
Closes: #1276

The engines field causes warnings on npm but errors on yarn when the
required node version is not met.

Not all of our modules require LTS node and they are used by projects
outside of libp2p/helia/etc.

This change removes the automatic addition of an engines field to a
project's `package.json` while running the `check-project` command,
instead projects that do require a certain node version are free to
define it and deal with the breakage that subsequently occurs.

Partial revert of: #1184
Refs: #1276
@achingbrain achingbrain merged commit 5e9c2fa into master May 19, 2023
@achingbrain achingbrain deleted the fix/do-not-enforce-engines branch May 19, 2023 12:10
github-actions bot pushed a commit that referenced this pull request May 19, 2023
## [39.0.8](v39.0.7...v39.0.8) (2023-05-19)

### Bug Fixes

* do not enforce engines in package.json ([#1277](#1277)) ([5e9c2fa](5e9c2fa)), closes [#1184](#1184)
@github-actions
Copy link

🎉 This PR is included in version 39.0.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not automate addition of engines field to all modules
2 participants