-
Notifications
You must be signed in to change notification settings - Fork 393
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(scripts): use nx for (pre-)release #4445
Conversation
@@ -28,7 +28,8 @@ | |||
"test:performance:best": "nx test:best @lwc/perf-benchmarks", | |||
"test:performance:best:ci": "nx test:best:ci @lwc/perf-benchmarks", | |||
"test:types": "nx test @lwc/integration-types", | |||
"release:version": "./scripts/release/version.js" | |||
"release:version": "nx release version", | |||
"release:publish": "nx release publish --registry https://registry.npmjs.org" |
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.
Nice
"@rollup/plugin-commonjs": "^26.0.1", | ||
"@rollup/plugin-inject": "^5.0.5", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-replace": "^5.0.7", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@swc-node/register": "~1.9.1", | ||
"@swc/core": "~1.5.7", | ||
"@swc/helpers": "~0.5.11", |
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 find it bizarre that Nx wants these things, but 🤷
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.
When I ran nx release version
it told me "hey you gotta run nx add @nx/js
first", so I did. These are for TypeScript support, but it's unclear whether nx needs them or just thinks we might want them.
@@ -39,11 +40,15 @@ | |||
"@eslint/js": "^9.8.0", | |||
"@lwc/eslint-plugin-lwc-internal": "link:./scripts/eslint-plugin", | |||
"@lwc/test-utils-lwc-internals": "link:./scripts/test-utils", | |||
"@nx/js": "19.5.6", |
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.
Tildes vs carets vs bare version numbers are all over the place in this repo, but it doesn't really matter since it's devDep
s and so the lockfile is the truth.
Details
We have a custom script to bump package versions that we don't actually need because
nx
can do it.In our internal release doc, we have a short bash script to publish canary releases that we don't actually need because
nx
can do it.This PR lets
nx
do it.Does this pull request introduce a breaking change?
Does this pull request introduce an observable change?
GUS work item