Skip to content

Commit 95b85da

Browse files
committed
chore(repo): upgrade TypeScript to 6.0
Three TS 6 defaults/deprecations land on this repo; all handled: - tsup's dts worker injects baseUrl into the loaded tsconfig, which TS 6 rejects with TS5101 — the exact breakage that motivated the ^5.9.3 workspace pin. Waived via ignoreDeprecations: "6.0" in tsconfig.base.json (baseUrl still functions across 6.x; the waiver dies with tsup-based dts generation before TS 7). - noUncheckedSideEffectImports (now default) rejects the story files' stylesheet imports — added a '*.css' ambient next to the existing '*.scss' shim. - The workspace pin stays, retargeted at ^6.0.3: TS 7 ships without the programmatic JS API (7.1) that typescript-eslint and tsup both require, so autoInstallPeers must not resolve it. typescript-eslint 8.x supports TS <6.1.0; full preflight green.
1 parent c09116f commit 95b85da

5 files changed

Lines changed: 94 additions & 82 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"sass": "^1.101.0",
6565
"storybook": "^10.4.6",
6666
"tsup": "^8.5.1",
67-
"typescript": "^5.9.3",
67+
"typescript": "^6.0.3",
6868
"typescript-eslint": "^8.58.2",
6969
"vitest": "^4.1.10"
7070
}
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/**
2-
* Ambient declaration for style imports. The styles are compiled and bundled
3-
* by the tsup build (esbuild-sass-plugin); for `tsc --noEmit` the import only
4-
* needs to resolve.
2+
* Ambient declarations for style imports. The styles are compiled and bundled
3+
* by the tsup build (esbuild-sass-plugin) or served by vite (storybook); for
4+
* `tsc --noEmit` the import only needs to resolve. `*.css` exists for the
5+
* storybook program (tsconfig.storybook.json includes this typings dir):
6+
* TypeScript 6's `noUncheckedSideEffectImports` default rejects side-effect
7+
* imports it cannot resolve, and story files import stylesheet packages.
58
*/
69
declare module '*.scss';
10+
declare module '*.css';

0 commit comments

Comments
 (0)