From 293302d77c9cbae4e08a3e96f2850a4493419c63 Mon Sep 17 00:00:00 2001 From: Tushar Kant Naik <61114548+tknatwork@users.noreply.github.com> Date: Wed, 10 Jun 2026 23:36:42 +0530 Subject: [PATCH] =?UTF-8?q?chore(deps):=20TypeScript=206=20migration=20(PA?= =?UTF-8?q?RKED=20=E2=80=94=20blocked=20on=20@figma/plugin-typings)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- variables-styles-extractor/package.json | 2 +- variables-styles-extractor/pnpm-lock.yaml | 10 +++++----- variables-styles-extractor/tsconfig.json | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/variables-styles-extractor/package.json b/variables-styles-extractor/package.json index e618b3b..6b96702 100644 --- a/variables-styles-extractor/package.json +++ b/variables-styles-extractor/package.json @@ -11,7 +11,7 @@ "devDependencies": { "@figma/plugin-typings": "^1.128.0", "terser": "^5.48.0", - "typescript": "^5.9.0" + "typescript": "^6.0.3" }, "keywords": [ "figma", diff --git a/variables-styles-extractor/pnpm-lock.yaml b/variables-styles-extractor/pnpm-lock.yaml index c3f2e23..9302af4 100644 --- a/variables-styles-extractor/pnpm-lock.yaml +++ b/variables-styles-extractor/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^5.48.0 version: 5.48.0 typescript: - specifier: ^5.9.0 - version: 5.9.3 + specifier: ^6.0.3 + version: 6.0.3 packages: @@ -62,8 +62,8 @@ packages: engines: {node: '>=10'} hasBin: true - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} engines: {node: '>=14.17'} hasBin: true @@ -110,4 +110,4 @@ snapshots: commander: 2.20.3 source-map-support: 0.5.21 - typescript@5.9.3: {} + typescript@6.0.3: {} diff --git a/variables-styles-extractor/tsconfig.json b/variables-styles-extractor/tsconfig.json index 6fe31ef..2b7269f 100644 --- a/variables-styles-extractor/tsconfig.json +++ b/variables-styles-extractor/tsconfig.json @@ -16,6 +16,7 @@ "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, + "rootDir": "./src", "outDir": ".", "typeRoots": ["./node_modules/@figma"] },