Build flag --type-check-only #58266
aovens-quantifi
started this conversation in
Ideas
Replies: 2 comments
-
Looking at the code, it probably wouldn't be too difficult to create a separate cli command instead which would avoid polluting the build command. This might be a better approach but curious of people's opinions |
Beta Was this translation helpful? Give feedback.
0 replies
-
+1. This is a good idea since it allows checking if the build will fail or not beforehand. Currently, next js linting is incomplete since the types which are generated during build time may not be present when |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
My NextJS project is getting quite large and the build is taking 2+ minutes to complete in CI. In my monorepo it is one project of many and therefore this time is quite significant. Ultimately I only care about the type check as the artifacts are thrown away (this is for a PR check only). When hacking this feature in locally, I observed < 30 second type check times.
Proposal
Implement a new build flag --type-check-only (defaulted to false) which will bail the build as soon as type checking is finished
Beta Was this translation helpful? Give feedback.
All reactions