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/node from package.json #89

Closed

Conversation

SergeAstapov
Copy link
Contributor

v2 addons are pure npm/JS packages with no Node.js runtime.

Hence, v2 addons do not depend on any specific version of Node.js

Without having this dormant yet explicitly listed on package.json, we can update Node.js version in CI and elsewhere without need to publish major version.

@@ -59,9 +59,6 @@
"peerDependencies": {
"ember-source": "^3.28.0 || ^4.0.0"
},
"engines": {
Copy link
Owner

Choose a reason for hiding this comment

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

Why are we removing these lines? Is there any documentation that you can link here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@villander this was discussed in embroider-build/addon-blueprint#15 and latest v2 addon blueprint does not provide engines.node

Copy link
Owner

@villander villander Jan 26, 2024

Choose a reason for hiding this comment

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

Yes, but we still need to support V1 addons @SergeAstapov, does that make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@villander I don't get your concern.

This is addon is v2 addon, meaning it does not have any Node.js runtime.
v1 addons do require runtime hence any v1 should properly declare Node.js versions it supports.

@villander
Copy link
Owner

Closing for inactivity. We can reopen it later if you want @SergeAstapov

@villander villander closed this Feb 19, 2024
@SergeAstapov
Copy link
Contributor Author

@villander I think I miss what kind of activity you expect on this PR as it's simple, straightforward and syncs addon setup with what already has been done in https://github.com/embroider-build/addon-blueprint.

note there are no engines field in https://github.com/embroider-build/addon-blueprint/blob/main/files/__addonLocation__/package.json

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