@pipelab/core-node 1.0.1-latest.37 → 1.0.1-latest.38
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/CHANGELOG.md +9 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/server.ts +9 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipelab/core-node",
|
|
3
|
-
"version": "1.0.1-latest.
|
|
3
|
+
"version": "1.0.1-latest.38",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Pipelab automation engine for Node.js",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"type-fest": "4.39.0",
|
|
40
40
|
"ws": "8.18.3",
|
|
41
41
|
"yauzl": "2.10.0",
|
|
42
|
-
"@pipelab/constants": "1.0.1-latest.
|
|
43
|
-
"@pipelab/shared": "2.0.1-latest.
|
|
42
|
+
"@pipelab/constants": "1.0.1-latest.34",
|
|
43
|
+
"@pipelab/shared": "2.0.1-latest.35"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/adm-zip": "0.5.7",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/yauzl": "2.10.3",
|
|
54
54
|
"tsdown": "0.21.2",
|
|
55
55
|
"typescript": "^5.0.0",
|
|
56
|
-
"@pipelab/tsconfig": "1.0.1-latest.
|
|
56
|
+
"@pipelab/tsconfig": "1.0.1-latest.34"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsdown",
|
package/src/server.ts
CHANGED
|
@@ -29,6 +29,13 @@ export const sendStartupProgress = (message: string) => {
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
export const sendStartupReady = () => {
|
|
33
|
+
console.log(`[Startup Progress] Ready!`);
|
|
34
|
+
webSocketServer.broadcast("startup:progress", {
|
|
35
|
+
type: "ready",
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
32
39
|
export async function serveCommand(options: ServeOptions, version: string, _dirname: string) {
|
|
33
40
|
if (!options.userData) throw new Error("userDataPath is required for serveCommand");
|
|
34
41
|
const context = new PipelabContext({
|
|
@@ -59,7 +66,7 @@ export async function serveCommand(options: ServeOptions, version: string, _dirn
|
|
|
59
66
|
response.writeHead(404, { "Content-Type": "text/plain" });
|
|
60
67
|
response.end(
|
|
61
68
|
`Error: UI directory not found at ${rawAssetFolder}.\n` +
|
|
62
|
-
|
|
69
|
+
"Please run 'pnpm build' in apps/ui to generate the distribution.",
|
|
63
70
|
);
|
|
64
71
|
return;
|
|
65
72
|
}
|
|
@@ -86,9 +93,7 @@ export async function serveCommand(options: ServeOptions, version: string, _dirn
|
|
|
86
93
|
});
|
|
87
94
|
registerMigrationHandlers(context);
|
|
88
95
|
|
|
89
|
-
|
|
90
|
-
process.send({ type: "ready" });
|
|
91
|
-
}
|
|
96
|
+
sendStartupReady();
|
|
92
97
|
|
|
93
98
|
return server;
|
|
94
99
|
}
|