From 4131cf42ef418de831f9447ddb691e194899e884 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 12 Jun 2018 17:59:14 -0400 Subject: [PATCH] fix support for .json file in embark.json --- lib/core/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/config.js b/lib/core/config.js index 6d88b1ab5..dc124783e 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -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) {