UNPKG

@comake/skl-js-engine

Version:

Standard Knowledge Language Javascript Engine

24 lines 848 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.spawnDenoProcess = void 0; const node_child_process_1 = require("node:child_process"); const constants_1 = require("./constants"); const errors_1 = require("./errors"); /** * Spawns a Deno process with the given arguments * @param commandArgs - Command line arguments for Deno * @returns The spawned child process * @throws ProcessSpawnError if the process fails to spawn */ function spawnDenoProcess(commandArgs) { try { return (0, node_child_process_1.spawn)(constants_1.EXECUTION_CONSTANTS.denoCommand, commandArgs, { stdio: ['pipe', 'pipe', 'pipe'] }); } catch (error) { throw new errors_1.ProcessSpawnError(error); } } exports.spawnDenoProcess = spawnDenoProcess; //# sourceMappingURL=denoUtils.js.map