diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-08 02:22:43 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-08 02:23:16 +0900 |
| commit | a02d7dd163dcb43e0acb88f2eba2c85c3c23b784 (patch) | |
| tree | a12aab7d9cda28116238eb7a76f9a80bd38e07df /esbuild.mjs | |
| parent | a4abdb4c0d20fc9b2e5fe5b333d1604a7225df27 (diff) | |
| download | kioku-a02d7dd163dcb43e0acb88f2eba2c85c3c23b784.tar.gz kioku-a02d7dd163dcb43e0acb88f2eba2c85c3c23b784.tar.zst kioku-a02d7dd163dcb43e0acb88f2eba2c85c3c23b784.zip | |
fix(server): include add-user script in esbuild output
- 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 <noreply@anthropic.com>
Diffstat (limited to 'esbuild.mjs')
| -rw-r--r-- | esbuild.mjs | 10 |
1 files changed, 7 insertions, 3 deletions
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"); |
