From 412ed9bbe14cf590d8b13e85bb088d07857584be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Wang=28=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7=29?= <308487730@qq.com> Date: Sun, 17 Mar 2024 09:57:18 +0800 Subject: [PATCH 1/3] fix(#214): catch the `process.kill(pid)` error --- src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 527e525..ae0d3b7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -172,5 +172,7 @@ function killTree(tree: PidTree) { } } - process.kill(tree.pid) + try { + process.kill(tree.pid) // #214 + } catch { /* empty */ } } From 4f7748c9919229030c4b1c92397ca5e9072a5d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Wang=28=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7=29?= <308487730@qq.com> Date: Sun, 17 Mar 2024 10:01:42 +0800 Subject: [PATCH 2/3] chore: restore `vite-plugin-electron-renderer` in `peerDependencies` --- package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.json b/package.json index d649972..fdd3ab7 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,14 @@ "test": "vitest run", "prepublishOnly": "npm run build && npm run test" }, + "peerDependencies": { + "vite-plugin-electron-renderer": "*" + }, + "peerDependenciesMeta": { + "vite-plugin-electron-renderer": { + "optional": true + } + }, "devDependencies": { "rollup": "^4.13.0", "typescript": "^5.4.2", From 1e2771d046d10dc50fbba2088f1a6a95c265d72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leo=20Wang=28=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7=29?= <308487730@qq.com> Date: Sun, 17 Mar 2024 10:02:58 +0800 Subject: [PATCH 3/3] v0.28.4 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cb4d8e..182b9d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.28.4 (2024-03-17) + +- 4f7748c chore: restore `vite-plugin-electron-renderer` in `peerDependencies` +- 412ed9b fix(#214): catch the `process.kill(pid)` error + ## 0.28.3 (2024-03-13) - a300c08 fix: remove electron@28 version pre-deps