Skip to content

Commit 604ca2f

Browse files
Boshenclaude
andcommitted
fix: use tsconfig changes instead of source workarounds
- pluginutils: add "dom" to tsconfig lib for URLSearchParams - docs: add allowImportingTsExtensions + noEmit to tsconfig Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 45172b0 commit 604ca2f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-i
66
import llmstxt from 'vitepress-plugin-llms';
77
import { addOgImage } from 'vitepress-plugin-og';
88
import { graphvizMarkdownPlugin } from 'vitepress-plugin-graphviz';
9-
import { createHooksGraphProcessor } from './markdown-hooks-graph';
9+
import { createHooksGraphProcessor } from './markdown-hooks-graph.ts';
1010

1111
const sidebarForUserGuide: DefaultTheme.SidebarItem[] = [
1212
{

docs/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"strict": true,
1111
"noUnusedLocals": true,
1212
"skipLibCheck": true,
13-
"jsx": "preserve"
13+
"jsx": "preserve",
14+
"noEmit": true,
15+
"allowImportingTsExtensions": true
1416
},
1517
"include": ["src/**/*", ".vitepress/**/*"]
1618
}

packages/pluginutils/src/filter/composable-filters.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/// <reference lib="dom" />
21
import { cleanUrl, extractQueryWithoutFragment } from '../utils.ts';
32

43
type StringOrRegExp = string | RegExp;

packages/pluginutils/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"declaration": true,
2525
"isolatedDeclarations": true,
2626

27-
/* If your code doesn't run in the DOM: */
28-
"lib": ["es2022"]
27+
"lib": ["es2022", "dom"]
2928
},
3029
"include": ["src"],
3130
"exclude": ["src/**/*.test.ts", "src/**/*.test-d.ts"]

0 commit comments

Comments
 (0)