There was an error while loading. Please reload this page.
1 parent 0354134 commit 8e9f860Copy full SHA for 8e9f860
1 file changed
src/lib/cmd.ts
@@ -21,7 +21,7 @@ export const cmd = async (cmd: string, config?: Partial<CmdConfig>) => {
21
stdio: enableOutput ? "inherit" : "pipe",
22
timeout,
23
cwd,
24
- env: config.env,
+ env: config?.env || {},
25
});
26
const out_data: Buffer[] = [];
27
child.stderr?.on("data", (data) => {
0 commit comments