mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
move lib
This commit is contained in:
parent
2f3abc37b7
commit
1c38f3fb89
@ -29,7 +29,7 @@ class SolcW {
|
||||
if (solcVersion === currentSolcVersion) {
|
||||
solcProcess.send({action: 'loadCompiler', solcLocation: 'solc'});
|
||||
} else {
|
||||
self.events.request("version:getPackage:solc", solcVersion, function(err, location) {
|
||||
self.events.request("version:getPackageLocation:solc", solcVersion, function(err, location) {
|
||||
if (err) {
|
||||
return done(err);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
var Npm = require('../pipeline/npm.js');
|
||||
var Npm = require('./npm.js');
|
||||
|
||||
class LibraryManager {
|
||||
|
||||
@ -53,10 +53,14 @@ class LibraryManager {
|
||||
}
|
||||
|
||||
listenToCommandsToGetLibrary() {
|
||||
// TODO: generalize to any lib
|
||||
let libName = "solc";
|
||||
let npm = new Npm({logger: this.embark.logger});
|
||||
this.embark.events.setCommandHandler('version:getPackage:' + libName, (version, cb) => {
|
||||
npm.getPackageVersion('solc', version, false, false, cb);
|
||||
this.embark.events.setCommandHandler('version:getPackageLocation:' + libName, (version, cb) => {
|
||||
npm.getPackageVersion(libName, version, false, false, cb);
|
||||
});
|
||||
this.embark.events.setCommandHandler('version:getPackageContent:' + libName, (version, cb) => {
|
||||
npm.getPackageVersion(libName, version, false, true, cb);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user