UNPKG

kt-extendscript-builder

Version:

Vite based builder for transpile TypeScript to ExtendScript

20 lines (19 loc) 799 B
import { BuildOptions } from '../../types'; /** * A class responsible for collecting build options from command line arguments. * It uses the yargs library to parse command line arguments based on predefined KTBuilderOptions. */ export declare class OptionsParser { /** * Parses build options from the command line arguments. * * This method: * 1. Creates a yargs instance with the process arguments (excluding the first two) * 2. Registers all KTBuilderOptions with the yargs instance * 3. Enables the help command and parses the arguments * * @returns A partial BuildOptions object containing the parsed command line options */ static parse(): Partial<BuildOptions>; static filter(options: Record<string, any>): Partial<BuildOptions>; }