@histoire/cli 1.0.0-beta.2 → 1.0.0-beta.3
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/commands/dev.d.ts +1 -1
- package/dist/commands/dev.js +3 -1
- package/package.json +4 -4
package/dist/commands/dev.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { DevHost, DevOptions } from './host.js';
|
|
2
2
|
/** CLI parent owns public proxy and its process signal registrations. */
|
|
3
3
|
export declare function devCommand(options: DevOptions, host: DevHost): Promise<{
|
|
4
|
-
url: string;
|
|
5
4
|
ready: Promise<void>;
|
|
6
5
|
restart: (request?: import("@histoire/dev-proxy/protocol").RestartRequest) => Promise<void>;
|
|
7
6
|
openBrowser(target: string): Promise<void>;
|
|
@@ -39,6 +38,7 @@ export declare function devCommand(options: DevOptions, host: DevHost): Promise<
|
|
|
39
38
|
get: (operationId: string) => import("../terminal/tests/state.js").TestEntry | undefined;
|
|
40
39
|
subscribe(listener: () => void): () => boolean;
|
|
41
40
|
};
|
|
41
|
+
url: string;
|
|
42
42
|
status: import("@histoire/dev-proxy/protocol").RuntimeStatus;
|
|
43
43
|
close: () => Promise<void>;
|
|
44
44
|
}>;
|
package/dist/commands/dev.js
CHANGED
|
@@ -109,7 +109,9 @@ export async function devCommand(options, host) {
|
|
|
109
109
|
terminal.bind({ restart: request => proxy.restart(request), openBrowser: target => proxy.openBrowser(target), close: closeRuntime });
|
|
110
110
|
// Failed config keeps parent/watcher available for correction and automatic retry.
|
|
111
111
|
void proxy.ready.catch(error => output.onDiagnostic(String(error)));
|
|
112
|
-
return { ...proxy, logs, requests, bridge, progress, retained, tests, get
|
|
112
|
+
return { ...proxy, logs, requests, bridge, progress, retained, tests, get url() {
|
|
113
|
+
return proxy.url;
|
|
114
|
+
}, get status() {
|
|
113
115
|
return proxy.status;
|
|
114
116
|
}, close };
|
|
115
117
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.3",
|
|
5
5
|
"description": "Command line parsing and the development terminal for Histoire",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"sade": "^1.8.1",
|
|
41
41
|
"uqr": "^0.1.2",
|
|
42
|
-
"@histoire/dev-proxy": "^1.0.0-beta.
|
|
43
|
-
"@histoire/protocol": "^1.0.0-beta.
|
|
42
|
+
"@histoire/dev-proxy": "^1.0.0-beta.3",
|
|
43
|
+
"@histoire/protocol": "^1.0.0-beta.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22.10.1",
|
|
47
47
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
48
48
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
49
49
|
"vitest": "5.1.1",
|
|
50
|
-
"@histoire/vendors": "^1.0.0-beta.
|
|
50
|
+
"@histoire/vendors": "^1.0.0-beta.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "rimraf dist && tsc",
|