git提交时移除校验product.json中的extensionsGallery字段

This commit is contained in:
chriswang521 2023-05-12 16:04:43 +08:00
parent 9114699956
commit 2aac1ddf3a
1 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,10 @@ function hygiene(some, linting = true) {
const productJson = es.through(function (file) { const productJson = es.through(function (file) {
const product = JSON.parse(file.contents.toString('utf8')); const product = JSON.parse(file.contents.toString('utf8'));
if (product.extensionsGallery) { // if (product.extensionsGallery) {
console.error(`product.json: Contains 'extensionsGallery'`); // console.error(`product.json: Contains 'extensionsGallery'`);
errorCount++; // errorCount++;
} // }
this.emit('data', file); this.emit('data', file);
}); });