@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
24 lines (23 loc) • 849 B
TypeScript
/** This file cannot be tested because it calls `process.exit`. */
/**
* A map of file extensions to their known runners for {@link runCliScript}.
*
* @category Node : Terminal : Util
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare const ExtensionToRunner: Record<string, string | {
npx: string;
}>;
/**
* Runs a script path as if it had been run directly, as much as possible.
*
* @category Node : Terminal : Util
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function runCliScript({ scriptPath, cliScriptFilePath, binName, }: Readonly<{
scriptPath: string;
cliScriptFilePath: string;
binName: string | undefined;
}>): Promise<void>;