mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fix fallback code for loading conf.json
This commit is contained in:
parent
ac857da48d
commit
692f9c9290
5
jsdoc.js
5
jsdoc.js
@ -170,10 +170,7 @@ function main() {
|
||||
env.opts = jsdoc.opts.args.parse(env.args);
|
||||
|
||||
confPath = env.opts.configure || path.join(__dirname, 'conf.json');
|
||||
try {
|
||||
fs.statSync(confPath);
|
||||
}
|
||||
catch (e) {
|
||||
if ( !fs.statSync(confPath).isFile() ) {
|
||||
confPath = path.join(__dirname, 'conf.json.EXAMPLE');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user