Fix spdlog and node-pty in binary

This commit is contained in:
Asher
2019-02-25 15:18:44 -06:00
parent 1e55736c69
commit eaea947318
11 changed files with 58 additions and 81 deletions

View File

@@ -15,11 +15,9 @@ class Pty implements nodePty.IPty {
public constructor(file: string, args: string[] | string, options: nodePty.IPtyForkOptions) {
this.ae = client.run((ae, file, args, options) => {
const nodePty = ae.require("node-pty") as typeof import("node-pty");
ae.preserveEnv(options);
const ptyProc = nodePty.spawn(file, args, options);
const ptyProc = ae.modules.pty.spawn(file, args, options);
let process = ptyProc.process;
ae.emit("process", process);