shashkovdanil / clean-publish

Removing configuration files and fields in package.json before publishing to npm

Home Page:https://www.npmjs.com/package/clean-publish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clean-publish for publishing vscode extensions?

Nos78 opened this issue · comments

commented

Technically this isn't an issue with your code (sorry in advance!), but having found this package very useful for managing our npm modules, I'm wondering if the clean-publish package can be used with the vsce publish and vsce package tool for packaging/publishing visual studio code extensions?

vscode extensions are very like npm modules, running on node with a package.json, etc. AFAICT, the only difference is instead of the npm command line tool, its vsce

If it's not currently something that your module can do, are there any any plans to make it so?

commented

Looking at the code, I see packageManager and a default of npm, and there is a command-line option of --package-manager - but wondering how that applies when the tool is ran via the script property "publish" in the package.json...

If I added

    "publish": "clean-publish --package-manager vsce"

to the scripts section of my vsce extension, will this just work... I guess there is one way to find out... :)