@incajs/cli 0.0.4 → 0.0.6
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 +11 -6
- package/dist/adapter/types.d.mts +71 -32
- package/dist/adapter/vite/build.d.mts +0 -1
- package/dist/adapter/vite/captureOutput.d.mts +3 -0
- package/dist/adapter/vite/emitConfig.d.mts +6 -0
- package/dist/adapter/vite/hmr.d.mts +7 -0
- package/dist/adapter/vite/index.d.mts +1 -0
- package/dist/adapter/vite/logger.d.mts +4 -3
- package/dist/adapter/vite/watch.d.mts +0 -1
- package/dist/cli.js +421 -227
- package/dist/dev-client/hostClient.d.mts +15 -2
- package/dist/dev.d.mts +5 -0
- package/dist/hmr-runtime.js +1129 -0
- package/dist/index.d.mts +0 -1
- package/dist/log.d.mts +4 -2
- package/package.json +8 -6
|
@@ -44,8 +44,21 @@ export declare class HostClient {
|
|
|
44
44
|
* binary doesn't exist).
|
|
45
45
|
*/
|
|
46
46
|
start(): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Sends a request and resolves with its result once the host answers.
|
|
49
|
+
* With `timeoutMs`, rejects once that much time passes with no answer —
|
|
50
|
+
* the host answers on the same thread that runs the app's JS, so a
|
|
51
|
+
* wedged app leaves a call pending forever otherwise (PROTOCOL.md:
|
|
52
|
+
* "every response a client waits for needs a deadline").
|
|
53
|
+
*/
|
|
54
|
+
call(method: string, params?: unknown, timeoutMs?: number): Promise<unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Sends a fire-and-forget notification — no `id`, so no reply is ever
|
|
57
|
+
* awaited. Used for traffic a bundler integration owns (e.g. Vite's HMR
|
|
58
|
+
* payloads), which answers itself over the same named channel rather than
|
|
59
|
+
* through this client's request/reply bookkeeping.
|
|
60
|
+
*/
|
|
61
|
+
notify(method: string, params?: unknown): void;
|
|
49
62
|
/**
|
|
50
63
|
* Asks the host to `shutdown` and waits for the child to actually exit —
|
|
51
64
|
* that exit is the real acknowledgement, not the response. Kills it once
|
package/dist/dev.d.mts
CHANGED
|
@@ -9,6 +9,11 @@ export interface DevOptions {
|
|
|
9
9
|
entry?: string;
|
|
10
10
|
/** Overrides the bundler — see {@link defaultBundler} for what's wired in by default. */
|
|
11
11
|
bundler?: Bundler;
|
|
12
|
+
/**
|
|
13
|
+
* Delivers module-granular updates instead of a full reload on every
|
|
14
|
+
* change, over `bundler.hmr` — see `--experimental-hmr`.
|
|
15
|
+
*/
|
|
16
|
+
experimentalHmr?: boolean;
|
|
12
17
|
/**
|
|
13
18
|
* Overrides host binary resolution. On macOS this is the binary the
|
|
14
19
|
* app bundle wraps; elsewhere it is launched directly.
|