Skip to content

Fix release declaration build with TypeScript 6#8

Merged
kentcdodds merged 3 commits into
mainfrom
cursor/fix-typescript-release-build-3d95
May 13, 2026
Merged

Fix release declaration build with TypeScript 6#8
kentcdodds merged 3 commits into
mainfrom
cursor/fix-typescript-release-build-3d95

Conversation

@kentcdodds
Copy link
Copy Markdown
Member

@kentcdodds kentcdodds commented May 13, 2026

Summary

  • remove the deprecated --downlevelIteration flag from the release declaration build command
  • add inline JSDoc typing for the shared globalThis.__remember_epic_web map so TypeScript 6 can emit declarations
  • keep the generated public declaration surface limited to the existing remember / forget exports

Testing

  • npx -p typescript tsc --declaration --emitDeclarationOnly --allowJs --checkJs --module nodenext --moduleResolution nodenext --target es2022 --outDir . index.js
  • npx bun test
  • GitHub Actions 📦 Build release artifact passed on branch push
  • GitHub Actions 🧪 Test passed on both branch push and PR runs
Open in Web Open in Cursor 

cursoragent and others added 3 commits May 13, 2026 20:58
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kentcdodds kentcdodds marked this pull request as ready for review May 13, 2026 21:00
@kentcdodds kentcdodds merged commit 2ed8d64 into main May 13, 2026
7 checks passed
@kentcdodds kentcdodds deleted the cursor/fix-typescript-release-build-3d95 branch May 13, 2026 21:01
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.

2 participants