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

chore(scripts): use nx for (pre-)release #4445

Merged
merged 3 commits into from
Aug 8, 2024
Merged

chore(scripts): use nx for (pre-)release #4445

merged 3 commits into from
Aug 8, 2024

Conversation

wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Aug 7, 2024

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?

  • 😮‍💨 No, it does not introduce a breaking change.
  • 💔 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.
  • 🔬 Yes, it does include an observable change.

GUS work item

@wjhsf wjhsf requested a review from a team as a code owner August 7, 2024 20:37
@@ -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"
Copy link
Collaborator

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",
Copy link
Collaborator

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 🤷

Copy link
Contributor Author

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",
Copy link
Collaborator

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 devDeps and so the lockfile is the truth.

@wjhsf wjhsf merged commit 9d207fb into master Aug 8, 2024
11 checks passed
@wjhsf wjhsf deleted the wjh/release-scripts branch August 8, 2024 14:18
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