diff --git a/lib/core/engine.js b/lib/core/engine.js index df17ce908..ad248a7c6 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -9,7 +9,7 @@ var ServicesMonitor = require('./services.js'); var Pipeline = require('../pipeline/pipeline.js'); var Server = require('../pipeline/server.js'); var Watch = require('../pipeline/watch.js'); -var version = require('../../package.json')['version']; +var version = require('../../package.json').version; var Engine = function(options) { this.env = options.env; diff --git a/lib/dashboard/monitor.js b/lib/dashboard/monitor.js index bbce536db..210fa7cec 100644 --- a/lib/dashboard/monitor.js +++ b/lib/dashboard/monitor.js @@ -2,7 +2,7 @@ var blessed = require("blessed"); var CommandHistory = require('./command_history.js'); -var version = require('../../package.json')['version']; +var version = require('../../package.json').version; function Dashboard(options) { var title = (options && options.title) || "Embark " + version; diff --git a/lib/index.js b/lib/index.js index a6662f48f..6b358d23b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -22,7 +22,7 @@ var IPFS = require('./upload/ipfs.js'); var Swarm = require('./upload/swarm.js'); var Cmd = require('./cmd.js'); -var version = require('../package.json')['version']; +var version = require('../package.json').version; var Embark = { diff --git a/test/console.js b/test/console.js index 42ca6f540..a0f9d6e29 100644 --- a/test/console.js +++ b/test/console.js @@ -2,7 +2,7 @@ var Console = require('../lib/dashboard/console.js'); var Plugins = require('../lib/core/plugins.js'); var assert = require('assert'); -var version = require('../package.json')['version']; +var version = require('../package.json').version; describe('embark.Console', function() { var plugins = new Plugins({plugins: {}});