|
|
@ -46,7 +46,7 @@ class ScriptRunnerClient extends ElectronBasePluginClient { |
|
|
|
async execute(content: string, dir: string): Promise<void> { |
|
|
|
async execute(content: string, dir: string): Promise<void> { |
|
|
|
|
|
|
|
|
|
|
|
this.call('terminal' as any, 'log', this.workingDir) |
|
|
|
this.call('terminal' as any, 'log', this.workingDir) |
|
|
|
const child = utilityProcess.fork(path.join(__dirname,'/../tools/yarn/bin/', 'yarn.js'), [`--cwd=${this.workingDir}`, 'add', 'web3'], { |
|
|
|
const child = utilityProcess.fork(path.join(__dirname,'/../tools/yarn/bin/', 'yarn.js'), [`--cwd=${this.workingDir}`, 'add', 'ethers'], { |
|
|
|
stdio: 'pipe', |
|
|
|
stdio: 'pipe', |
|
|
|
}) |
|
|
|
}) |
|
|
|
child && child.stdout && child.stdout.on('data', (data) => { |
|
|
|
child && child.stdout && child.stdout.on('data', (data) => { |
|
|
|