@junobuild/cli-tools
Version:
A collection of tools for Juno CLIs and Plugins.
12 lines (11 loc) • 552 B
TypeScript
import type { SpawnOptions } from 'child_process';
/**
* This code is adapted from `nano-spawn`.
* Source: https://github.com/sindresorhus/nano-spawn
*
* It includes logic to ensure proper command execution across platforms,
* particularly handling shell requirements on Windows.
*
* If updating, consider checking for upstream changes in `nano-spawn`.
*/
export declare const applyForceShell: <Options extends SpawnOptions>(file: string, commandArguments: readonly string[], options: Options) => Promise<[string, readonly string[], Options]>;