eclipse / openvsx

An open-source registry for VS Code extensions
https://open-vsx.org/
Eclipse Public License 2.0
1.23k stars 137 forks source link

[ovsx] Packaging is missing node modules #324

Closed kuniss closed 3 years ago

kuniss commented 3 years ago

Due to an build script issue my extension get re-packaged by the ovsx CLT after having already packaged by vsce CLT. The ovsx re-packaging, however, left the node modules out as one can conclude from the following build log:

> Task :vscode-language-extension:vscodeExtension
Executing prepublish script 'npm run vscode:prepublish'...

> epsilon-eag@2.0.1 vscode:prepublish /home/runner/work/epsilon-ide-extensions/epsilon-ide-extensions/vscode-language-extension
> tsc -p ./client

    DONE  Packaged: /home/runner/work/epsilon-ide-extensions/epsilon-ide-extensions/vscode-language-extension/build/vscode/epsilon-eag-vscode-language-extension-2.0.1.vsix (95 files, 16.05MB)

...

> Task :vscode-language-extension:publishToOpenVSXRegistry
npx: installed 78 in 2.025s
Executing prepublish script 'npm run vscode:prepublish'...

> epsilon-eag@2.0.1 vscode:prepublish /home/runner/work/epsilon-ide-extensions/epsilon-ide-extensions/vscode-language-extension
> tsc -p ./client

    DONE  Packaged: /tmp/tmp-2390-6jEfP59x1WtH-.vsix (14 files, 15.93MB)

🚀  Published grammarcraft.epsilon-eag v2.0.1

The differently packaged VSIX file can be downloaded from

For me it is not an issue anymore, however, as I just reuse the vsce created VSIX file in my build now. But it may be an issue for some one, who is publishing to OpenVSX only...

spoenemann commented 3 years ago

Packaging is done with vsce internally. We updated the vsce dependency and released a new version 0.2.1 (#326). Does that fix the issue?

kuniss commented 3 years ago

@spoenemann, it's hard for me to retry this as I have corrected my build logic (the main reason for the original problem) and this issue is not relevant anymore for my project.

To check whether the problem is solve dwith 0.2.1, I would need to re-package the .vsix file with npx ovsx without publishing it. How can I do this with ovsx?

spoenemann commented 3 years ago

That's currently not possible. I'll close this then, and we can reopen if we encounter it again.