code-server/packages/ide/src/fill/child_process.ts

11 lines
297 B
TypeScript
Raw Normal View History

2019-01-15 04:06:06 +07:00
import { CP } from "@coder/protocol";
import { client } from "./client";
2019-01-31 04:40:01 +07:00
import { promisify } from "./util";
2019-01-31 04:40:01 +07:00
const cp = new CP(client);
// tslint:disable-next-line no-any makes util.promisify return an object
(cp as any).exec[promisify.customPromisifyArgs] = ["stdout", "stderr"];
export = cp;