Cotal TypeScript packages
    Preparing search index...

    Function cmdSpawnSpec

    • Resolve how to spawnSync command (a bare name like npm) with args on the current platform. POSIX: passthrough. Windows: resolve the exact file on PATH; a .cmd/.bat runs THROUGH the system cmd.exe with a byte-for-byte command line (so spawnSync("npm.cmd", …) no longer trips the .cmd-without-shell refusal, and args survive cmd's metachar parse). Fails loud if not on PATH or cmd.exe is missing — no silent fallback.

      Parameters

      • command: string
      • args: readonly string[]
      • operatorEnv: ProcessEnv = process.env

      Returns CmdSpawnSpec