build stuff

This commit is contained in:
2025-12-11 21:37:46 -06:00
parent c3421a82d6
commit 3e8ff8ef4c
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import { build } from "esbuild";
await build({ await build({
entryPoints: ["backend/app.ts"], entryPoints: ["backend/app.ts"],
outfile: "dist/app.js", outfile: "dist/index.cjs",
bundle: true, bundle: true,
platform: "node", platform: "node",
target: ["node24"], target: ["node24"],

View File

@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"dev:app": "cd backend && node --watch app.ts", "dev:app": "cd backend && node --watch app.ts",
"build": "esbuild backend/app.ts --bundle --platform=node --minify --outfile=dist/index.cjs --format=esm --external:node:*", "build": "esbuild backend/app.ts --bundle --platform=node --minify --outfile=dist/index.cjs --format=esm --external:node:* --legal-comments=none",
"lint": "tsc" "lint": "tsc"
}, },
"repository": { "repository": {