fix(api): auto-run migrations on container start and fix ESM warning

- Add docker-entrypoint.sh that runs prisma migrate deploy before
  starting the app, ensuring all tables exist on deployment
- Add "type": "module" to package.json to eliminate Node.js ESM
  reparsing warning for eslint.config.js

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-02-14 16:47:57 -06:00
co-authored by Claude Opus 4.6
parent ab52827d9c
commit bcee4fa601
3 changed files with 14 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@
"name": "@mosaic/api",
"version": "0.0.1",
"private": true,
"type": "module",
"scripts": {
"build": "nest build",
"dev": "nest start --watch",