🎯 Changes#
The Next.js integrations (react/next-14, react/next-15, react/next-16) were never type-checked. Their next.config sets typescript.ignoreBuildErrors, and they had no test:types script. This adds one, the same way the Next.js examples type-check:
- Add a
test:types script: tsc --noEmit for next-14, and next typegen && tsc --noEmit for next-15 and next-16.
- Make
test:types depend on the project's own build with an nx target config. next build clears .next when it starts, and the tsconfig.json includes .next/types, so the two must not run at the same time.
- Declare
typescript (^6.0.3) in devDependencies, like the other integrations. Otherwise tsc resolves to the root's TypeScript 7.1 dev build.
- Change
target from ES5 to ES2017 in tsconfig.json. TypeScript 6 reports ES5 as deprecated, which stops the type check. ES2017 is the current create-next-app default.
- Update each README to say that
test:types type-checks the project and to list its pnpm nx run command.
typescript.ignoreBuildErrors stays, so next build does not repeat the type check.
The Nuxt integrations (vue/nuxt-3, vue/nuxt-4) get the same nx target config. nuxt build clears .nuxt when it starts, and nuxt typecheck reads the tsconfig files and types generated there.
Also pin typescript to 6.0.3 in angular/types-22 instead of catalog:, like types-20 (5.8.3) and types-21 (5.9.3). The other integrations don't use the catalog either.
pnpm-lock.yaml is updated with pnpm install.
✅ Checklist#
🚀 Release Impact#
Summary by CodeRabbit#
- Documentation
- Clarified build and type-check behavior for the Next.js 14, 15, and 16 integrations, including how to run type checks and which checks run in CI.
- Chores
- Added dedicated type-check commands for the Next.js integrations and configured type-check task ordering for the Next.js and Nuxt integrations.
- Updated the TypeScript compiler targets for the Next.js integrations and the TypeScript version used by the Angular types-22 integration.
coderabbitai[bot](GitHub profile, opens in a new tab) reviewed
Actionable comments posted: 1
c358fb13-994b-458f-b7d5-5621b1b93e2aReviewing files that changed from the base of the PR and between 0911673d2a6035516c11a87aa32d0da70e22b169 and 0c02657c6a8e22f0519ac2bdd4460ba07f7fe3b4.
pnpm-lock.yamlis excluded by!**/pnpm-lock.yamlintegrations/angular/types-22/package.jsonintegrations/react/next-14/README.mdintegrations/react/next-14/package.jsonintegrations/react/next-14/tsconfig.jsonintegrations/react/next-15/README.mdintegrations/react/next-15/package.jsonintegrations/react/next-15/tsconfig.jsonintegrations/react/next-16/README.mdintegrations/react/next-16/package.jsonintegrations/react/next-16/tsconfig.jsonIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.