You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Print packaged extension contents on package/publish #995
Let's be inspired by esbuild and print out what is actually being packaged.
This should be printed out both on vsce package and vsce publish. We could even have a nice ⚠ on items that are larger than some limit. Only top level files/folders can be printed.
The goal is to make it easier for extensions authors to figure out what is actually being packaged as part of their extension. So they can avoid accidentally packaging something.
To add to this, by default the packageCommand function inside package.ts defaults to process.cwd and it isn't documented that the user can configure this path or that it's the default behaviour.
The option is a part of the options object for the package commend here.
Yet in main.ts there is no mention of this being configurable nor is it passed down to the packageCommand function inside package.ts. So, with the change you mention, a user utilising the CLI won't know what is being packaged until after they have run the command.
It might also be worth adding that in as part of this so that a user can be doubly sure that what they are packaging is what they intended?
Addition to the idea: we should also print out which inclusion/exclusion rules were used or missing during file collection (ie .vscodeignore, files prop).
Activity
[-]Transparency about what is being packaged[/-][+]Print packaged extension contents on package/publish[/+]kiddio commentedon Jun 11, 2024
To add to this, by default the
packageCommandfunction insidepackage.tsdefaults toprocess.cwdand it isn't documented that the user can configure this path or that it's the default behaviour.The option is a part of the options object for the package commend here.
Yet in
main.tsthere is no mention of this being configurable nor is it passed down to thepackageCommandfunction insidepackage.ts. So, with the change you mention, a user utilising the CLI won't know what is being packaged until after they have run the command.It might also be worth adding that in as part of this so that a user can be doubly sure that what they are packaging is what they intended?
joaomoreno commentedon Jun 18, 2024
Addition to the idea: we should also print out which inclusion/exclusion rules were used or missing during file collection (ie
.vscodeignore,filesprop).benibenj commentedon Jul 19, 2024
benibenj commentedon Jul 19, 2024
verification steps
@vscode/vsceversionvsce package=> It should print the packaged files, it won't print all of them if there are manyvsce ls --tree=> Show all files which would be added to the packageisidorn commentedon Jul 23, 2024
Works great, thanks a lot for this!