fis-command-release
Advanced tools
Comparing version 0.11.8 to 0.11.9
{ | ||
"name": "fis-command-release", | ||
"description": "fis release command.", | ||
"version": "0.11.8", | ||
"version": "0.11.9", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/", |
@@ -23,4 +23,3 @@ /* | ||
if (type == 'add' || type == 'change') { | ||
if (!opt.srcCache[file.subpath]) { | ||
var file = fis.file(path); | ||
if (!opt.srcCache[file.subpath] && file.release) { | ||
opt.srcCache[file.subpath] = file; | ||
@@ -49,8 +48,15 @@ } | ||
.watch(root, { | ||
ignored : function(path){ | ||
var ignored = ignoredReg.test(path); | ||
ignored : function(path) { | ||
var adjustPath = fis.util(path).replace(fis.project.getProjectPath(), ''); | ||
if (adjustPath == '') return false; // if path == project.root | ||
if (adjustPath[0] != '/') adjustPath = '/' + adjustPath; | ||
var ignored = ignoredReg.test(adjustPath); | ||
if (fis.config.get('project.watch.exclude')){ | ||
ignored = ignored || | ||
fis.util.filter(path, fis.config.get('project.watch.exclude')); | ||
fis.util.filter(adjustPath, fis.config.get('project.watch.exclude')) || | ||
fis.util.filter(adjustPath, fis.config.get('project.exclude')); | ||
} | ||
return ignored; | ||
@@ -65,4 +71,5 @@ }, | ||
.on('unlinkDir', listener('unlinkDir')) | ||
.on('error', function(err){ | ||
//fis.log.error(err); | ||
.on('error', function(err) { | ||
err.message += fis.cli.colors.red('\n\tYou can set `fis.config.set("project.watch.usePolling", true)` fix it.'); | ||
fis.log.error(err); | ||
}); | ||
@@ -327,2 +334,2 @@ } | ||
}); | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58906
1549
0