Skip to content

chore(deps): TypeScript 6 migration — PARKED until @figma/plugin-typings is TS6-ready#25

Draft
tknatwork wants to merge 1 commit into
mainfrom
chore/typescript-6-migration
Draft

chore(deps): TypeScript 6 migration — PARKED until @figma/plugin-typings is TS6-ready#25
tknatwork wants to merge 1 commit into
mainfrom
chore/typescript-6-migration

Conversation

@tknatwork

Copy link
Copy Markdown
Owner

Draft / parked. Tracks the TypeScript 6.0 upgrade Dependabot proposed (deferred from #24). Held open until @figma/plugin-typings ships TS6 support, then finished and merged.

Already done on this branch

  • typescript ^5.9.0^6.0.3 (package.json + lockfile)
  • tsconfig.json: added explicit "rootDir": "./src" — TS6 errors TS5011 without it; output layout is unchanged (still emits ./code.js)

⛔ Blocker — do NOT merge yet

@figma/plugin-typings@1.128 is not TS6-ready. Under TS 6.0 the global Figma ambient types fail to load — pnpm build:dev reports ~218 TS2304: Cannot find name 'figma' / 'Variable' / 'VariableAlias' / 'RGBA' / … errors.

⚠️ This repo has no build CI (only CodeQL, which scans source and doesn't run the project's tsc). CodeQL will go green on this PR even though the build is broken — green here is not a signal to merge.

How to finish when typings support TS6

  1. Bump @figma/plugin-typings to the TS6-ready version on this branch
  2. pnpm install && pnpm build — confirm tsc + terser are clean
  3. Commit the rebuilt code.js, mark this PR Ready for review, merge

Until then this PR is a ready-to-go staging point for the upgrade.

🤖 Generated with Claude Code

…n-typings)

Tracking branch for the TypeScript 6.0 upgrade Dependabot proposed, held
open until @figma/plugin-typings ships TS6 support.

Done here:
- typescript ^5.9.0 -> ^6.0.3 (package.json + lockfile)
- tsconfig.json: added explicit "rootDir": "./src" (TS6 errors TS5011
  without it; output layout is unchanged — still emits ./code.js)

BLOCKER (do NOT merge until resolved):
- @figma/plugin-typings@1.128 is not TS6-ready. Under TS 6.0 the global
  Figma ambient types fail to load — `pnpm build:dev` reports ~218
  `TS2304: Cannot find name 'figma' / 'Variable' / 'VariableAlias' / …`
  errors. This repo has no build CI, so CodeQL alone will go green and
  must NOT be taken as a signal to merge.

To finish when typings support TS6:
1. bump @figma/plugin-typings to the TS6-ready version on this branch
2. `pnpm install && pnpm build` — confirm tsc + terser are clean
3. commit the rebuilt code.js, mark this PR ready, merge

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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