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): separate license generation from build script #4191

Merged
merged 1 commit into from May 2, 2024

Conversation

wjhsf
Copy link
Contributor

@wjhsf wjhsf commented May 1, 2024

Details

"build": "nx run-many --target=build --all --exclude=@lwc/perf-benchmarks,@lwc/perf-benchmarks-components,@lwc/integration-tests,lwc && node scripts/tasks/generate-license-files.js",

The current root build script uses nx to run build in all the packages, and then generates license files. This prevents me from running yarn build -p <project>, which is lame. Also, we don't need to regenerate licenses every time we make code changes, only when we update our dependencies!

This PR removes the license generation from the build script and enforces it via lint-staged and CI.

Does this pull request introduce a breaking change?

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

Does this pull request introduce an observable change?

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

GUS work item

@wjhsf wjhsf requested a review from a team as a code owner May 1, 2024 21:05
Copy link
Contributor

@divmain divmain left a comment

Choose a reason for hiding this comment

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

This is a welcome change. Thanks!

Copy link
Contributor

@nolanlawson nolanlawson left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks.

@wjhsf wjhsf merged commit 80ca916 into master May 2, 2024
10 checks passed
@wjhsf wjhsf deleted the wjh/unblock-build branch May 2, 2024 14:31
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.

None yet

4 participants