Skip to content

fix(shared): restore ESM declarations#8523

Open
jacekradko wants to merge 1 commit into
ds.chore/ts-6.0-rolldown-updatefrom
jacek/pr-8207-shared-dmts-fix
Open

fix(shared): restore ESM declarations#8523
jacekradko wants to merge 1 commit into
ds.chore/ts-6.0-rolldown-updatefrom
jacek/pr-8207-shared-dmts-fix

Conversation

@jacekradko
Copy link
Copy Markdown
Member

Summary

  • restore .d.mts declarations for @clerk/shared ESM export conditions
  • add a declaration-copy step that rewrites relative declaration imports for Node-style ESM resolution
  • add a changeset for @clerk/shared

Verification

  • git diff --check
  • env NPM_CONFIG_CACHE=/private/tmp/codex-npm-cache-pr8207 pnpm --filter @clerk/shared lint:attw
  • node -e "console.log(typeof require('@clerk/shared/react').ClerkInstanceContext)"
  • node -e "import('@clerk/shared/react').then(m => console.log(typeof m.ClerkInstanceContext))"

@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

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

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Error Error May 12, 2026 0:18am

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 12, 2026

🦋 Changeset detected

Latest commit: f96056c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@clerk/shared Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/chrome-extension Patch
@clerk/clerk-js Patch
@clerk/expo-passkeys Patch
@clerk/expo Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/hono Patch
@clerk/localizations Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/react Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/ui Patch
@clerk/vue Patch

Not sure what this means? Click here to learn what changesets are.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant