fix(v2): Fixes serve cli --port option (#3531)

* fix(v2): Fixes serve cli --port option

* refactor a bit the start/serve cli options management

Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
Umair Kamran 2020-10-05 18:20:03 +05:00 committed by GitHub
parent f29da4ba77
commit 10973476ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 26 deletions

View file

@ -91,13 +91,21 @@ export type PresetConfig =
| [string]
| string;
export interface StartCLIOptions {
port: string;
host: string;
export type HostPortCLIOptions = {
host?: string;
port?: string;
};
export type StartCLIOptions = HostPortCLIOptions & {
hotOnly: boolean;
open: boolean;
poll: boolean;
}
};
export type ServeCLIOptions = HostPortCLIOptions & {
build: boolean;
dir: string;
};
export interface BuildCLIOptions {
bundleAnalyzer: boolean;