31 lines
No EOL
960 B
TypeScript
31 lines
No EOL
960 B
TypeScript
/// <reference types="node" resolution-mode="require"/>
|
|
import { ParseArgsConfig } from "util";
|
|
|
|
//#region src/find-entrypoint.d.ts
|
|
declare const findEntrypoint: (cwd: string, options?: {
|
|
ignoreRegex?: boolean;
|
|
}) => Promise<string>;
|
|
//#endregion
|
|
//#region src/index.d.ts
|
|
type ParseArgsOptionsConfig = NonNullable<ParseArgsConfig['options']>;
|
|
declare const getBuildSummary: (outputDir: string) => Promise<any>;
|
|
declare const build: (args: {
|
|
entrypoint?: string;
|
|
cwd: string;
|
|
out: string;
|
|
}) => Promise<{
|
|
rolldownResult: {
|
|
pkg: Record<string, unknown>;
|
|
shouldAddSourcemapSupport: boolean;
|
|
handler: string;
|
|
outputDir: string;
|
|
};
|
|
tsPromise: Promise<void> | null | undefined;
|
|
}>;
|
|
declare const serve: (args: {
|
|
cwd: string;
|
|
rest: Record<string, string | boolean | undefined>;
|
|
}) => Promise<void>;
|
|
declare const srvxOptions: ParseArgsOptionsConfig;
|
|
//#endregion
|
|
export { build, findEntrypoint, getBuildSummary, serve, srvxOptions }; |