mirror of https://github.com/embarklabs/embark.git
fix for when config is specified in embark.json
This commit is contained in:
parent
cc3b748232
commit
e8210607b7
|
@ -75,6 +75,8 @@ Config.prototype._mergeConfig = function(configFilePath, defaultConfig, env, ena
|
||||||
return configToReturn;
|
return configToReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// due to embark.json; TODO: refactor this
|
||||||
|
configFilePath = configFilePath.replace('.js', '').replace('.json','');
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in New Issue