Skip to content

fix(cli): Align init scaffold with example Nitro app#749

Merged
dcramer merged 1 commit into
mainfrom
codex/fix-junior-init-nitro-scaffold
Jul 3, 2026
Merged

fix(cli): Align init scaffold with example Nitro app#749
dcramer merged 1 commit into
mainfrom
codex/fix-junior-init-nitro-scaffold

Conversation

@dcramer

@dcramer dcramer commented Jul 3, 2026

Copy link
Copy Markdown
Member

junior init now emits the same core Nitro app shape that apps/example exercises: direct nitro dev/nitro build scripts, explicit plugins.ts wiring into createApp({ plugins }), current Nitro-related dependency versions, and tsconfig.json. It no longer generates the stale Vite scaffold or top-level /api/internal/agent/continue.ts source, and the generated env/CI templates include the database variables and install flow a fresh app actually needs.

The init unit test now uses apps/example as a canary for core scripts, dependencies, vercel.json, Nitro config, server wiring, and TypeScript config so future drift fails deterministically. The setup docs and README snippets now match that generated shape.

Validation:

  • pnpm --filter @sentry/junior exec vitest run tests/unit/cli/init-cli.test.ts
  • pnpm docs:check
  • Garfield review pass

Generate new Junior apps with the direct Nitro CLI shape used by the example app, including explicit plugin wiring, current Nitro-related dependencies, and TypeScript config. Drop the stale Vite scaffold and top-level Vercel API queue source so the generated app follows juniorNitro() deployment wiring.

Add parity coverage against apps/example for core scaffold scripts, dependencies, deployment config, server wiring, Nitro config, and TypeScript config so future example changes trip a deterministic test.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jul 3, 2026 6:56am

Request Review

@dcramer dcramer marked this pull request as ready for review July 3, 2026 06:56
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 3, 2026
@dcramer dcramer merged commit 7aa4b55 into main Jul 3, 2026
20 checks passed
@dcramer dcramer deleted the codex/fix-junior-init-nitro-scaffold branch July 3, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant