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

This commit is contained in:
chriswang521 2024-06-06 16:33:50 +08:00 committed by wangpenglong
parent c89d581ecc
commit c5a82b8cf5
1 changed files with 4 additions and 4 deletions

View File

@ -30,10 +30,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);
}); });