Merge branch 'main' into feature/pypi

This commit is contained in:
Reinier Criel 2025-11-04 06:54:00 -08:00
commit d789491561
26 changed files with 186 additions and 118 deletions

View file

@ -67,8 +67,6 @@ function resolveCommandPath(command) {
// Use 'command -v' to find the full path
const fullPath = execSync(`command -v ${command}`, {
encoding: "utf8",
// @ts-expect-error shell is a string option
shell: true,
}).trim();
if (!fullPath) {
@ -120,8 +118,12 @@ export async function safeSpawn(command, args, options = {}) {
});
child.on("close", (code) => {
// Code is null if it terminated by a signal. This should never
// happen in our code. If this happens, return 1 error code.
code = code ?? 1;
resolve({
// @ts-expect-error code can be null
status: code,
stdout: stdout,
stderr: stderr,