Skip to content

Fail packaging if a "files" pattern does not include any file #1016

@hediet

Description

@hediet

vsce package should fail here:

{
	"files": [
           "this-file-does-not-exists.txt"
        ]
}

It should also fail here:

{
	"files": [
           "this-folder-is-empty/**/*"
        ]
}

This will prevent countless of bugs that are very easy to run into.
There should be a flag --ignore-empty-files-patterns to disable this check.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions