import { type ForgeOutputFormat } from './types-output.js'; export interface FlatjsForgeCommand { /** * main command name :`build` * @example flatjs-forge build --format --dts */ cmd: string; /** * sub command name :`build`, only for man command `help` * @example flatjs-forge help build --format --dts */ subCmd?: string; /** * command configration parameters. * @interface ForgeCmdArgs */ options: T; } export interface FlatjsForgeCmdArgs { /** * specificed the project root directory * @example * --projectCwd=packages/forge * @default `process.cwd()` */ projectCwd?: string; /** * The build output dir * @default `dist` */ outDir?: string; /** * the value indicates if we need minify the output bundle. * @example * --c * @default false */ compress?: boolean; /** * @example * ``` * --format=cjs --format=esm * ``` * all avaliable format is cjs, umd, esm. * @default esm */ format: Array; /** * Generated typings definition files. * @default false */ dts?: boolean; /** * Disable any logging except errors * @default false */ silent?: boolean; /** * alias of the help * --help , --h * @default false */ h?: boolean; /** * should output a main help menu. * @default false */ help?: boolean; /** * alias of the version * --version , --v * @default false */ v?: boolean; /** * should output the current app version. * @default false */ version?: boolean; }