Skip to content

Conversation

@abdulsattar
Copy link
Collaborator

What does this PR do?

Implements Phase 1 of https://github.com/salesforcecli/plugin-lightning-dev/blob/nkruk/single-install-design/DUAL_VERSION_DESIGN.md

What issues does this PR fix or reference?

W-20405334

@abdulsattar abdulsattar requested review from a team as code owners January 13, 2026 20:13
@nrkruk nrkruk self-requested a review January 14, 2026 17:34
@nrkruk
Copy link
Collaborator

nrkruk commented Jan 14, 2026

@abdulsattar I setup a quick call for us to review this PR today - I just want to ensure things are working as expected. Let me know if that time works

Copy link
Collaborator Author

@abdulsattar abdulsattar left a comment

Choose a reason for hiding this comment

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

Nick and Brian review.

"dependencies": {
"@lwc/lwc-dev-server": "~13.2.x",
"@lwc/sfdc-lwc-compiler": "~13.2.x",
"lwc": "~8.23.x"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do we need 'lwc'?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Check the bundle size.


# flags.version-channel.summary

Manually specify which version channel to use (latest, prerelease, or next).
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nick: SFDX already has the api version command. Use that instead of version-channel.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Verify how @lwc/compiler in peerDependencies in lwc-dev-server work.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nick: Create a new package that imports lwc-dev-server and @lwc/compiler to fix the peerDependencies.

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Run the custom version check script
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need a test to prevent dependabot from updating dependencies beyond the approved range of each version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Verify if dependabot acutaly updates aliases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Document api versioning with wlc-dev-server. if (version === "262") { }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The CLI updates to the latest plugin always. Change teh frequency if it's too often and the bundle size too big.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nick: reduce the bundle size instead.

//
// Your org is on API version 63.0, but this version of the CLI plugin supports API version 62.0. To use the plugin with this org, you can reinstall or update the plugin using the "latest" tag. For example: "sf plugins install @salesforce/plugin-lightning-dev@latest".
// Priority 3: Skip check for testing (legacy compatibility)
if (process.env.SKIP_API_VERSION_CHECK === 'true') {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove this.

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.

3 participants