fix: bundled extensions (fix package managers)#1257
Open
Mopsgamer wants to merge 13 commits intomicrosoft:mainfrom
Open
fix: bundled extensions (fix package managers)#1257Mopsgamer wants to merge 13 commits intomicrosoft:mainfrom
Mopsgamer wants to merge 13 commits intomicrosoft:mainfrom
Conversation
Closed
This was referenced Apr 5, 2026
Author
BeforeDetailsuser@DESKTOP-NKNOS3C ~/D/G/dracula-highlighting (main)> time node node_modules/vsce/vsce package
DONE Packaged: C:\Users\user\Documents\GitHub\dracula-highlighting\dracula-highlighting-0.1.0.vsix (16 files, 79.47KB)
________________________________________________________
Executed in 3.06 secs fish external
usr time 46.00 millis 0.00 micros 46.00 millis
sys time 15.00 millis 0.00 micros 15.00 millis
user@DESKTOP-NKNOS3C ~/D/G/dracula-highlighting (main)> node node_modules/vsce/vsce pack
Usage: vsce <command>
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
ls [options] Lists all the files that will be published
package [options] [version] Packages an extension
publish [options] [version] Publishes an extension
unpublish [options] [extensionid] Unpublishes an extension. Example extension id: microsoft.csharp.
ls-publishers List all known publishers
delete-publisher <publisher> Deletes a publisher
login <publisher> Add a publisher to the known publishers list
logout <publisher> Remove a publisher from the known publishers list
verify-pat [options] [publisher] Verify if the Personal Access Token has publish rights for the publisher.
show [options] <extensionid> Show extension metadata
search [options] <text> search extension gallery
help [command] display help for command
Unknown command 'pack'.AfterDetailsser@DESKTOP-NKNOS3C ~/D/G/dracula-highlighting (main) [1]> time node ../vscode-vsce/vsce package
INFO Detected presence of bun.lock. Using 'bun' logic.
INFO Files included in the VSIX:
dracula-highlighting-0.1.0.vsix
├─ [Content_Types].xml
├─ extension.vsixmanifest
└─ extension/
├─ LICENSE.txt [1.1 KB]
├─ package.json [1.79 KB]
├─ readme.md [1.74 KB]
├─ assets/
│ └─ icon.png [10.08 KB]
└─ themes/
├─ abyss-dracula.json [58.82 KB]
├─ dark-2026-dracula.json [58.67 KB]
├─ dark-dracula.json [17.61 KB]
├─ dark-high-contrast-dracula.json [58.24 KB]
├─ dark-modern-dracula.json [22.05 KB]
├─ kimbie-dark-dracula.json [58.94 KB]
├─ monokai-dimmed-dracula.json [18.86 KB]
├─ monokai-dracula.json [20.13 KB]
├─ solarized-dark-dracula.json [20.12 KB]
└─ tomorrow-night-blue-dracula.json [58.95 KB]
DONE Packaged: C:\Users\user\Documents\GitHub\dracula-highlighting\dracula-highlighting-0.1.0.vsix (16 files, 79.49 KB)
________________________________________________________
Executed in 1.90 secs fish external
usr time 0.00 millis 0.00 micros 0.00 millis
sys time 31.00 millis 0.00 micros 31.00 millis
user@DESKTOP-NKNOS3C ~/D/G/dracula-highlighting (main)> node ../vscode-vsce/vsce pack
INFO Detected presence of bun.lock. Using 'bun' logic.
INFO Files included in the VSIX:
dracula-highlighting-0.1.0.vsix
├─ [Content_Types].xml
├─ extension.vsixmanifest
└─ extension/
├─ LICENSE.txt [1.1 KB]
├─ package.json [1.79 KB]
├─ readme.md [1.74 KB]
├─ assets/
│ └─ icon.png [10.08 KB]
└─ themes/
├─ abyss-dracula.json [58.82 KB]
├─ dark-2026-dracula.json [58.67 KB]
├─ dark-dracula.json [17.61 KB]
├─ dark-high-contrast-dracula.json [58.24 KB]
├─ dark-modern-dracula.json [22.05 KB]
├─ kimbie-dark-dracula.json [58.94 KB]
├─ monokai-dimmed-dracula.json [18.86 KB]
├─ monokai-dracula.json [20.13 KB]
├─ solarized-dark-dracula.json [20.12 KB]
└─ tomorrow-night-blue-dracula.json [58.95 KB]
DONE Packaged: C:\Users\user\Documents\GitHub\dracula-highlighting\dracula-highlighting-0.1.0.vsix (16 files, 79.49 KB) |
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 trim this PR down.