diff --git a/apps/auth/tsconfig.json b/apps/auth/tsconfig.json index 42a311af..1ff8e766 100644 --- a/apps/auth/tsconfig.json +++ b/apps/auth/tsconfig.json @@ -4,8 +4,14 @@ "compilerOptions": { "module": "ESNext", "moduleResolution": "bundler", - "jsx": "preserve", - "jsxImportSource": "react", + // The sign-in screens are `hono/jsx`, and there is no React in this + // repository at all. Naming React here was left over from an earlier + // scaffold and only bit when something transpiled from this directory: + // `bun run serve` resolved `react/jsx-dev-runtime` from a component in + // `packages/auth` and stopped before the server bound a port. The + // package holding the components already says this; so does the root. + "jsx": "react-jsx", + "jsxImportSource": "hono/jsx", "types": ["@cloudflare/workers-types", "node", "bun"] } } diff --git a/package.json b/package.json index 53d0a6f0..860c7317 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "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 --cwd apps/auth serve & issuer=$!; bun run --cwd apps/api serve & 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",