UNPKG

@aziontech/opennextjs-azion

Version:
27 lines (26 loc) 1.19 kB
import type { BuildOptions } from "@opennextjs/aws/build/helper.js"; type BundlerOptions = { port?: number; debug?: boolean; logging?: "error" | "all" | "pipe"; version?: string; }; /** * Prepends CLI flags with `--` so that certain package managers can pass args through to wrangler * properly. * * npm and yarn classic require `--` to be used, while pnpm and bun require that it is not used. * * @param options Build options. * @param args CLI args. * @returns Arguments with a passthrough flag injected when needed. */ export declare function injectPassthroughFlagForArgs(options: BuildOptions, args: string[]): string[]; export declare function runBundler(_options: BuildOptions, args: string[], bundlerOpts?: BundlerOptions): { stdout: string; stderr: string; } | undefined; export declare const azionConfigExists: (options: BuildOptions) => Promise<boolean>; export declare function createAzionConfig(options: BuildOptions, configAzion: Record<string, any>): Promise<void>; export declare const commandBuildBundler: (options: BuildOptions, skipFrameworkBuild: boolean, passthroughArgs: string[], bundlerOpts?: BundlerOptions) => Promise<void>; export {};