Skip to content

chore(nuxt): Support TS6 and migrate to tsdown#8192

Merged
wobsoriano merged 2 commits intods.chore/ts-6.0from
rob/nuxt-typescript-6
Mar 27, 2026
Merged

chore(nuxt): Support TS6 and migrate to tsdown#8192
wobsoriano merged 2 commits intods.chore/ts-6.0from
rob/nuxt-typescript-6

Conversation

@wobsoriano
Copy link
Copy Markdown
Member

Description

This PR migrates the Nuxt SDK to tsdown and adds some TypeScript 6 compatibility fixes

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
clerk-js-sandbox Skipped Skipped Mar 27, 2026 8:56pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 27, 2026

⚠️ No Changeset found

Latest commit: 0d60103

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the nuxt label Mar 27, 2026
Comment on lines +60 to +66
export const UserProfile: typeof BaseUserProfile = Object.assign(_UserProfile, {
Page: BaseUserProfile.Page,
Link: BaseUserProfile.Link,
});

const _OrganizationProfile = wrapComponentWithRouting(BaseOrganizationProfile, 'OrganizationProfile');
export const OrganizationProfile = Object.assign(_OrganizationProfile, {
export const OrganizationProfile: typeof BaseOrganizationProfile = Object.assign(_OrganizationProfile, {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript 6 started failing declaration generation here because the inferred type of the wrapped UserProfile and OrganizationProfile exports was not portable. Fixed by explicitly annotating

PACKAGE_VERSION: `"${pkgJson.version}"`,
},
external: ['#imports'],
external: ['#imports', 'nuxt/app'],
Copy link
Copy Markdown
Member Author

@wobsoriano wobsoriano Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is expected to be resolved by Nuxt in an actual app context. Bundling fails without adding nuxt/app to external list

@wobsoriano wobsoriano merged commit 81001cb into ds.chore/ts-6.0 Mar 27, 2026
7 checks passed
@wobsoriano wobsoriano deleted the rob/nuxt-typescript-6 branch March 27, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants