Skip to content

Print packaged extension contents on package/publish #995

Closed

Description

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.

Image

fyi João Moreno (@joaomoreno)

Activity

  1. changed the title [-]Transparency about what is being packaged[/-] [+]Print packaged extension contents on package/publish[/+] on Jun 11, 2024
  2. added
    feature-request
    on Jun 11, 2024
  3. kiddio commented on Jun 11, 2024

    @kiddio

    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?

  4. joaomoreno commented on Jun 18, 2024

    @joaomoreno
    Contributor

    Addition to the idea: we should also print out which inclusion/exclusion rules were used or missing during file collection (ie .vscodeignore, files prop).

  5. added
    verification-needed
    and removed
    verification-needed
    on Jul 19, 2024
  6. benibenj commented on Jul 19, 2024

    @benibenj
    Contributor

    Image

  7. benibenj commented on Jul 19, 2024

    @benibenj
    Contributor

    verification steps

    • Install newest @vscode/vsce version
    • Run vsce package => It should print the packaged files, it won't print all of them if there are many
    • Run vsce ls --tree => Show all files which would be added to the package
  8. isidorn commented on Jul 23, 2024

    @isidorn
    Author

    Works great, thanks a lot for this!

    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions