Skip to content

chore: upgrade templates to TypeScript 6#245

Draft
NathanWalker wants to merge 1 commit into
mainfrom
chore/typescript-6
Draft

chore: upgrade templates to TypeScript 6#245
NathanWalker wants to merge 1 commit into
mainfrom
chore/typescript-6

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

Bumps typescript to ~6.0.0 (resolves 6.0.3) across all 23 templates.

  • 6 Angular templates additionally bumped to @angular/* ~22.0.0, @nativescript/angular ^21.0.0, and zone.js ~0.15.0 — Angular 18/20 peer-reject TypeScript 6.
  • tsconfig.json updated across all 23 templates: removed deprecated baseUrl, relativized path mappings, added skipLibCheck where needed, widened typeRoots.
  • Verified typechecking cleanly under TS6: blank-ts, blank-react, blank-solid-ts, master-detail-ts, tab-navigation-ts, blank-vue-vision, hello-world-ng, master-detail-ng, blank-svelte, tab-navigation-vue.
  • Not independently re-verified (same edits applied, disk-time tradeoff during upgrade): blank-ng, tab-navigation-ng, drawer-navigation-ng, hello-world-ng-vision, and the remaining vue/svelte vision variants.

Known caveat: @nativescript/angular has no stable Angular-22 release yet (only 22.0.0-dev.0); this PR uses stable ^21.0.0 instead, which installs and typechecks cleanly. Revisit once 22.x stable ships.

Companion PR in NativeScript/stackblitz-templates upgrades that repo's templates to TypeScript 6 as well.


View session information ↗

- Bump typescript to ~6.0.0 in all 23 TS-using templates
- Remove deprecated baseUrl from tsconfigs (TS5101 hard error in TS 6);
  make paths mappings relative for identical resolution
- Add explicit "strict": false where templates relied on the TS <=5.x
  default (TS 6 defaults strict on)
- Add skipLibCheck to react templates; drop no-op downlevelIteration
- Widen typeRoots and add @types/node where types: ["node"] could not
  resolve (pre-existing TS2688)
- Upgrade Angular templates to @angular ~22.0.0, @nativescript/angular
  ^21.0.0, zone.js ~0.15.0 (Angular 22 is the only line whose peer
  range allows TypeScript 6)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3f8561c0-d940-469d-ba0c-82f064c0be8c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/typescript-6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant