Files
S. EsmaeiliandClaude Haiku 5.5 10e453e4be build: ship pre-built API bundle; images copy output instead of installing
- API: `pnpm build` bundles dist/ into apps/api/.output (esbuild), with
  Linux musl native packages for sharp and argon2 kept alongside
- docker/api.Dockerfile copies that output; no pnpm install on the server
- add dist/migrate.js (prisma migrate deploy equivalent, same
  _prisma_migrations table and lock) so the Prisma CLI is not needed at runtime
- pnpm-workspace: supportedArchitectures for linux/x64/musl
- admin: apps/admin/.env.production sets VITE_SITE_URL for the production build
- drop NPM_REGISTRY / SITE_URL build args from compose and .env.example
- gitignore: anchor node_modules rules so pre-built node_modules are committed
- README: describe the pre-built deploy flow

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-24 14:41:31 +03:30

57 lines
1.7 KiB
JSON

{
"name": "@imen/api",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"build": "prisma generate && nest build && node scripts/bundle.mjs",
"dev": "nest start --watch --preserveWatchOutput --entryFile main.js",
"start": "node dist/main.js",
"typecheck": "prisma generate && tsc --noEmit -p tsconfig.json",
"test": "vitest run --config ./vitest.config.e2e.ts",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:deploy": "prisma migrate deploy",
"prisma:studio": "prisma studio",
"db:seed": "prisma db seed",
"postinstall": "prisma generate"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1154.0",
"@imen/shared": "workspace:*",
"@nestjs/common": "^12.2.0",
"@nestjs/core": "^12.2.0",
"@nestjs/jwt": "^12.0.3",
"@nestjs/platform-express": "^12.2.0",
"@nestjs/throttler": "^6.7.1",
"@node-rs/argon2": "^2.2.2",
"@prisma/adapter-pg": "7.10.1",
"@prisma/client": "7.10.1",
"cookie-parser": "^1.4.7",
"helmet": "^8.3.0",
"pg": "^8.23.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"sharp": "^0.35.5",
"zod": "^4.6.7"
},
"devDependencies": {
"@nestjs/cli": "^12.0.10",
"@nestjs/schematics": "^12.0.10",
"@nestjs/testing": "^12.2.0",
"@types/cookie-parser": "^1.4.9",
"@types/express": "^5.0.6",
"@types/multer": "^2.3.0",
"@types/node": "^24.0.0",
"@types/pg": "^8.23.1",
"@types/supertest": "^7.0.0",
"esbuild": "^0.28.2",
"prisma": "7.10.1",
"supertest": "^7.1.4",
"tsx": "^4.20.6",
"typescript": "^6.0.2",
"vite": "^8.0.0",
"vitest": "^4.1.2"
}
}