Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json publisher issue #40

Closed
SimoneRichetti opened this issue Mar 12, 2021 · 2 comments
Closed

package.json publisher issue #40

SimoneRichetti opened this issue Mar 12, 2021 · 2 comments

Comments

@SimoneRichetti
Copy link

SimoneRichetti commented Mar 12, 2021

Hi,

I set up a Verdaccio private npm registry. I want to publish an extension to that private registry and then use the Private Extension Manager to install the extension from it.
But, the vsce package command gives me an error, because the publisher field in my package.json does not contain a valid VSCode Marketplace Publisher token. And I can't simply remove the field from the JSON, because it is required.
Because I intend to publish only on the private registry, how can I solve the issue and create my extension.vsix file without registering a user on the Public VSCode Marketplace?

Thanks,
Simone

@joelspadin-garmin
Copy link
Owner

I assume you meant vsce package? As far as I can tell, you need to use a publisher name that would be valid if you were to publish to the public marketplace, but there is no requirement that said publisher exists. The name can only have letters, numbers, and hyphens: https://github.com/microsoft/vscode-vsce/blob/9f33d50e5b364cf49803e8324003547397505fed/src/validation.ts#L6

If that doesn't help, let me know and I can dig deeper into what vsce is doing.

@SimoneRichetti
Copy link
Author

Ok, that was the error: I was using a publisher name with a dot in it. Now it works! Thanks!

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

No branches or pull requests

2 participants