chore(nuxt): Support TS6 and migrate to tsdown#8192
chore(nuxt): Support TS6 and migrate to tsdown#8192wobsoriano merged 2 commits intods.chore/ts-6.0from
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
| 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, { |
There was a problem hiding this comment.
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'], |
There was a problem hiding this comment.
This is expected to be resolved by Nuxt in an actual app context. Bundling fails without adding nuxt/app to external list
Description
This PR migrates the Nuxt SDK to tsdown and adds some TypeScript 6 compatibility fixes
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change