From 8c9350ca6dd1f8058576e9c257d5c3ce15176b07 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 15 Jul 2026 11:33:25 -0500 Subject: [PATCH 1/4] build: upgrade to TypeScript 7 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 90be1f51-4a09-4876-b773-8e5d9cf27399 --- examples/codesandbox/package.json | 2 +- examples/nextjs/package.json | 2 +- examples/theming/package.json | 2 +- package-lock.json | 449 +++++++++++++++++- package.json | 3 +- packages/canvas/package.json | 2 +- packages/doc-gen/package.json | 4 +- packages/mcp/package.json | 2 +- packages/postcss-preset-primer/package.json | 2 +- packages/react-compiler-check/package.json | 2 +- packages/react/package.json | 2 +- .../react/src/ActionList/TrailingAction.tsx | 3 +- .../rolldown-plugin-import-css/package.json | 2 +- .../package.json | 2 +- packages/styled-react/package.json | 2 +- tsconfig.base.json | 1 - 16 files changed, 444 insertions(+), 38 deletions(-) diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 747787610a7..73318ef6d67 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^6.0.2", "styled-components": "5.x", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.0.16" } } diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 497d04d7313..e65a63bf521 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -15,7 +15,7 @@ "next": "^16.2.10", "react": "^19.2.0", "react-dom": "^19.2.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "devDependencies": { "rimraf": "^5.0.5" diff --git a/examples/theming/package.json b/examples/theming/package.json index 99450a31e5c..22156bca9b0 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -16,7 +16,7 @@ "next": "^16.2.10", "react": "^19.2.0", "react-dom": "^19.2.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "devDependencies": { "rimraf": "^5.0.5" diff --git a/package-lock.json b/package-lock.json index e763e69eb71..5d109b98646 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,7 @@ "@size-limit/preset-big-lib": "11.2.0", "@types/node": "26.0.0", "@types/semver": "^7.7.1", + "@typescript/native": "npm:typescript@^7.0.2", "@vitest/browser": "^4.1.9", "@vitest/browser-playwright": "^4.1.9", "@vitest/eslint-plugin": "^1.6.20", @@ -65,7 +66,7 @@ "storybook": "^10.4.6", "stylelint": "17.4.0", "turbo": "^2.9.18", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-eslint": "^8.59.1", "vite": "^8.0.16", "vitest": "^4.1.9", @@ -89,7 +90,7 @@ "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^6.0.2", "styled-components": "5.x", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.0.16" } }, @@ -102,7 +103,7 @@ "next": "^16.2.10", "react": "^19.2.0", "react-dom": "^19.2.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "devDependencies": { "rimraf": "^5.0.5" @@ -145,7 +146,7 @@ "next": "^16.2.10", "react": "^19.2.0", "react-dom": "^19.2.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "devDependencies": { "rimraf": "^5.0.5" @@ -9798,6 +9799,396 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@typescript/native": { + "name": "typescript", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", + "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc" + }, + "engines": { + "node": ">=16.20.0" + }, + "optionalDependencies": { + "@typescript/typescript-aix-ppc64": "7.0.2", + "@typescript/typescript-darwin-arm64": "7.0.2", + "@typescript/typescript-darwin-x64": "7.0.2", + "@typescript/typescript-freebsd-arm64": "7.0.2", + "@typescript/typescript-freebsd-x64": "7.0.2", + "@typescript/typescript-linux-arm": "7.0.2", + "@typescript/typescript-linux-arm64": "7.0.2", + "@typescript/typescript-linux-loong64": "7.0.2", + "@typescript/typescript-linux-mips64el": "7.0.2", + "@typescript/typescript-linux-ppc64": "7.0.2", + "@typescript/typescript-linux-riscv64": "7.0.2", + "@typescript/typescript-linux-s390x": "7.0.2", + "@typescript/typescript-linux-x64": "7.0.2", + "@typescript/typescript-netbsd-arm64": "7.0.2", + "@typescript/typescript-netbsd-x64": "7.0.2", + "@typescript/typescript-openbsd-arm64": "7.0.2", + "@typescript/typescript-openbsd-x64": "7.0.2", + "@typescript/typescript-sunos-x64": "7.0.2", + "@typescript/typescript-win32-arm64": "7.0.2", + "@typescript/typescript-win32-x64": "7.0.2" + } + }, + "node_modules/@typescript/old": { + "name": "typescript", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, "node_modules/@valibot/to-json-schema": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/@valibot/to-json-schema/-/to-json-schema-1.7.1.tgz", @@ -14099,6 +14490,20 @@ "eslint": "^9.0.0" } }, + "node_modules/eslint-plugin-primer-react/node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/eslint-plugin-react": { "version": "7.37.5", "dev": true, @@ -25905,16 +26310,16 @@ "license": "MIT" }, "node_modules/typescript": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", - "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "name": "@typescript/typescript6", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript6/-/typescript6-6.0.2.tgz", + "integrity": "sha512-mbCddXd+jm7hfx7w2YU64/Av4/NqqeG3GoRZgxPcgoTxYjhrcfJRw9ULch71SS4G+Q3bOXFhRvPqjguN0Hyp5w==", "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" + "dependencies": { + "@typescript/old": "npm:typescript@^6" }, - "engines": { - "node": ">=14.17" + "bin": { + "tsc6": "bin/tsc6" } }, "node_modules/typescript-eslint": { @@ -27972,7 +28377,7 @@ "@primer/react": "^38.27.0", "rimraf": "^6.1.3", "rolldown": "^1.1.4", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } }, "packages/canvas/node_modules/balanced-match": { @@ -28087,7 +28492,7 @@ "@types/yargs": "^17.0.33", "prettier": "^3.4.2", "signale": "^1.4.0", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "yargs": "^18.0.0" }, "bin": { @@ -28097,7 +28502,7 @@ "rimraf": "^6.0.1", "rolldown": "^1.1.4", "rolldown-plugin-dts": "^0.26.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } }, "packages/doc-gen/node_modules/balanced-match": { @@ -28226,7 +28631,7 @@ "rimraf": "^6.0.1", "rolldown": "^1.1.4", "rolldown-plugin-dts": "^0.26.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } }, "packages/mcp/node_modules/balanced-match": { @@ -28349,7 +28754,7 @@ "postcss": "^8.4.41", "postcss-custom-properties-fallback": "^1.0.2", "postcss-mixins": "^12.1.2", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "peerDependencies": { "postcss": "^8.4.41" @@ -28463,7 +28868,7 @@ "ts-toolbelt": "9.6.0", "tsx": "4.20.3", "typed-css-modules": "^0.9.1", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-plugin-css-modules": "^5.2.0", "unist-util-find": "3.0.0", "unist-util-find-before": "4.0.0", @@ -28505,7 +28910,7 @@ }, "devDependencies": { "@primer/vitest-config": "^0.0.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } }, "packages/react-compiler-check/node_modules/@babel/code-frame": { @@ -29344,7 +29749,7 @@ "postcss": "^8.4.38", "postcss-modules": "^6.0.0", "rolldown": "^1.1.4", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "peerDependencies": { "postcss": "^8.4.38", @@ -29355,7 +29760,7 @@ "version": "0.0.0", "devDependencies": { "rolldown": "^1.1.4", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "peerDependencies": { "rolldown": "^1.1.4" @@ -29401,7 +29806,7 @@ "rolldown-plugin-dts": "^0.26.0", "rolldown-plugin-preserve-directives": "^0.0.0", "styled-components": "5.3.11", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" }, "peerDependencies": { "@primer/react": "*", diff --git a/package.json b/package.json index fcaaf5ac39b..0c0deaf5d5f 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "@size-limit/preset-big-lib": "11.2.0", "@types/node": "26.0.0", "@types/semver": "^7.7.1", + "@typescript/native": "npm:typescript@^7.0.2", "@vitest/browser": "^4.1.9", "@vitest/browser-playwright": "^4.1.9", "@vitest/eslint-plugin": "^1.6.20", @@ -94,7 +95,7 @@ "storybook": "^10.4.6", "stylelint": "17.4.0", "turbo": "^2.9.18", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-eslint": "^8.59.1", "vite": "^8.0.16", "vitest": "^4.1.9", diff --git a/packages/canvas/package.json b/packages/canvas/package.json index 240ff7f4fe2..5b8e1bd7092 100644 --- a/packages/canvas/package.json +++ b/packages/canvas/package.json @@ -26,6 +26,6 @@ "@primer/react": "^38.27.0", "rimraf": "^6.1.3", "rolldown": "^1.1.4", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } } diff --git a/packages/doc-gen/package.json b/packages/doc-gen/package.json index 29e6345c921..9840b7f944b 100644 --- a/packages/doc-gen/package.json +++ b/packages/doc-gen/package.json @@ -32,13 +32,13 @@ "@types/yargs": "^17.0.33", "prettier": "^3.4.2", "signale": "^1.4.0", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "yargs": "^18.0.0" }, "devDependencies": { "rimraf": "^6.0.1", "rolldown": "^1.1.4", "rolldown-plugin-dts": "^0.26.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } } diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 23eea22bc23..b56313703a2 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -49,6 +49,6 @@ "rimraf": "^6.0.1", "rolldown": "^1.1.4", "rolldown-plugin-dts": "^0.26.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } } diff --git a/packages/postcss-preset-primer/package.json b/packages/postcss-preset-primer/package.json index 9b0080ebd82..21cf8124a22 100644 --- a/packages/postcss-preset-primer/package.json +++ b/packages/postcss-preset-primer/package.json @@ -25,6 +25,6 @@ "postcss": "^8.4.41", "postcss-custom-properties-fallback": "^1.0.2", "postcss-mixins": "^12.1.2", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } } diff --git a/packages/react-compiler-check/package.json b/packages/react-compiler-check/package.json index 8636744b180..6706ddef4a2 100644 --- a/packages/react-compiler-check/package.json +++ b/packages/react-compiler-check/package.json @@ -15,6 +15,6 @@ }, "devDependencies": { "@primer/vitest-config": "^0.0.0", - "typescript": "^6.0.3" + "typescript": "npm:@typescript/typescript6@^6.0.2" } } diff --git a/packages/react/package.json b/packages/react/package.json index 2ab015f6430..514db59e6e0 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -178,7 +178,7 @@ "ts-toolbelt": "9.6.0", "tsx": "4.20.3", "typed-css-modules": "^0.9.1", - "typescript": "^6.0.3", + "typescript": "npm:@typescript/typescript6@^6.0.2", "typescript-plugin-css-modules": "^5.2.0", "unist-util-find": "3.0.0", "unist-util-find-before": "4.0.0", diff --git a/packages/react/src/ActionList/TrailingAction.tsx b/packages/react/src/ActionList/TrailingAction.tsx index df3d898593c..55d87f3ff53 100644 --- a/packages/react/src/ActionList/TrailingAction.tsx +++ b/packages/react/src/ActionList/TrailingAction.tsx @@ -56,14 +56,15 @@ export const TrailingAction = forwardRef( {...props} /> ) : ( - // @ts-expect-error shhh