UNPKG

1.01 kBTypeScriptView Raw
1import { PrestaCLIDevOptions, PrestaCLIBuildOptions } from './cli';
2import { Plugin } from './plugins';
3export declare type Options = {
4 files: string[];
5 output: string;
6 assets: string;
7 plugins: Plugin[];
8 port: number;
9 __unsafe_bundle_everything: boolean;
10};
11export declare type Config = Options & {
12 env: string;
13 staticOutputDir: string;
14 functionsOutputDir: string;
15 manifestFilepath: string;
16};
17export declare const defaultConfigFilepath = "presta.config.js";
18export declare function getAvailablePort(preferred: string): Promise<number>;
19/**
20 * Fetch a config file. If one was specified by the user, let them know if
21 * anything goes wrong. Outside watch mode, this should exit(1) if the user
22 * provided a config and there was an error
23 */
24export declare function getConfigFile(filepath?: string, shouldExit?: boolean): any;
25export declare function create(env: string, cli: PrestaCLIBuildOptions | PrestaCLIDevOptions, file: Partial<Options>, cwd?: string): Config;