Skip to content

Commit b17182e

Browse files
committed
fix(tsconfig): replace baseUrl with paths for TypeScript 7 compatibility
1 parent 2658011 commit b17182e

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

‎tsconfig.json‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
{
2-
"extends": "@docusaurus/tsconfig",
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Docusaurus",
34
"compilerOptions": {
4-
"baseUrl": "."
5+
"allowJs": true,
6+
"esModuleInterop": true,
7+
"jsx": "preserve",
8+
"target": "ES2022",
9+
"lib": ["ES2022", "DOM"],
10+
"moduleResolution": "bundler",
11+
"module": "esnext",
12+
"noEmit": true,
13+
"paths": {
14+
"@site/*": ["./*"],
15+
"*": ["./*"]
16+
},
17+
"skipLibCheck": true
518
},
619
"include": ["src/", "docusaurus.config.ts", "sidebars.ts"]
720
}

0 commit comments

Comments
 (0)