diff options
| author | Joe Mou <dev@mou.fo> | 2026-01-25 13:16:25 -0500 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-01-25 17:46:15 -0500 |
| commit | b8784e25b76039c1ce0cfedee6aa50d5446579f9 (patch) | |
| tree | 572dbda80ea5296e89877fd951ff36de7a7c54a6 /cgithub/package.json | |
| parent | a64548630c531d7a7960f5e83d727a8bd423deaa (diff) | |
esbuild to bundle for deployment
Diffstat (limited to 'cgithub/package.json')
| -rw-r--r-- | cgithub/package.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgithub/package.json b/cgithub/package.json index 3e62cba..461a9bd 100644 --- a/cgithub/package.json +++ b/cgithub/package.json @@ -5,8 +5,7 @@ "type": "module", "scripts": { "dev": "concurrently 'tsc --watch --preserveWatchOutput' 'node --watch --watch-preserve-output build/index.js'", - "build": "tsc", - "start": "node build/index.js" + "build": "rm -rf dist/* && esbuild --bundle --format=esm --platform=node --outdir=dist/build --sourcemap src/index.ts && cp -R static views dist/" }, "dependencies": { "@hono/node-server": "^1.13.7", @@ -16,6 +15,7 @@ "devDependencies": { "@types/node": "^22.10.2", "concurrently": "^9.1.2", + "esbuild": "^0.27.2", "prettier": "^3.8.1", "typescript": "^5.7.2" } |
