@halospv3/hce.shared-config
Version:
Automate commit message quality, changelogs, and CI/CD releases. Exports a semantic-release shareable configuration deserialized from this package's '.releaserc.yml'. Shared resources for .NET projects are also distributed with this package.
37 lines • 2.09 kB
TypeScript
import { type Type } from 'arktype';
/**
* A `promisify(exec)` wrapper to optionally assign the child process's STDERR as the {@link Error.prototype.cause}.
* @see {@link promisify}, {@link exec}
* @param command The command to run, with space-separated arguments.
* @param [setStderrAsCause=false] If true and the child process's stderr is available, the thrown Error's {@link Error.prototype.cause} is assigned the stderr string.
* @returns A promise of the child process's STDOUT and STDERR streams as strings
* @throws {Error | ChildProcessSpawnException}
*/
export declare function execAsync(command: string, setStderrAsCause?: boolean): Promise<{
stdout: string;
stderr: string;
}>;
declare const T_ExecException: Type<{
name: string;
message: string;
stack?: string | undefined;
cause?: unknown;
cmd?: string | null | undefined;
killed?: boolean | null | undefined;
code?: number | null | undefined;
signal?: 'SIGABRT' | 'SIGALRM' | 'SIGBUS' | 'SIGCHLD' | 'SIGCONT' | 'SIGFPE' | 'SIGHUP' | 'SIGILL' | 'SIGINT' | 'SIGIO' | 'SIGIOT' | 'SIGKILL' | 'SIGPIPE' | 'SIGPOLL' | 'SIGPROF' | 'SIGPWR' | 'SIGQUIT' | 'SIGSEGV' | 'SIGSTKFLT' | 'SIGSTOP' | 'SIGSYS' | 'SIGTERM' | 'SIGTRAP' | 'SIGTSTP' | 'SIGTTIN' | 'SIGTTOU' | 'SIGUNUSED' | 'SIGURG' | 'SIGUSR1' | 'SIGUSR2' | 'SIGVTALRM' | 'SIGWINCH' | 'SIGXCPU' | 'SIGXFSZ' | 'SIGBREAK' | 'SIGLOST' | 'SIGINFO' | null | undefined;
stdout?: string | undefined;
stderr?: string | undefined;
}>;
type _ExecException = typeof T_ExecException.inferOut;
export declare class ChildProcessSpawnException extends Error implements _ExecException {
constructor(message: Parameters<typeof Error>[0], options: typeof T_ExecException.inferIn);
cmd: typeof T_ExecException.inferOut.cmd;
code: typeof T_ExecException.inferOut.code;
killed: typeof T_ExecException.inferOut.killed;
signal: typeof T_ExecException.inferOut.signal;
stderr: typeof T_ExecException.inferOut.stderr;
stdout: typeof T_ExecException.inferOut.stdout;
}
export {};
//# sourceMappingURL=execAsync.d.ts.map