-
Notifications
You must be signed in to change notification settings - Fork 401
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: require Node v20.9.0+ [BREAKING CHANGE] #4484
base: master
Are you sure you want to change the base?
Changes from all commits
c09338f
1133377
6f8f7cf
8f6f49d
035f130
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,11 +85,9 @@ | |
"packages/lwc", | ||
"playground" | ||
], | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This config does nothing since the root monorepo |
||
"volta": { | ||
"node": "20.18.1", | ||
"//": "Earliest node version we support (via \"engines\" in package.json)", | ||
"node": "20.9.0", | ||
"yarn": "1.22.22" | ||
}, | ||
"resolutions": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,9 @@ for (const dir of globSync('./packages/@lwc/*')) { | |
bugs: { url: 'https://github.com/salesforce/lwc/issues' }, | ||
license: 'MIT', | ||
publishConfig: { access: 'public' }, | ||
engines: { | ||
node: '>=20.9.0', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How strict is this version? Does the code fail to execute on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will fail to The reason for 20.9.0 is that this limit is set by our Technically devDeps don't matter for our consumers, but IME it's a huge pain to try to define one minimum Node version for your deps and another for your devDeps. |
||
}, | ||
// Use the same volta config in every subdirectory so that we always get the same node/yarn versions | ||
// See: https://docs.volta.sh/advanced/workspaces | ||
volta: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way we could read this from a file, so that we don't have to maintain it in multiple places? (Or just a single GHA env var...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly I could not find a way to do this in GHA.