fix: bundled extensions (fix package managers)#1257
Open
Mopsgamer wants to merge 12 commits intomicrosoft:mainfrom
Open
fix: bundled extensions (fix package managers)#1257Mopsgamer wants to merge 12 commits intomicrosoft:mainfrom
Mopsgamer wants to merge 12 commits intomicrosoft:mainfrom
Conversation
Closed
This was referenced Apr 5, 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
Enables support for pnpm, modern yarn (Berry, ZPM), vlt, bun, and other alternative package managers by properly handling the
--no-dependenciesflag. This PR fixes a race condition (?) (Promise.all(promises).then(util.flatten)) and ensures the flag is enabled automatically when these managers are detected.The core logic assumes that extensions using alternative managers are bundling their output; therefore, the
node_modulesdirectory does not need to be analyzed vianpm list, eliminating "missing dependency" errors.Features
VSCE_RUN_PREPUBLISHenvironment variable andvsce.runPrepublishconfiguration option. This allows for custom commands likebun run vscode:prerelease, which is much faster and actually supports cross-platform scripts properly. You can provide emptyVSCE_RUN_PREPUBLISHorfalsevalue forvsce.runPrepublishto disable it entirely (probably should remove it).bun pm versioninstead ofnpm version. So Node-less Bun environments should work.node_modules/**--no-dependeciesoption will be enabled now if not provided. This makes things faster.#1108.#421.#517.... Other package manager issues.
I can trip this PR down to remove autodetection and keep