UNPKG

@netlify/build

Version:
52 lines (51 loc) 1.84 kB
import { zipFunctions, FunctionResult } from '@netlify/zip-it-and-ship-it'; export declare const bundleFunctions: { event: string; coreStep: ({ childEnv, constants: { INTERNAL_FUNCTIONS_SRC: relativeInternalFunctionsSrc, IS_LOCAL: isRunningLocally, FUNCTIONS_SRC: relativeFunctionsSrc, FUNCTIONS_DIST: relativeFunctionsDist, }, buildDir, branch, packagePath, logs, netlifyConfig, featureFlags, repositoryRoot, userNodeVersion, systemLog, }: { childEnv: any; constants: { INTERNAL_FUNCTIONS_SRC: any; IS_LOCAL: any; FUNCTIONS_SRC: any; FUNCTIONS_DIST: any; }; buildDir: any; branch: any; packagePath: any; logs: any; netlifyConfig: any; featureFlags: any; repositoryRoot: any; userNodeVersion: any; systemLog: any; }) => Promise<{ tags?: undefined; metrics?: undefined; } | { tags: { bundler: ("zisi" | "nft" | "esbuild" | "none" | "esbuild_zisi")[]; }; metrics: { type: string; name: string; value: number; tags: { type: string; }; }[]; }>; coreStepId: string; coreStepName: string; coreStepDescription: () => string; condition: ({ buildDir, constants: { INTERNAL_FUNCTIONS_SRC, FUNCTIONS_SRC }, packagePath, }: { buildDir: any; constants: { INTERNAL_FUNCTIONS_SRC: any; FUNCTIONS_SRC: any; }; packagePath: any; }) => Promise<boolean>; }; export declare const zipItAndShipIt: { zipFunctions(relativeSrcFolders: string | string[], destFolder: string, args_2?: import("@netlify/zip-it-and-ship-it").ZipFunctionsOptions | undefined): Promise<FunctionResult[]>; };