nitro-nightly 3.0.1-20251224-090424-fb6b85d0 → 3.0.1-20251230-125747-eecf725d
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.
|
@@ -414,14 +414,18 @@ function nitroPreviewPlugin(ctx) {
|
|
|
414
414
|
PORT: String(randomPort)
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
|
+
const killChild = (signal) => {
|
|
418
|
+
if (child && !child.killed) child.kill(signal);
|
|
419
|
+
};
|
|
417
420
|
for (const sig of ["SIGINT", "SIGHUP"]) process.once(sig, () => {
|
|
418
421
|
consola$1.info(`Stopping preview server...`);
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
422
|
+
killChild(sig);
|
|
423
|
+
process.exit();
|
|
424
|
+
});
|
|
425
|
+
server.httpServer.once("close", () => {
|
|
426
|
+
killChild("SIGTERM");
|
|
423
427
|
});
|
|
424
|
-
child.
|
|
428
|
+
child.once("exit", (code) => {
|
|
425
429
|
if (code && code !== 0) consola$1.error(`[nitro] Preview server exited with code ${code}`);
|
|
426
430
|
});
|
|
427
431
|
const { createProxyServer } = await import("../cli/_chunks/dist3.mjs");
|
package/lib/vite.types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Based on https://github.com/hi-ogawa/vite-
|
|
1
|
+
// Based on https://github.com/hi-ogawa/vite-plugin-fullstack/blob/main/types/query.d.ts
|
|
2
2
|
|
|
3
3
|
type ImportAssetsResult = ImportAssetsResultRaw & {
|
|
4
4
|
merge(...args: ImportAssetsResultRaw[]): ImportAssetsResult;
|
package/package.json
CHANGED