From 540afedbaf6148e8bb6f3167fcd6431d6ce3c647 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 20 Jul 2018 21:28:46 +0300 Subject: [PATCH] fix library manager init --- lib/modules/compiler/index.js | 1 + lib/modules/library_manager/index.js | 1 + lib/modules/library_manager/npm.js | 2 +- lib/modules/solidity/solcW.js | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/modules/compiler/index.js b/lib/modules/compiler/index.js index 017d20553..b7e41d534 100644 --- a/lib/modules/compiler/index.js +++ b/lib/modules/compiler/index.js @@ -22,6 +22,7 @@ class Compiler { } let pluginCompilers = self.plugins.getPluginsProperty('compilers', 'compilers'); + console.dir(pluginCompilers); pluginCompilers.forEach(function (compilerObject) { available_compilers[compilerObject.extension] = compilerObject.cb; }); diff --git a/lib/modules/library_manager/index.js b/lib/modules/library_manager/index.js index 55305da63..9e37a62dd 100644 --- a/lib/modules/library_manager/index.js +++ b/lib/modules/library_manager/index.js @@ -3,6 +3,7 @@ var Npm = require('./npm.js'); class LibraryManager { constructor(embark) { + this.embark = embark; this.config = embark.config; this.contractsConfig = this.config.contractsConfig; this.storageConfig = this.config.storageConfig; diff --git a/lib/modules/library_manager/npm.js b/lib/modules/library_manager/npm.js index 8d37831f3..a906b8e2a 100644 --- a/lib/modules/library_manager/npm.js +++ b/lib/modules/library_manager/npm.js @@ -1,4 +1,4 @@ -const fs = require('../core/fs.js'); +const fs = require('../../core/fs.js'); const PluginManager = require('live-plugin-manager-git-fix').PluginManager; require('colors'); const NpmTimer = require('./npmTimer'); diff --git a/lib/modules/solidity/solcW.js b/lib/modules/solidity/solcW.js index b738e8711..0866983c7 100644 --- a/lib/modules/solidity/solcW.js +++ b/lib/modules/solidity/solcW.js @@ -38,7 +38,8 @@ class SolcW { this.solcProcess = new ProcessLauncher({ modulePath: utils.joinPath(__dirname, 'solcP.js'), logger: self.logger, - events: self.events + events: self.events, + silent: false }); this.solcProcess.once("result", "initiated", () => {