include ipfs version in versions cmd

This commit is contained in:
Iuri Matias 2017-12-16 18:15:44 -05:00
parent 65ae827350
commit 81f06bc984
1 changed files with 3 additions and 4 deletions

View File

@ -28,16 +28,15 @@ class Console {
];
return helpText.join('\n');
} else if (cmd === 'versions') {
//let currentSolcVersion = require('../../package.json').dependencies.solc;
let solcVersionInConfig = this.contractsConfig.versions.solc;
//let web3Version = require('../../package.json').dependencies["web3.js"].replace("^","");
let web3VersionInConfig = this.contractsConfig.versions["web3.js"];
let ipfsApiVersion = require('../../package.json').dependencies["ipfs-api"];
let text = [
'versions in use:',
'solc: ' + solcVersionInConfig,
'web3.js: ' + web3VersionInConfig
'web3.js: ' + web3VersionInConfig,
'ipfs-api: ' + ipfsApiVersion
];
return text.join('\n');