Skip to content

chore: upgrade typescript to ^6.0.3 - #2

Merged
zhawtof merged 1 commit into
mainfrom
claude/determined-swanson-ca0ace
May 15, 2026
Merged

chore: upgrade typescript to ^6.0.3#2
zhawtof merged 1 commit into
mainfrom
claude/determined-swanson-ca0ace

Conversation

@zhawtof

@zhawtof zhawtof commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bumps typescript from ^5.9.0^6.0.3 in both the package and the local demo.
  • Removes the deprecated baseUrl from tsconfig.json and drops the unused ~/* path alias along with it.
  • Adds src/globals.d.ts declaring *.css modules so the slack-blocks-to-jsx/dist/style.css side-effect import still typechecks under TS 6's stricter rules.
  • Sets "ignoreDeprecations": "6.0" to silence the baseUrl deprecation that tsup's internal DTS generator still triggers (tsup injects baseUrl itself; this is the TypeScript-recommended migration knob until tsup updates).

Why

TS 6.0 deprecates baseUrl and tightens type resolution for side-effect imports of files without ambient declarations. Without these adjustments, tsc --noEmit and tsup's DTS build both fail.

Test plan

  • pnpm typecheck passes
  • pnpm test — 12/12 pass
  • pnpm build — ESM + CJS + DTS all succeed
  • pnpm lint clean

🤖 Generated with Claude Code

TypeScript 6 deprecates baseUrl and tightened side-effect CSS imports, so
this also drops the unused ~/* path alias, adds a *.css module declaration,
and sets ignoreDeprecations: "6.0" to silence the baseUrl warning tsup's
internal DTS build still triggers.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@zhawtof
zhawtof merged commit 133ee2f into main May 15, 2026
5 checks passed
@zhawtof
zhawtof deleted the claude/determined-swanson-ca0ace branch May 20, 2026 05:26
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