Merge pull request #515 from embark-framework/jsonfix

fix support for .json file in embark.json
This commit is contained in:
Iuri Matias 2018-06-12 18:03:43 -04:00 committed by GitHub
commit 735e72703b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, ena
} }
// due to embark.json; TODO: refactor this // due to embark.json; TODO: refactor this
configFilePath = configFilePath.replace('.js', '').replace('.json',''); configFilePath = configFilePath.replace('.json','').replace('.js', '');
if (!fs.existsSync(configFilePath + '.js') && !fs.existsSync(configFilePath + '.json')) { if (!fs.existsSync(configFilePath + '.js') && !fs.existsSync(configFilePath + '.json')) {
// TODO: remove this if // TODO: remove this if
if (this.logger) { if (this.logger) {