diff options
author | bobzel <zzzman@gmail.com> | 2023-12-04 17:38:36 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-04 17:38:36 -0500 |
commit | 2bd239e39264a362d1fbb013ce2613d03247d78e (patch) | |
tree | 6e537dc0c35529c6ee27758a4dec03e23210dbc6 /src/server/ProcessFactory.ts | |
parent | cf7a7dc34426dacf018ac98a83a9589106ae7256 (diff) |
trying to do version updates on all npm packages.
Diffstat (limited to 'src/server/ProcessFactory.ts')
-rw-r--r-- | src/server/ProcessFactory.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/ProcessFactory.ts b/src/server/ProcessFactory.ts index 63682368f..f69eda4c3 100644 --- a/src/server/ProcessFactory.ts +++ b/src/server/ProcessFactory.ts @@ -2,7 +2,7 @@ import { ChildProcess, spawn, StdioOptions } from "child_process"; import { existsSync, mkdirSync } from "fs"; import { Stream } from "stream"; import { fileDescriptorFromStream, pathFromRoot } from './ActionUtilities'; -import rimraf = require("rimraf"); +import { rimraf } from "rimraf"; export namespace ProcessFactory { @@ -13,7 +13,7 @@ export namespace ProcessFactory { const log_fd = await Logger.create(command, args); stdio = ["ignore", log_fd, log_fd]; } - const child = spawn(command, args, { detached, stdio }); + const child = spawn(command, args ?? [], { detached, stdio }); child.unref(); return child; } @@ -27,7 +27,7 @@ export namespace Logger { export async function initialize() { if (existsSync(logPath)) { if (!process.env.SPAWNED) { - await new Promise<any>(resolve => rimraf(logPath, resolve)); + await new Promise<any>(resolve => rimraf(logPath).then(resolve)); } } mkdirSync(logPath); |