@harves/nx-node-esm-plugin
Version:
Node executor including ESM module resolution for buildable libraries within Nx workspaces.
40 lines (39 loc) • 1.2 kB
TypeScript
import { ExecutorContext } from '@nx/devkit';
/**
* @see https://github.com/nrwl/nx/blob/316dcb948cf172e4faef8866bc66a9002ed4c4e3/packages/nx/src/executors/run-commands/run-commands.impl.ts#L14
*/
export declare const LARGE_BUFFER: number;
/**
*
* @param cwd
* @param context
* @returns
*
* @see https://github.com/nrwl/nx/blob/316dcb948cf172e4faef8866bc66a9002ed4c4e3/packages/nx/src/executors/run-commands/run-commands.impl.ts#L442-L449
*/
export declare function calculateCwd(cwd: string | undefined, context: ExecutorContext): string;
/**
*
* @param commandConfig
* @param readyWhen
* @param color
* @param cwd
* @param env
* @param isParallel
* @param usePty
* @param streamOutput
* @param tty
* @returns
*
* @see https://github.com/nrwl/nx/blob/316dcb948cf172e4faef8866bc66a9002ed4c4e3/packages/nx/src/executors/run-commands/run-commands.impl.ts#L293C1-L353C2
*/
export declare function createProcess(commandConfig: {
command: string;
args: string[];
color?: string;
bgColor?: string;
prefix?: string;
}, color: boolean, cwd: string, env: Record<string, string>, streamOutput?: boolean): Promise<{
success: boolean;
terminalOutput: string;
}>;