Files
netris-nestri/package.json
Wanjohi 46c3a67d4d fix(deploy): make bun run dev:server start and reach its settings
Two defects, both found by running it. Neither affects the container path,
which is why the images passed: they run the same entrypoints from the
repository root, and that turns out to be the load-bearing detail.

**The issuer would not start at all.** `apps/auth/tsconfig.json` named
React as the JSX runtime — left over from an earlier scaffold; there is no
React anywhere in this repository. It only bit when something transpiled
from that directory, and then the process died resolving
`react/jsx-dev-runtime` from a sign-in screen in `packages/auth` before it
bound a port. The package holding those components already said `hono/jsx`,
and so did the root; this is the third place agreeing with them.

**Neither process could see `.env`.** They ran with the working directory
set to their own app, so the environment file the repository documents —
the one at the root — was not the one they were offered. The issuer then
correctly refused to send a sign-in code rather than logging one, which is
the right behaviour and an opaque way to discover a path problem. Both now
run from the root, which is also exactly what the images run.
2026-09-05 16:58:12 +03:00

40 lines
1.5 KiB
JSON

{
"name": "nestri",
"private": true,
"license": "Apache-2.0",
"workspaces": {
"packages": [
"apps/*",
"packages/*"
],
"catalog": {
"@cloudflare/workers-types": "^5.20260722.1",
"@tsconfig/node22": "^22.0.5",
"@types/bun": "latest",
"@types/node": "^26.1.1",
"hono": "^4.12.31",
"typescript": "^7.0.1-rc",
"zod": "^4.4.3"
}
},
"type": "module",
"scripts": {
"dev": "wrangler dev -c apps/auth/wrangler.jsonc & issuer=$!; wrangler dev -c apps/api/wrangler.jsonc & api=$!; trap 'kill $issuer $api 2>/dev/null' EXIT INT TERM; while kill -0 $issuer 2>/dev/null && kill -0 $api 2>/dev/null; do sleep 1; done",
"dev:server": "bun run apps/auth/src/server.ts & issuer=$!; bun run apps/api/app/server.ts & api=$!; trap 'kill $issuer $api 2>/dev/null' EXIT INT TERM; while kill -0 $issuer 2>/dev/null && kill -0 $api 2>/dev/null; do sleep 1; done",
"dev:docker": "docker compose up --build",
"db:migrate": "bun run --cwd packages/core db:migrate",
"db:push": "bun run --cwd packages/core db:push",
"test": "test",
"deploy:sandbox": "wrangler deploy -c apps/auth/wrangler.jsonc -e sandbox && wrangler deploy -c apps/api/wrangler.jsonc -e sandbox",
"deploy:production": "wrangler deploy -c apps/auth/wrangler.jsonc -e production && wrangler deploy -c apps/api/wrangler.jsonc -e production"
},
"devDependencies": {
"oxfmt": "^0.61.0",
"oxlint": "^1.76.0",
"wrangler": "^4.45.0"
},
"peerDependencies": {
"typescript": "catalog:"
}
}