Skip to content

vsce should not require the license file to be present in the files property of the package.json #1225

Description

The problem

$ vsce package --no-dependencies
 WARNING  LICENSE, LICENSE.md, or LICENSE.txt not found
Do you want to continue? [y/N]

The quote from the npm documentation

Certain files are always included, regardless of settings:

package.json
README
LICENSE / LICENCE
The file in the "main" field
The file(s) in the "bin" field

https://docs.npmjs.com/cli/v10/configuring-npm/package-json?v=true#files

Note

I am using eslint-plugin-package-json which shows the following error when I include the LICENSE in the fields property:

Explicitly declaring "LICENSE" in "files" is unnecessary; it's included by default.eslint (package-json/no-redundant-files)

Activity

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

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunities

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions