Fix Docker build: compile TS packages for runtime

Fixes ERR_UNKNOWN_FILE_EXTENSION at container startup by compiling @groombook/types and @groombook/db to dist/ before the runtime stage, and copying only compiled JS instead of raw TypeScript source.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit was merged in pull request #38.
This commit is contained in:
groombook-paperclip[bot]
2026-03-18 01:34:26 +00:00
committed by GitHub
parent 227a687e97
commit 817a76f8d5
4 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -2,9 +2,10 @@
"name": "@groombook/types",
"version": "0.0.1",
"private": true,
"main": "./src/index.ts",
"main": "./dist/index.js",
"types": "./src/index.ts",
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
+2 -1
View File
@@ -5,7 +5,8 @@
"moduleResolution": "NodeNext",
"strict": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true
"skipLibCheck": true,
"outDir": "./dist"
},
"include": ["src"]
}