@revenexx/integrations-node-devkit 0.8.0 → 0.8.2

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.
package/README.md CHANGED
@@ -219,7 +219,8 @@ expect(persistDurableCreds).toHaveBeenCalledWith({ refreshToken: 'RT' });
219
219
  stub.restore();
220
220
  ```
221
221
 
222
- `vitest` is an optional peer dependency (the harness uses `vi` spies).
222
+ `vitest` is an optional peer dependency (the harness uses `vi` spies); from Vitest 5 on,
223
+ install its `vite` peer alongside.
223
224
 
224
225
  ## Fidelity caveats
225
226
 
@@ -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
+ };