Fix API crash: add exports field and clean runtime image
The API Docker image was crashing because Node.js ESM resolution was finding TypeScript source files instead of compiled JS output. Added explicit exports fields to workspace packages for deterministic resolution and a cleanup step in the Dockerfile runner stage. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -2,8 +2,15 @@
|
||||
"name": "@groombook/db",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"generate": "drizzle-kit generate",
|
||||
|
||||
@@ -2,8 +2,15 @@
|
||||
"name": "@groombook/types",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./src/index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"typecheck": "tsc --noEmit"
|
||||
|
||||
Reference in New Issue
Block a user