mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-22 17:38:26 +01: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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue