dont' need shelljs.which, can directly invoke embark's node_modules/.bin/ganache-cli

This commit is contained in:
Michael Bradley, Jr 2018-07-12 14:54:45 -05:00 committed by Pascal Precht
parent d62a80169e
commit 8e604f95b6
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
const path = require('path');
let shelljs = require('shelljs');
let proxy = require('../core/proxy');
const Ipc = require('../core/ipc');
@ -12,7 +13,7 @@ class Simulator {
run(options) {
let cmds = [];
const ganache = shelljs.which('ganache-cli-embark');
const ganache = path.join(__dirname, '../../node_modules/.bin/ganache-cli');
// const testrpc = shelljs.which('testrpc');
// const ganache = shelljs.which('ganache-cli');
// if (!testrpc && !ganache) {