Skip to content

Conversation

bgub
Copy link
Contributor

@bgub bgub commented Aug 1, 2025

Add next typegen CLI command for fast type generation

Adds a new next typegen command that generates TypeScript definitions for routes, pages, and layouts without running a full build, enabling faster type checking in CI and development workflows.

New command:

next typegen [directory]

Implementation:

  • Extracts type generation logic from packages/next/src/build/index.ts into standalone CLI command
  • Reuses existing route manifest creation and file writing utilities
  • Maintains all functionality from build-time type generation
  • Proper CLI integration with help text and error handling

Copy link
Contributor Author

bgub commented Aug 1, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@bgub bgub changed the base branch from advanced-typegen to graphite-base/82261 August 1, 2025 09:01
@bgub bgub force-pushed the next-typegen-command branch from 2b00c8c to faf8e3a Compare August 1, 2025 09:01
@bgub bgub force-pushed the graphite-base/82261 branch from b9d89c5 to 582e6c0 Compare August 1, 2025 09:01
@ijjk ijjk added the Rspack label Aug 1, 2025
@bgub bgub changed the base branch from graphite-base/82261 to feat/typed-routes-new August 1, 2025 09:02
@bgub bgub marked this pull request as ready for review August 1, 2025 09:04
@bgub bgub merged commit 3dac14c into feat/typed-routes-new Aug 1, 2025
283 of 284 checks passed
@bgub bgub deleted the next-typegen-command branch August 1, 2025 09:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants