From 6e424f36b0275815a5b148b39082066f0e00812e Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 2 Jun 2018 10:06:58 -0400 Subject: [PATCH] use const instead of let --- lib/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/index.js b/lib/index.js index 093a017a..bc5410df 100644 --- a/lib/index.js +++ b/lib/index.js @@ -67,8 +67,8 @@ class Embark { self.context = options.context || [constants.contexts.run, constants.contexts.build]; let Dashboard = require('./dashboard/dashboard.js'); - let Engine = require('./core/engine.js'); - let engine = new Engine({ + const Engine = require('./core/engine.js'); + const engine = new Engine({ env: options.env, client: options.client, locale: options.locale, @@ -158,8 +158,8 @@ class Embark { build(options) { this.context = options.context || [constants.contexts.build]; - let Engine = require('./core/engine.js'); - let engine = new Engine({ + const Engine = require('./core/engine.js'); + const engine = new Engine({ env: options.env, client: options.client, locale: options.locale, @@ -214,8 +214,8 @@ class Embark { this.context = options.context || [constants.contexts.graph]; options.onlyCompile = true; - let Engine = require('./core/engine.js'); - let engine = new Engine({ + const Engine = require('./core/engine.js'); + const engine = new Engine({ env: options.env, isDev: this.isDev(options.env), version: this.version, @@ -270,8 +270,8 @@ class Embark { upload(options) { this.context = options.context || [constants.contexts.upload, constants.contexts.build]; - let Engine = require('./core/engine.js'); - let engine = new Engine({ + const Engine = require('./core/engine.js'); + const engine = new Engine({ env: options.env, client: options.client, locale: options.locale,