From b8784e25b76039c1ce0cfedee6aa50d5446579f9 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Sun, 25 Jan 2026 13:16:25 -0500 Subject: esbuild to bundle for deployment --- cgithub/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgithub/package.json') 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" } -- cgit v1.3.1