Skip to content

Commit

Permalink
GPII-3550: We only need to require "gpii-windows/index.js"
Browse files Browse the repository at this point in the history
By loading "gpii-windows" we also load gpii-windows/gpii.js, which
triggers some initialization and we don't need it.
  • Loading branch information
javihernandez committed Nov 28, 2018
1 parent 9ee3fc1 commit d6ed641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/compileMessageBundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var fs = require("fs");
var path = require("path");
var shell = require("shelljs");

fluid.setLogging(true);
require("./shared/messageBundlesCompiler.js");

/**
Expand All @@ -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));
Expand Down

0 comments on commit d6ed641

Please sign in to comment.