From 3c760c35156b1b32d57070e4a9ac8665d68987ae Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 20 Nov 2019 11:57:56 -0500 Subject: [PATCH] fix(@embark/library-manager): add web3 to versions list This is needed by the cockpit for the communication component --- packages/stack/library-manager/package.json | 3 ++- packages/stack/library-manager/src/index.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/stack/library-manager/package.json b/packages/stack/library-manager/package.json index 319e342c1..40a422ae2 100644 --- a/packages/stack/library-manager/package.json +++ b/packages/stack/library-manager/package.json @@ -53,7 +53,8 @@ "embark-solo": "^5.0.0-alpha.0", "eslint": "5.7.0", "npm-run-all": "4.1.5", - "rimraf": "3.0.0" + "rimraf": "3.0.0", + "web3": "1.2.1" }, "engines": { "node": ">=10.17.0 <12.0.0", diff --git a/packages/stack/library-manager/src/index.js b/packages/stack/library-manager/src/index.js index adbedd826..c657b6003 100644 --- a/packages/stack/library-manager/src/index.js +++ b/packages/stack/library-manager/src/index.js @@ -1,5 +1,6 @@ import { __ } from 'embark-i18n'; import { dappPath, embarkPath, normalizePath, toForwardSlashes } from 'embark-utils'; +import web3 from 'web3'; const Npm = require('./npm.js'); const {callbackify} = require('util'); @@ -45,6 +46,8 @@ class LibraryManager { this.versions['solc'] = solcVersionInConfig; + this.versions.web3 = web3.version; + Object.keys(this.versions).forEach(versionKey => { if (!this.isVersionable(versionKey)) return; const newVersion = this.versions[versionKey].trim();