mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 01:37:26 +00:00
Merge pull request #515 from embark-framework/jsonfix
fix support for .json file in embark.json
This commit is contained in:
commit
735e72703b
@ -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…
x
Reference in New Issue
Block a user