mirror of https://github.com/embarklabs/embark.git
fix support for .json file in embark.json
This commit is contained in:
parent
e6ed016cc0
commit
4131cf42ef
|
@ -111,7 +111,7 @@ Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, ena
|
|||
}
|
||||
|
||||
// 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')) {
|
||||
// TODO: remove this if
|
||||
if (this.logger) {
|
||||
|
|
Loading…
Reference in New Issue