@incajs/cli 0.0.17 → 0.0.19
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/dist/cli.js +312 -297
- package/dist/types.d.mts +8 -2
- package/dist/vite/hmr.d.mts +8 -0
- package/dist/vite-runtime.js +8 -7
- package/package.json +5 -5
package/dist/types.d.mts
CHANGED
|
@@ -85,8 +85,14 @@ export interface HmrOptions {
|
|
|
85
85
|
quiet?: boolean;
|
|
86
86
|
/** Delivers a bundler payload to the running app over the dev channel. */
|
|
87
87
|
notify: (payload: unknown) => void;
|
|
88
|
-
/**
|
|
89
|
-
|
|
88
|
+
/**
|
|
89
|
+
* Called in place of forwarding a whole-app reload payload to the app, with
|
|
90
|
+
* the edit that caused it when one was waiting.
|
|
91
|
+
*/
|
|
92
|
+
reload: (changed?: {
|
|
93
|
+
file: string;
|
|
94
|
+
at: number;
|
|
95
|
+
}) => void;
|
|
90
96
|
/** Called when an update the app fetched failed to compile. */
|
|
91
97
|
onError: (error: BuildFailure) => void;
|
|
92
98
|
/** Called after a successful update, with the file that changed and how long it took. */
|
package/dist/vite/hmr.d.mts
CHANGED
|
@@ -20,6 +20,14 @@ interface UpdateError {
|
|
|
20
20
|
* `buildErrorMessage` follows the stack.
|
|
21
21
|
*/
|
|
22
22
|
export declare function faultOfUpdate(core: AdapterCore, error: UpdateError): BuildFailure;
|
|
23
|
+
/**
|
|
24
|
+
* The `define` entries set on `globalThis` in the development window, as values: those whose
|
|
25
|
+
* key is a plain identifier and whose code is a JSON literal. A string value is code, and any
|
|
26
|
+
* other value is read as its JSON form.
|
|
27
|
+
* @param define - the development server's resolved `define`
|
|
28
|
+
* @returns the values by key
|
|
29
|
+
*/
|
|
30
|
+
export declare function globalsOfDefine(define: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
23
31
|
/**
|
|
24
32
|
* Starts a Vite dev server driving the app over its dev channel instead of
|
|
25
33
|
* a browser: a `"client"` environment with a custom {@link HotChannel}
|
package/dist/vite-runtime.js
CHANGED
|
@@ -1154,10 +1154,11 @@ function wt() {
|
|
|
1154
1154
|
function Tt(e) {
|
|
1155
1155
|
return typeof e == "object" && !!e && "runnerError" in e;
|
|
1156
1156
|
}
|
|
1157
|
-
async function Et(e) {
|
|
1158
|
-
|
|
1157
|
+
async function Et(e, t = {}) {
|
|
1158
|
+
Object.assign(globalThis, t);
|
|
1159
|
+
let n = () => {}, r = new yt({
|
|
1159
1160
|
transport: {
|
|
1160
|
-
...St(() =>
|
|
1161
|
+
...St(() => n()),
|
|
1161
1162
|
timeout: 0
|
|
1162
1163
|
},
|
|
1163
1164
|
hmr: { logger: {
|
|
@@ -1167,15 +1168,15 @@ async function Et(e) {
|
|
|
1167
1168
|
sourcemapInterceptor: !1
|
|
1168
1169
|
}, wt());
|
|
1169
1170
|
for (;;) {
|
|
1170
|
-
let
|
|
1171
|
-
|
|
1171
|
+
let t = new Promise((e) => {
|
|
1172
|
+
n = e;
|
|
1172
1173
|
});
|
|
1173
1174
|
try {
|
|
1174
|
-
return await
|
|
1175
|
+
return await r.import(e);
|
|
1175
1176
|
} catch (e) {
|
|
1176
1177
|
Tt(e) || Promise.reject(e), globalThis.__inca_dev__?.setLoadFailed?.(!0);
|
|
1177
1178
|
}
|
|
1178
|
-
await
|
|
1179
|
+
await t, r.clearCache(), globalThis.__inca_dev__?.setLoadFailed?.(!1);
|
|
1179
1180
|
}
|
|
1180
1181
|
}
|
|
1181
1182
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incajs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Commands to develop, bundle, and package Incarnative.js apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"optionalDependencies": {
|
|
75
|
-
"@incajs/host-darwin-arm64": "0.0.
|
|
76
|
-
"@incajs/host-darwin-x64": "0.0.
|
|
77
|
-
"@incajs/host-linux-arm64": "0.0.
|
|
78
|
-
"@incajs/host-linux-x64": "0.0.
|
|
75
|
+
"@incajs/host-darwin-arm64": "0.0.19",
|
|
76
|
+
"@incajs/host-darwin-x64": "0.0.19",
|
|
77
|
+
"@incajs/host-linux-arm64": "0.0.19",
|
|
78
|
+
"@incajs/host-linux-x64": "0.0.19"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=22.18"
|