Enhance LWC build process and add test cases for USING SCOPE#282
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the project’s distribution/build pipeline for Lightning Web Components (LWC) by introducing a consolidated build script that produces additional LWC deployment artifacts, and it expands SOQL parser test coverage for additional USING SCOPE variants.
Changes:
- Added new SOQL parser test cases covering more
USING SCOPEvalues (including custom/identifier-like scopes). - Introduced a Node-based build orchestrator (
tasks/build.mjs) that buildsesm,cjs,cli, andlwc, and generates an LWC metadata package + zip artifact. - Updated packaging/release configuration and documentation to reflect the new build outputs and deployment workflows, including a configurable
salesforceApiVersion.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test-cases.ts | Adds parse-output test cases for additional USING SCOPE values. |
| test/test-cases-for-is-valid.ts | Adds isQueryValid cases for additional USING SCOPE scenarios. |
| tasks/build.mjs | New build orchestrator; adds LWC packaging (metadata + zip) and version bannering. |
| README.md | Updates LWC usage/deployment docs to reflect new artifacts and deployment options. |
| package.json | Adds salesforceApiVersion, rewires build scripts to use tasks/build.mjs, and narrows published files. |
| CHANGELOG.md | Documents the new LWC distribution artifacts and release pipeline changes. |
| .release-it.json | Attaches new build artifacts (tgz, LWC zip, standalone LWC JS) to GitHub Releases and updates hooks. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve the LWC build process by introducing new artifacts and enhancing metadata packaging. Add additional test cases to ensure compatibility with various USING SCOPE scenarios.