Skip to content

Commit

Permalink
fix: stop esbuild process (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleecode authored Apr 7, 2023
1 parent bbfd9e1 commit 37a40fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as esbuild from "./deps/esbuild.ts"
import puppeteer from "./deps/puppeteer.ts"
import { parse } from "./deps/std/flags.ts"
import * as fs from "./deps/std/fs.ts"
Expand Down Expand Up @@ -57,6 +58,8 @@ async function shutdown(exitCode: number) {
console.log(`\nshutting down with exitcode ${exitCode}`)

self.addEventListener("unload", () => Deno.exit(exitCode))

esbuild.stop()
controller.abort()
}

Expand Down

0 comments on commit 37a40fa

Please sign in to comment.