Skip to content

Commit

Permalink
chore: update build script to ensure clean start
Browse files Browse the repository at this point in the history
  • Loading branch information
EvHaus committed Feb 20, 2024
1 parent 5c5047a commit 9eddaa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ To test client-side rendering, you can run `cd examples/client && bun install &&

## Building

To prepare a new release run `bun dist` which will generate the necessary output files in `/dist`.
To prepare a new release run `bun run build` which will generate the necessary output files in `/dist`.

5 changes: 5 additions & 0 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { rm } from 'node:fs/promises';

async function build() {
// Delete dist folder
await rm('./dist', { force: true, recursive: true });

// Generate bundle
await Bun.build({
entrypoints: ['./src/index.ts'],
Expand Down

0 comments on commit 9eddaa2

Please sign in to comment.