-
Notifications
You must be signed in to change notification settings - Fork 173
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
chore: add engines.node
to package.json
#227
Conversation
"module": "commonjs", | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"target": "es2017" | ||
"target": "ES2020" |
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.
According to https://node.green/#ES2020 Node.js v14.14.0 doesn't fully support ES2020 but we're not using spread parameters after optional chaining
so that's fine, if we ever do use it the CI will catch it assuming v14 doesn't update to a version of v8 that supports it.
In a future PR I'll ensure spread parameters after optional chaining
is transpiled.
@@ -22,7 +22,7 @@ module.exports = { | |||
loader: `ts-loader`, | |||
options: { | |||
compilerOptions: { | |||
module: `es2020`, | |||
module: `ES2020`, |
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.
I wonder if this should read from tsconfig.json here to keep them in sync?
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.
That's a good idea however my next PR will replace webpack with esbuild so they shouldn't have time to go out of sync.
Corepack is available for all currently supported Node.js. see nodejs/corepack#227 Therefore, we stop installing each package manager manually and enable Corepack in all Node.js environments.
* 💚 Using Corepack with all Node.js Corepack is available for all currently supported Node.js. see nodejs/corepack#227 Therefore, we stop installing each package manager manually and enable Corepack in all Node.js environments. * 📝 Update CHANGELOG
What's the problem this PR addresses?
v0.11.0 (specifically #100) dropped support for Node.js v12 and raised the bar to Node.js v14.14.0 due to
corepack/sources/fsUtils.ts
Line 4 in 82a6715
Addresses #100 (review)
How did you fix it?
Added
engines.node
topackage.json
to document the minimum version.