This commit is contained in:
Anthony Dresser
2019-11-20 17:08:30 -08:00
committed by GitHub
parent e6ffb97a7b
commit 15913e5e48

View File

@@ -21,7 +21,7 @@ function main() {
return; return;
} }
const productJsonFilter = filter('product.json', { restore: true }); const productJsonFilter = filter('**/product.json', { restore: true });
fancyLog(ansiColors.blue('[mixin]'), `Mixing in sources:`); fancyLog(ansiColors.blue('[mixin]'), `Mixing in sources:`);
return vfs return vfs
@@ -29,7 +29,7 @@ function main() {
.pipe(filter(f => !f.isDirectory())) .pipe(filter(f => !f.isDirectory()))
.pipe(productJsonFilter) .pipe(productJsonFilter)
.pipe(buffer()) .pipe(buffer())
.pipe(json(o => Object.assign({}, require('../product.json'), o))) .pipe(json(o => Object.assign({}, require('../../product.json'), o)))
.pipe(productJsonFilter.restore) .pipe(productJsonFilter.restore)
.pipe(es.mapSync(function (f) { .pipe(es.mapSync(function (f) {
fancyLog(ansiColors.blue('[mixin]'), f.relative, ansiColors.green('✔︎')); fancyLog(ansiColors.blue('[mixin]'), f.relative, ansiColors.green('✔︎'));