Skip to content

fix: ignoredRouteFiles should also ignore type generation#596

Merged
zetavg merged 3 commits intomainfrom
fix-route-types-250804
Aug 6, 2025
Merged

fix: ignoredRouteFiles should also ignore type generation#596
zetavg merged 3 commits intomainfrom
fix-route-types-250804

Conversation

@zetavg
Copy link
Collaborator

@zetavg zetavg commented Aug 5, 2025

No description provided.

@railway-app
Copy link

railway-app bot commented Aug 5, 2025

This PR was not deployed automatically as @zetavg does not have access to the Railway project.

In order to get automatic PR deploys, please add @zetavg to your team on Railway.

@zetavg zetavg marked this pull request as ready for review August 5, 2025 16:23
@zetavg zetavg requested a review from Copilot August 5, 2025 16:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the ignoredRouteFiles configuration was not being respected during TypeScript type generation for file system routes. The change ensures that ignored route files are also excluded when generating route types.

  • Modified the generateRouteTypes function to accept and use the ignoredRouteFiles parameter
  • Updated plugin calls to pass the ignored route files configuration to the type generation function
  • Added filtering logic using micromatch to exclude ignored routes from type generation

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/one/src/vite/plugins/generateFileSystemRouteTypesPlugin.tsx Updated plugin to pass ignoredRouteFiles to generateRouteTypes function
packages/one/src/typed-routes/generateRouteTypes.ts Added ignoredRouteFiles parameter and filtering logic using micromatch
tests/CLAUDE.md Added reference to test instructions
CLAUDE.md Added reference to general instructions
.github/instructions/tests.instructions.md Added documentation for tests directory structure
.github/instructions/general.instructions.md Added project overview and monorepo structure documentation
.github/copilot-instructions.md Added reference to general instructions

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zetavg zetavg added this pull request to the merge queue Aug 6, 2025
Merged via the queue into main with commit 895fbb9 Aug 6, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants