import { spawn } from "./npm-utils" ; returns export async function spawnOrFail ( cmd , workingDir ? , customErrorMsg ? ) { const result = await spawn ( cmd , workingDir ) ; if ( ! result ) { throw new Error ( customErrorMsg ?? `Failed to run "${ cmd }"` ) ; } }