Commit beded4b
committed
Fix TypeScript config for Storybook 10.x compatibility
This commit updates TypeScript compiler options in Storybook-related
configuration files to support Storybook 10.x's module resolution
requirements.
Problem:
Storybook 10.x changed its package structure to use subpath exports
(e.g., 'storybook/manager-api', 'storybook/theming'). These subpath
exports require modern TypeScript module resolution strategies to work
correctly. The legacy 'node' module resolution strategy doesn't
understand package.json 'exports' fields, causing TypeScript to fail
resolving Storybook imports.
Changes:
- Changed moduleResolution from 'node' to 'bundler' in both
.storybook/tsconfig.json and src/stories/tsconfig.json
- Added 'allowImportingTsExtensions: true' to support TypeScript
extension imports in bundler mode
- Added 'noEmit: true' since these configs are for type-checking only,
not compilation
This fixes the underlying module resolution issues that were causing
ESLint's TypeScript parser to fail during the lint-ci step.
Files modified:
- extensions/ql-vscode/.storybook/tsconfig.json
- extensions/ql-vscode/src/stories/tsconfig.json1 parent 51fe5c3 commit beded4b
File tree
2 files changed
+8
-4
lines changed- extensions/ql-vscode
- .storybook
- src/stories
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
0 commit comments