Drops the Vite SSR build and tsx: the worker now compiles with `tsc -p tsconfig.build.json` to dist/ and runs as `node dist/src/index.js`. Boot follows luzzle's openworkflow shape — load config, openDb + runMigrations, set the worker context, initOpenWorkflow, registerWorkflows, newWorker().start(), health server, graceful SIGTERM/SIGINT stop. - tsconfig.build.json emits dist/src (excludes tests/fixtures, no .d.ts); tsconfig.json stays noEmit for check/editor. vite.config.ts is vitest-only. - src relative imports gain .js extensions; new .gitignore for dist/. - services/context.ts (+ test): get/setWorkerContext singleton; db typed via ReturnType<typeof openDb> (no direct kysely dep). - delete services/queue.ts (call initOpenWorkflow directly); add empty workflows/registerWorkflows() until send-booking-email lands. - remove tsx; README reflects the tsc toolchain. Verified: build/check/lint/test green; `node dist/src/index.js` boots against a temp config — migrates the app DB, starts the worker, serves /health, and shuts down cleanly — creating both when.sqlite and openworkflow.sqlite.
5 lines
37 B
Plaintext
5 lines
37 B
Plaintext
dist/
|
|
build/
|
|
coverage/
|
|
*.tsbuildinfo
|