Skip to content

Commit 7fa5ffc

Browse files
authored
build: add a script to rebuild on typescript file changes (#178)
1 parent babfdde commit 7fa5ffc

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,27 @@ Before you can run the app, you'll need to store some environment variables.
2424

2525
#### Install Dependencies
2626

27-
`npm install`
27+
```sh
28+
npm install
29+
```
30+
31+
#### Build the App
32+
33+
```sh
34+
npm run build
35+
```
36+
37+
For development, use watch mode to automatically rebuild on changes:
38+
39+
```sh
40+
npm run build:watch
41+
```
2842

2943
#### Run Bolt Server
3044

31-
`npm start`
45+
```sh
46+
npm start
47+
```
3248

3349
## Project Structure
3450

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"type": "module",
77
"scripts": {
88
"build": "tsc",
9-
"start": "npm run build && node ./dist/app.js",
9+
"build:watch": "tsc --watch",
10+
"start": "node ./dist/app.js",
1011
"lint": "npx @biomejs/biome check *.ts listeners tests",
1112
"lint:fix": "npx @biomejs/biome check --write *.ts listeners tests",
1213
"test": "npm run build && npm run lint && node --import tsx --test"

0 commit comments

Comments
 (0)