mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
dev: fix pnpm dev is broken (#14123)
* dev: pnpm dev is broken * dev: fix crash pnpm dev because of unhandled promise
This commit is contained in:
parent
de1fe7cc5a
commit
5d03efa1bb
@ -30,6 +30,7 @@ function execStart() {
|
||||
|
||||
async function killProc() {
|
||||
if (backendProcess) {
|
||||
backendProcess.catch(() => {}); // backendProcess.kill()によって発生する例外を無視するためにcatch()を呼び出す
|
||||
backendProcess.kill();
|
||||
await new Promise(resolve => backendProcess.on('exit', resolve));
|
||||
backendProcess = undefined;
|
||||
@ -46,6 +47,7 @@ async function killProc() {
|
||||
],
|
||||
{
|
||||
stdio: [process.stdin, process.stdout, process.stderr, 'ipc'],
|
||||
serialization: "json",
|
||||
})
|
||||
.on('message', async (message) => {
|
||||
if (message.type === 'exit') {
|
||||
|
Loading…
Reference in New Issue
Block a user