fix support for .json file in embark.json

This commit is contained in:
Iuri Matias 2018-06-12 17:59:14 -04:00
parent e6ed016cc0
commit 4131cf42ef
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) {