Skip to content

Commit

Permalink
fix: exit release build process manually, vite does not terminate esb…
Browse files Browse the repository at this point in the history
…uild correctly
  • Loading branch information
hansSchall committed Nov 20, 2024
1 parent 022f21c commit 21cc1a7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
},
"fmt": {
"indentWidth": 4,
"lineWidth": 120
"lineWidth": 120,
"exclude": [
"examples/**/dist/**"
]
},
"tasks": {
"check": "deno fmt && deno lint && deno publish --dry-run --allow-dirty && deno test -A --parallel",
Expand All @@ -23,7 +26,10 @@
"exclude": [
"no-misused-new"
]
}
},
"exclude": [
"examples/**/dist/**"
]
},
"imports": {
"@deno-plc/vite-plugin-deno": "./mod.ts",
Expand Down
3 changes: 3 additions & 0 deletions examples/plain/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ import { build } from "vite";
import { config } from "./vite.ts";

await build(config);

// Vite spawns esbuild which prevents this from exiting automatically
Deno.exit(0);
3 changes: 3 additions & 0 deletions examples/preact/scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ import { build } from "vite";
import { config } from "./vite.ts";

await build(config);

// Vite spawns esbuild which prevents this from exiting automatically
Deno.exit(0);

0 comments on commit 21cc1a7

Please sign in to comment.