Skip to content

Support the files property in package.json #867

Closed

Description

@lorensr

Currently, vsce ls ignores my files allowlist, which means the only way to configure which files are published is with the .vscodeignore denylist. Allowlists are safer and more maintainable than denylists, and files is the standard in the ecosystem. #12 is an older version of this feature request, and includes 15 upvotes for the workaround, which no longer works.

Activity

  1. joaomoreno commented on Jun 12, 2023

    @joaomoreno
    Contributor

    Sounds good. I suggest the following:

    • If no .vscodeignore file exists, the files property can be respected.
    • Otherwise, .vscodeignore is always respected.
  2. added
    help wanted
    feature-request
    on Jun 12, 2023
  3. JacksonTian commented on Nov 10, 2023

    @JacksonTian

    The .vscodeignore is blocklist, the files is allowlist.

  4. changed the title [-]Respect the `files` property in `package.json`[/-] [+]Support the `files` property in `package.json`[/+] on Mar 27, 2024
  5. vanyauhalin commented on Apr 10, 2024

    @vanyauhalin

    Benjamin Christopher Simmonds (@benibenj), thank you! Could you please let us know when we might be able to start using this?

  6. benibenj commented on Apr 12, 2024

    @benibenj
    Contributor

    Ivan Uhalin (@vanyauhalin) We just released a new version which includes the change

  7. added
    verification-needed
    and removed
    help wanted
    on Apr 22, 2024
  8. benibenj commented on Apr 22, 2024

    @benibenj
    Contributor

    Ivan Uhalin (@vanyauhalin) Have you adopted the files property already? If so, can you confirm it works as intended?

  9. vanyauhalin commented on May 1, 2024

    @vanyauhalin

    Benjamin Christopher Simmonds (@benibenj) Apologize for the delayed response. Works perfectly. Thank you.

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