Default Build Script Order Breaks CI/CD When routeTree.gen.ts is Gitignored #436
danielo515
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The default template generated by
npm create @tanstack/start@latestsets the typechek script to just execute tsc. This causes failures in CI/CD pipelines when routeTree.gen.ts is gitignored because the file is generated by the Vite plugin during the build, but type checking often runs before or as part of the pipeline.Since the TypeScript compiler runs before the Vite build in many setups, it fails due to the missing generated file, even though the Vite plugin would create it moments later.
Expected Behavior: The starter template should either:
vite build && tsc --noEmitto ensure generation happens first, orThis would make the default template more robust for CI/CD environments without requiring manual configuration.
typecheck:ciand avise to use it in CIBeta Was this translation helpful? Give feedback.
All reactions