fis-kernel
Advanced tools
Comparing version 2.0.16 to 2.0.17
@@ -36,9 +36,17 @@ /* | ||
} | ||
if (!opt.srcCache || fis.util.isEmpty(opt.srcCache)) { | ||
opt.srcCache = fis.project.getSource(); | ||
var src = {}; | ||
if (Array.isArray(opt.srcCache) && opt.srcCache.length) { | ||
opt.srcCache.forEach(function (path) { | ||
var file = fis.file(path); | ||
if (file.release) { | ||
src[file.subpath] = file; | ||
} | ||
}); | ||
} else { | ||
src = fis.project.getSource(); | ||
} | ||
var ret = { | ||
src : opt.srcCache, | ||
src : src, | ||
ids : {}, | ||
@@ -45,0 +53,0 @@ pkg : {}, |
{ | ||
"name": "fis-kernel", | ||
"description": "fis kernel.", | ||
"version": "2.0.16", | ||
"version": "2.0.17", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/", |
80633
2414