builder.io 1.11.43 → 1.11.45
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/cli/index.cjs +456 -456
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +52 -50
- package/core/index.mjs +52 -50
- package/node/index.cjs +46 -44
- package/node/index.mjs +37 -35
- package/package.json +5 -2
- package/server/index.cjs +75 -77
- package/server/index.mjs +75 -77
- package/types/cli/launch/dev-server-orchestrator.d.ts +23 -1
- package/types/cli/prettier.integration.test.d.ts +1 -0
- package/types/cli/utils/dev-server-url-parser.d.ts +2 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/connection-tracker.d.ts +4 -1
- package/types/types.d.ts +1 -0
|
@@ -9,6 +9,28 @@ export interface SetupCommandResult {
|
|
|
9
9
|
code: number | null;
|
|
10
10
|
output: string;
|
|
11
11
|
}
|
|
12
|
+
export interface DevCommandProcess {
|
|
13
|
+
type: "devCommandProcess";
|
|
14
|
+
getPid: () => number | undefined;
|
|
15
|
+
getExitCode: () => number | null;
|
|
16
|
+
kill: (signal?: NodeJS.Signals) => boolean;
|
|
17
|
+
onSpawn: (listener: () => void) => void;
|
|
18
|
+
onError: (listener: (err: Error) => void) => void;
|
|
19
|
+
onClose: (listener: (code: number | null, signal: NodeJS.Signals | null) => void) => void;
|
|
20
|
+
stdout: {
|
|
21
|
+
on: (event: "data", callback: (data: Buffer) => void) => void;
|
|
22
|
+
};
|
|
23
|
+
stderr: {
|
|
24
|
+
on: (event: "data", callback: (data: Buffer) => void) => void;
|
|
25
|
+
};
|
|
26
|
+
removeAllListeners: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface DevCommandProcessOptions {
|
|
29
|
+
command: string;
|
|
30
|
+
shell: string;
|
|
31
|
+
cwd: string | undefined;
|
|
32
|
+
env: Record<string, string>;
|
|
33
|
+
}
|
|
12
34
|
export interface DevServerOrchestrator {
|
|
13
35
|
devCommand: string;
|
|
14
36
|
setupCommand: string | undefined;
|
|
@@ -61,4 +83,4 @@ export interface DevServerOrchestrator {
|
|
|
61
83
|
}
|
|
62
84
|
export declare function devServerOrchestrator(sys: DevToolsSys, fusionConfig: FusionConfig, initialSetupState: "installed" | "not-installed" | "install-failed"): Promise<DevServerOrchestrator>;
|
|
63
85
|
export declare const checkPortsListenedByPid: (pid: number) => number[];
|
|
64
|
-
export declare function killProcess(sys: DevToolsSys, proc: ChildProcess | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<boolean>;
|
|
86
|
+
export declare function killProcess(sys: DevToolsSys, proc: ChildProcess | DevCommandProcess | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ export interface DevServerUrlInfo {
|
|
|
6
6
|
* Parse dev server output to extract URL and port information
|
|
7
7
|
*
|
|
8
8
|
* @param output - The command output string to parse
|
|
9
|
+
* @param customPatterns - Optional array of custom regex patterns to try first
|
|
9
10
|
* @returns Object with url and port, or null if no valid URL found
|
|
10
11
|
*/
|
|
11
|
-
export declare function parseDevServerOutput(output: string): DevServerUrlInfo | null;
|
|
12
|
+
export declare function parseDevServerOutput(output: string, customPatterns?: string[]): DevServerUrlInfo | null;
|