From de94f69e8f34553a58de23ab6b16fda62838e44d Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 12 Nov 2019 16:09:46 -0500 Subject: [PATCH] bin/server.ts: fs.unlink requires two arguments on Node v12 --- bin/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/server.ts b/bin/server.ts index ef5d94d..b14a7c7 100644 --- a/bin/server.ts +++ b/bin/server.ts @@ -85,7 +85,7 @@ function writePidFile( pid_path: string ): void { fs.writeFileSync( pid_path, process.pid ); - process.on( 'exit', () => fs.unlink( pid_path ) ); + process.on( 'exit', () => fs.unlink( pid_path, () => {} ) ); }