@incajs/cli 0.0.5 → 0.0.7
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 +4 -1
- package/dist/adapter/types.d.mts +58 -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/cli.js +414 -200
- package/dist/config/loader.d.mts +2 -1
- package/dist/dev-client/hostClient.d.mts +9 -2
- package/dist/dev-client/protocol.d.mts +2 -1
- package/dist/dev.d.mts +5 -0
- package/dist/hmr-runtime.js +1129 -0
- package/dist/log.d.mts +4 -2
- package/package.json +8 -6
package/dist/config/loader.d.mts
CHANGED
|
@@ -45,7 +45,8 @@ export declare function resolveBuildConfig(cwd: string): Promise<ResolvedBuildCo
|
|
|
45
45
|
* @param cwd - the app's root directory
|
|
46
46
|
* @returns the resolved config
|
|
47
47
|
* @throws if `package.json` is missing, has neither a `name` nor a
|
|
48
|
-
* `productName`,
|
|
48
|
+
* `productName`, an `icon` doesn't resolve to a real file, or `outDir`
|
|
49
|
+
* would hold the app's own files
|
|
49
50
|
*/
|
|
50
51
|
export declare function resolveAppConfig(cwd: string): Promise<ResolvedAppConfig>;
|
|
51
52
|
/**
|
|
@@ -15,10 +15,10 @@ export interface HostClientOptions {
|
|
|
15
15
|
* speaks the protocol revision this package was built for.
|
|
16
16
|
*/
|
|
17
17
|
onReady?: () => void;
|
|
18
|
-
/** An app's
|
|
18
|
+
/** An app's event listener threw, or the app threw while the host loaded it. */
|
|
19
19
|
onAppError?: (error: AppErrorParams) => void;
|
|
20
20
|
/**
|
|
21
|
-
* The host exited on its own
|
|
21
|
+
* The host exited on its own, or was stopped over a protocol mismatch.
|
|
22
22
|
* Not called for the exit `stop()` asks for.
|
|
23
23
|
*/
|
|
24
24
|
onExit?: (code: number | null, signal: NodeJS.Signals | null) => void;
|
|
@@ -52,6 +52,13 @@ export declare class HostClient {
|
|
|
52
52
|
* "every response a client waits for needs a deadline").
|
|
53
53
|
*/
|
|
54
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;
|
|
55
62
|
/**
|
|
56
63
|
* Asks the host to `shutdown` and waits for the child to actually exit —
|
|
57
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.
|