diff --git a/packages/api/.gitignore b/packages/api/.gitignore index ce007ac..8556ab4 100644 --- a/packages/api/.gitignore +++ b/packages/api/.gitignore @@ -172,4 +172,7 @@ dist .idea # Finder (MacOS) folder config -.DS_Store \ No newline at end of file +.DS_Store + +# Bun +*.bun-build \ No newline at end of file diff --git a/packages/api/package.json b/packages/api/package.json index b2c74e8..60658c6 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "./dist/app", "dev": "bun --hot src/app.ts", - "build": "bun build --compile src/app.ts --outfile dist/app", + "build": "bun build --compile --minify --sourcemap --bytecode src/app.ts --outfile dist/app", "compile": "tsc -b --noEmit && tsc-alias", "test": "DATABASE_URL=$TEST_DATABASE_URL sh -c \"bun run db:migrate && bun test\"", "test:watch": "DATABASE_URL=$TEST_DATABASE_URL sh -c \"bun run db:migrate && bun test --watch\"",