Worker was crashing with MODULE_NOT_FOUND for @codeboard/database because the package only had TypeScript source and no build step. Added tsconfig.json, changed build script to compile TS, and updated Dockerfile to copy compiled dist into worker stage.
9 lines
136 B
JSON
9 lines
136 B
JSON
{
|
|
"extends": "../../tsconfig.json",
|
|
"compilerOptions": {
|
|
"outDir": "./dist",
|
|
"rootDir": "./src"
|
|
},
|
|
"include": ["src"]
|
|
}
|