@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 +2 -1
- package/dist/cli-args.d.ts +33 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/env.d.ts +70 -0
- package/dist/errors.d.ts +21 -0
- package/dist/http.d.ts +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -474
- package/dist/loader.d.ts +57 -0
- package/dist/persistence.d.ts +60 -0
- package/dist/ports.d.ts +24 -0
- package/dist/preview/child-env.d.ts +32 -0
- package/dist/preview/host.d.ts +147 -0
- package/dist/preview/pid.d.ts +14 -0
- package/dist/preview/registry.d.ts +40 -0
- package/dist/projections.d.ts +29 -0
- package/dist/resolve.d.ts +125 -0
- package/dist/server.d.ts +13 -0
- package/dist/state-rules.d.ts +32 -0
- package/dist/store.d.ts +184 -0
- package/dist/testing/author.d.ts +33 -0
- package/dist/testing/context.d.ts +96 -0
- package/dist/testing/credentials.d.ts +66 -0
- package/dist/testing/fetch.d.ts +57 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.ts +5 -253
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/mock.d.ts +12 -0
- package/package.json +7 -6
- package/preview-host/package.json +3 -3
- package/dist/index.d.cts +0 -482
- package/dist/testing/index.d.cts +0 -253
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
|
+
};
|