@vercube/devkit 0.0.45 → 0.0.47

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -1
  2. package/package.json +11 -11
package/dist/index.mjs CHANGED
@@ -232,7 +232,14 @@ function createDevServer(app) {
232
232
  async function _reload() {
233
233
  const oldFork = currentFork;
234
234
  currentFork = void 0;
235
- oldFork?.kill();
235
+ if (oldFork) await new Promise((resolve) => {
236
+ const killTimer = setTimeout(() => oldFork.kill("SIGKILL"), 1e3);
237
+ oldFork.once("exit", () => {
238
+ clearTimeout(killTimer);
239
+ resolve();
240
+ });
241
+ oldFork.kill("SIGTERM");
242
+ });
236
243
  currentFork = fork(forkEntry);
237
244
  if (!currentFork) return;
238
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/devkit",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "Devkit module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,19 +22,19 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@oxc-project/runtime": "0.120.0",
26
- "c12": "4.0.0-beta.4",
25
+ "@oxc-project/runtime": "0.133.0",
26
+ "c12": "4.0.0-beta.5",
27
27
  "chokidar": "5.0.0",
28
28
  "consola": "3.4.2",
29
- "defu": "6.1.4",
30
- "dotenv": "17.3.1",
31
- "hookable": "6.1.0",
32
- "oxc-parser": "0.120.0",
33
- "oxc-transform": "0.120.0",
29
+ "defu": "6.1.7",
30
+ "dotenv": "17.4.2",
31
+ "hookable": "6.1.1",
32
+ "oxc-parser": "0.133.0",
33
+ "oxc-transform": "0.133.0",
34
34
  "pathe": "2.0.3",
35
- "rolldown": "1.0.0-rc.9",
36
- "unplugin-isolated-decl": "0.15.7",
37
- "@vercube/core": "0.0.45"
35
+ "rolldown": "1.0.2",
36
+ "unplugin-isolated-decl": "0.16.0",
37
+ "@vercube/core": "0.0.47"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"