- Move all application env vars to repository-root .env (with .env.example as the committed template) and drop the per-app .env.example files. - Add @code/env subpaths (agent, convex) and consume validated exports everywhere instead of reading process.env directly. - Wire every dev/build/start script to load ../../.env via bun --env-file and point vite.config.ts envDir at the repo root.
30 lines
914 B
JSON
30 lines
914 B
JSON
{
|
|
"name": "daemon",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"module": "src/index.ts",
|
|
"scripts": {
|
|
"dev": "bun --env-file=../../.env run --watch src/index.ts",
|
|
"build": "bun --env-file=../../.env build src/index.ts --compile --outfile dist/code-daemon",
|
|
"start": "bun --env-file=../../.env ./dist/code-daemon",
|
|
"check-types": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@code/backend": "workspace:*",
|
|
"@code/env": "workspace:*",
|
|
"@code/primitives": "workspace:*",
|
|
"@effect/platform-bun": "4.0.0-beta.99",
|
|
"@rivet-dev/agentos": "^0.2.7",
|
|
"convex": "catalog:",
|
|
"effect": "4.0.0-beta.99",
|
|
"rivetkit": "0.0.0-stack-feat-rivetkit-forward-inspector-tabs-to-native-plugin-actors-qkwmksyy.d2859b0"
|
|
},
|
|
"devDependencies": {
|
|
"@code/config": "workspace:*",
|
|
"@types/bun": "latest",
|
|
"@types/node": "^22.13.14",
|
|
"typescript": "^6"
|
|
}
|
|
}
|