I wrote a vscode extension that exposes an API for use by other extensions (by having the activate() function return a value).
I would like to publish a scoped npm package that exposes a declaration file (.d.ts), that would assist developers of extensions to consume my extension.
My issue is that I cannot reuse the extension's package.json, because it doesn't allow for @ in the package's name (vsce package fails).
If I create a dedicated package.json for the purpose of publishing the declaration file to npm, I end up copying the .d.ts file and all its dependencies from the extension's out directory. This approach seems a bit cumbersome.
I couldn't find documentation that describes the proper way for doing this: publishing vscode extension declaration files to npm (scoped or not).
What is the correct approach to doing this?