Files
tsbundle/ts/interfaces/index.ts

38 lines
851 B
TypeScript

export interface ICliOptions {
commonjs?: boolean;
skiplibcheck?: boolean;
production?: boolean;
bundler: 'esbuild' | 'rolldown' | 'rspack';
}
export interface IEnvTransportOptions {
cwd: string;
from: string;
to: string;
mode: 'test' | 'production';
argv: ICliOptions;
}
// Custom bundle configuration types
export type TOutputMode = 'bundle' | 'base64ts';
export type TBundler = 'esbuild' | 'rolldown' | 'rspack';
export interface IBundleConfig {
from: string;
to: string;
outputMode?: TOutputMode;
bundler?: TBundler;
production?: boolean;
includeFiles?: string[];
maxLineLength?: number; // For base64ts output: max chars per line. 0 or undefined = unlimited (default)
}
export interface ITsbundleConfig {
bundles: IBundleConfig[];
}
export interface IBase64File {
path: string;
contentBase64: string;
}