fix: resolve vsce package failure with Yarn 4 Berry#363
Merged
Conversation
vsce package/publish runs 'yarn list --prod --json' to detect dependencies, but this command does not exist in Yarn 4 (Berry). - Add --no-dependencies flag to vsce package and publish scripts since all dependencies are bundled via webpack - Update @vscode/vsce from ^2.20.1 to ^3.7.1
83a8fc5 to
8f1f70d
Compare
There was a problem hiding this comment.
Pull request overview
Fixes the VS Code extension packaging/publishing flow under Yarn 4 Berry by updating vsce usage and its version, avoiding Yarn Classic-only dependency-walking behavior during packaging.
Changes:
- Add
--no-dependenciestovsce package/vsce publishscripts. - Upgrade
@vscode/vsceto^3.7.1(with correspondingyarn.lockupdates). - Update the release workflow’s version-bump command syntax for Yarn 4.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
package.json |
Updates vsce scripts to skip dependency scanning; bumps @vscode/vsce version. |
yarn.lock |
Lockfile updates resulting from the @vscode/vsce upgrade and dependency graph changes. |
.github/workflows/release.yml |
Adjusts the version bump step to a Yarn 4-compatible invocation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
JamieSinn
approved these changes
Mar 16, 2026
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.
Summary
--no-dependenciesflag tovsce packageandvsce publishscripts to skipyarn list --prod --jsonwhich doesn't exist in Yarn 4 Berry@vscode/vscefrom^2.20.1to^3.7.1Context
The release workflow fails at the "Package VSCode Extension" step because
vscedetectsyarn.lockand runsyarn list --prod --jsonto walk the dependency tree. This command doesn't exist in Yarn 4 — it was a Yarn 1 Classic command.Since the extension bundles everything via webpack,
vscedoesn't need to walk the dependency tree at all.--no-dependenciesis the recommended approach for webpack-bundled extensions.Fixes the failure in https://github.com/DevCycleHQ/vscode-extension/actions/runs/23069857168