UNPKG

2.3 kBTypeScriptView Raw
1import FileBlob from './file-blob';
2import FileFsRef from './file-fs-ref';
3import FileRef from './file-ref';
4import { Lambda, createLambda, getLambdaOptionsFromFunction } from './lambda';
5import { Prerender } from './prerender';
6import download, { DownloadedFiles, isSymbolicLink } from './fs/download';
7import getWriteableDirectory from './fs/get-writable-directory';
8import glob, { GlobOptions } from './fs/glob';
9import rename from './fs/rename';
10import { execAsync, spawnAsync, execCommand, spawnCommand, walkParentDirs, getScriptName, installDependencies, runPackageJsonScript, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, getNodeVersion, getSpawnOptions, getNodeBinPath } from './fs/run-user-scripts';
11import { getLatestNodeVersion, getDiscontinuedNodeVersions } from './fs/node-version';
12import streamToBuffer from './fs/stream-to-buffer';
13import shouldServe from './should-serve';
14import debug from './debug';
15export { FileBlob, FileFsRef, FileRef, Lambda, createLambda, Prerender, download, DownloadedFiles, getWriteableDirectory, glob, GlobOptions, rename, execAsync, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, getNodeVersion, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, streamToBuffer, shouldServe, debug, isSymbolicLink, getLambdaOptionsFromFunction, };
16export { detectBuilders, detectOutputDirectory, detectApiDirectory, detectApiExtensions, } from './detect-builders';
17export { detectFramework } from './detect-framework';
18export { DetectorFilesystem } from './detectors/filesystem';
19export { readConfigFile } from './fs/read-config-file';
20export * from './schemas';
21export * from './types';
22export * from './errors';
23/**
24 * Helper function to support both `@vercel` and legacy `@now` official Runtimes.
25 */
26export declare const isOfficialRuntime: (desired: string, name?: string | undefined) => boolean;
27export declare const isStaticRuntime: (name?: string | undefined) => boolean;
28/**
29 * Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
30 * Throws an error if *both* env vars are defined.
31 */
32export declare const getPlatformEnv: (name: string) => string | undefined;