parcel-processor
Advanced tools
Comparing version
@@ -86,7 +86,9 @@ var fs = require('fs'); | ||
props.forEach(function (prop) { | ||
pkg.files[prop] = []; | ||
if (!pkg.files[prop]) pkg.files[prop] = []; | ||
var pattern = pkg.package[prop]; | ||
var rel = path.relative(dir, file); | ||
if (match(rel, pattern)) pkg.files[prop].push(file); | ||
if (pattern) { | ||
var rel = path.relative(dir, file); | ||
if (match(rel, pattern)) pkg.files[prop].push(file); | ||
} | ||
}); | ||
@@ -93,0 +95,0 @@ }); |
@@ -96,4 +96,2 @@ var path = require('path'); | ||
Object.keys(streams).forEach(function (key) { | ||
//streams[key].on('end', done); | ||
var t = fileTypes[key]; | ||
@@ -100,0 +98,0 @@ if (!types[t]) types[t] = {}; |
{ | ||
"name": "parcel-processor", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "write asset files to a package directry given an entry point", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
13918
9.73%30
76.47%270
25.58%113
1.8%4
33.33%