mirror of https://github.com/embarklabs/embark.git
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
|
// 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) {
|
||||||
|
|
Loading…
Reference in New Issue