Files
eatme/backend/esbuild.config.js
Michal Pemcak fffcb73ea4 Initial commit: EatMe attendance tracker
Google-SSO PWA for bistro employee clock-in/out, admin employee
management, and stats with CSV export. Express + SQLite backend,
React + Zustand frontend in the light-mono-tui design language.
Multi-stage Dockerfile, compose.yaml for image-based deploys, nginx
reverse-proxy template, and an OKF documentation bundle in docs/.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-16 18:41:11 +02:00

21 lines
532 B
JavaScript

const esbuild = require("esbuild");
esbuild
.build({
entryPoints: ["src/index.ts"],
outfile: "dist/index.js",
bundle: true,
platform: "node",
target: "node22",
format: "cjs",
minify: true,
sourcemap: true,
// better-sqlite3 ships a native .node binding — it can't be bundled,
// so it stays a real dependency installed alongside the bundle.
external: ["better-sqlite3"],
})
.then(() => {
console.log("backend bundled -> dist/index.js");
})
.catch(() => process.exit(1));