From a02d7dd163dcb43e0acb88f2eba2c85c3c23b784 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 8 Dec 2025 02:22:43 +0900 Subject: fix(server): include add-user script in esbuild output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add add-user.ts as additional entry point in esbuild config - Switch from outfile to outdir/outbase for multiple outputs - Update user:add script to use compiled JS file - Fix README commands to use docker compose exec prefix - Add psql connection command to README 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- esbuild.mjs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'esbuild.mjs') diff --git a/esbuild.mjs b/esbuild.mjs index f355f99..e56ebc4 100644 --- a/esbuild.mjs +++ b/esbuild.mjs @@ -1,13 +1,17 @@ import * as esbuild from "esbuild"; await esbuild.build({ - entryPoints: ["src/server/index.ts"], + entryPoints: [ + "src/server/index.ts", + "src/server/scripts/add-user.ts", + ], bundle: true, platform: "node", target: "node22", - outfile: "dist/server/index.js", format: "esm", sourcemap: true, + outdir: "dist", + outbase: "src", external: [ // Node.js built-in modules "node:*", @@ -20,4 +24,4 @@ await esbuild.build({ }, }); -console.log("Server build complete: dist/server/index.js"); +console.log("Build complete"); -- cgit v1.2.3-70-g09d2