@vscode/vsce 2.30.1-1 → 2.30.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/package.js +1 -7
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -1460,13 +1460,7 @@ async function printAndValidatePackagedFiles(files, cwd, manifest, options) {
|
|
|
1460
1460
|
// the package does not include at least one file for each include pattern
|
|
1461
1461
|
else if (manifest.files !== undefined && manifest.files.length > 0 && !options.allowUnusedFilesPattern) {
|
|
1462
1462
|
const originalFilePaths = files.map(f => util.vsixPathToFilePath(f.path));
|
|
1463
|
-
const unusedIncludePatterns =
|
|
1464
|
-
for (const includePattern of manifest.files) {
|
|
1465
|
-
const hasMatchingFile = originalFilePaths.some(file => (0, minimatch_1.default)(file, includePattern, MinimatchOptions));
|
|
1466
|
-
if (!hasMatchingFile) {
|
|
1467
|
-
unusedIncludePatterns.push(includePattern);
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1463
|
+
const unusedIncludePatterns = manifest.files.filter(includePattern => !originalFilePaths.some(filePath => (0, minimatch_1.default)(filePath, includePattern, MinimatchOptions)));
|
|
1470
1464
|
if (unusedIncludePatterns.length > 0) {
|
|
1471
1465
|
let message = '';
|
|
1472
1466
|
message += `The following include patterns in the ${chalk_1.default.bold('"files"')} property in package.json do not match any files packaged in the extension:\n`;
|