From d6ed641f5fb470f65975ee9efa4d74c5b457c753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Hern=C3=A1ndez?= Date: Wed, 28 Nov 2018 17:43:23 +0100 Subject: [PATCH] GPII-3550: We only need to require "gpii-windows/index.js" By loading "gpii-windows" we also load gpii-windows/gpii.js, which triggers some initialization and we don't need it. --- scripts/compileMessageBundles.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/compileMessageBundles.js b/scripts/compileMessageBundles.js index 4b8bdcd71..9f248a211 100644 --- a/scripts/compileMessageBundles.js +++ b/scripts/compileMessageBundles.js @@ -22,6 +22,7 @@ var fs = require("fs"); var path = require("path"); var shell = require("shelljs"); +fluid.setLogging(true); require("./shared/messageBundlesCompiler.js"); /** @@ -31,7 +32,7 @@ require("./shared/messageBundlesCompiler.js"); * @param {String} resultFilePath - The file where the bundles are going to be written. */ gpii.app.compileMessageBundles = function (messageDirs, resultFilePath) { - require("gpii-windows"); + require("gpii-windows/index.js"); // This is a noop when the folder already exists shell.mkdir("-p", path.dirname(resultFilePath));