@revenexx/integrations-node-devkit 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Argument parsing, kept apart from `cli.ts` so it can be tested.
3
+ *
4
+ * `cli.ts` runs `main()` on import, so anything reachable only from there is
5
+ * unreachable from a test. This function is pure — it throws {@link CliError}
6
+ * instead of calling `process.exit`, and reads the environment but never writes it.
7
+ */
8
+ export interface CliOptions {
9
+ entry: string;
10
+ seedDir: string;
11
+ stateFile: string;
12
+ persist: boolean;
13
+ port: number;
14
+ /**
15
+ * True when the port was named by the user (`--port` or `$PORT`). An explicit
16
+ * port is honoured or reported as a conflict; only the default may relocate.
17
+ */
18
+ portExplicit: boolean;
19
+ uiDir: string | null;
20
+ serveUi: boolean;
21
+ open: boolean;
22
+ /** Explicit host directory from `--dir`; null means use the managed cache. */
23
+ previewDir: string | null;
24
+ /** Re-copy the host even when the target looks complete. */
25
+ force: boolean;
26
+ /** Allow a second preview alongside one that is already running. */
27
+ parallel: boolean;
28
+ }
29
+ export declare const DEFAULT_PORT = 3555;
30
+ export declare function parseArgs(argv: string[], env?: NodeJS.ProcessEnv): {
31
+ command: string | null;
32
+ options: CliOptions;
33
+ };