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();