fis-command-release
Advanced tools
Comparing version 0.8.10 to 0.8.11
{ | ||
"name" : "fis-command-release", | ||
"description" : "fis release command.", | ||
"version" : "0.8.10", | ||
"version" : "0.8.11", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
@@ -150,3 +150,3 @@ /* | ||
.option('-r, --root <path>', 'set project root') | ||
.option('-C, --conf <filename>', 'set fis-conf filename, fis-conf.js by default', 'fis-conf.js') | ||
.option('-f, --file <filename>', 'set fis-conf filename, fis-conf.js by default', 'fis-conf.js') | ||
.option('-u, --unique', 'use unique compile caching', Boolean, false) | ||
@@ -164,7 +164,9 @@ .option('--verbose', 'enable verbose output', Boolean, false) | ||
} | ||
var root, conf, filename = options.conf; | ||
var root, conf, filename = options.file; | ||
if(options.root){ | ||
root = fis.util.realpath(options.root); | ||
if(fis.util.isDir(root)){ | ||
if(fis.util.isFile(root + '/' + filename)){ | ||
if(fis.util.isFile(filename)){ | ||
conf = fis.util.realpath(filename); | ||
} else if(fis.util.isFile(root + '/' + filename)){ | ||
conf = root + '/' + filename; | ||
@@ -171,0 +173,0 @@ } |
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
52192
1402