Skip to content

Commit

Permalink
fix: make router-generator a peer dep of react-router (#2278)
Browse files Browse the repository at this point in the history
type tests of generated code must be implemented in a separate package to break up this circular dependency
  • Loading branch information
schiller-manuel authored Sep 6, 2024
1 parent 5fa21ad commit ef95a05
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 2,793 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ coverage
*.tgz
.wrangler

# tests
packages/router-generator/tests/**/*.gen.ts

# misc
.DS_Store
.env
Expand Down
8 changes: 7 additions & 1 deletion packages/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
"react-dom": ">=18",
"@tanstack/router-generator": "workspace:*"
},
"peerDependenciesMeta": {
"@tanstack/react-router": {
"optional": true
}
}
}
3 changes: 0 additions & 3 deletions packages/router-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,5 @@
"tsx": "^4.19.0",
"prettier": "^3.3.3",
"zod": "^3.23.8"
},
"devDependencies": {
"@tanstack/react-router": "^1.53.1"
}
}

This file was deleted.

Loading

0 comments on commit ef95a05

Please sign in to comment.