forked from iflastandards/standards-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
76 lines (72 loc) · 2.58 KB
/
tsconfig.json
File metadata and controls
76 lines (72 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "node", // Changed from nodenext
"lib": [
"ES2022",
"DOM",
"DOM.Iterable"
],
// --- JSX ---
"jsx": "react-jsx", // For React 17+ (including React 19) new JSX transform
"jsxImportSource": "react", // Often default but good to be explicit
// --- Emit ---
"noEmit": true, // Docusaurus (via Webpack/Babel) handles the build output
// --- Interoperability ---
"esModuleInterop": true, // Allows default imports from commonjs modules
"allowSyntheticDefaultImports": true, // Works with esModuleInterop
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./",
"types": [
"node",
"react",
"docusaurus-plugin-sass",
"@docusaurus/theme-classic",
"@docusaurus/types"
],
//paths and aliases
"baseUrl": ".",
"paths": {
"@site/plugins/*": ["./plugins/*"],
"@site/*": ["./*"], // Allows @site/src/... to resolve from the project root
// "@docusaurus/*": ["./node_modules/@docusaurus/core/lib/client/exports/*"], // Commented out
"@theme/*": [
"./src/theme/*", // For your user-swizzled components in src/theme
"./.docusaurus/theme-fallback/*" // For default theme components or unswizzled components
],
"@ifla/theme": ["./packages/theme/src/index.ts"],
"@ifla/theme/*": ["./packages/theme/src/*"],
"@ifla/theme/components": ["./packages/theme/src/components/index.ts"],
"@ifla/theme/components/*": ["./packages/theme/src/components/*"],
"@ifla/theme/config": ["./packages/theme/src/config/index.ts"],
"@ifla/theme/config/*": ["./packages/theme/src/config/*"],
"@ifla/theme/utils": ["./packages/theme/src/utils/index.ts"],
"@ifla/theme/utils/*": ["./packages/theme/src/utils/*"],
"@ifla/theme/styles": ["./packages/theme/src/styles/index.css"]
}
},
"include": [
"src", // Your main source code (components, pages, MDX, etc.)
".docusaurus", // Docusaurus generated files, including type declarations
"packages", // Include theme package
"portal/src",
"standards/*/src",
"**/*.ts",
"**/*.tsx",
"*.d.ts", // Global type declaration files (like the one for global MDX components)
"plugins" // If you have custom local plugins with TypeScript
],
"exclude": [
"node_modules",
"build",
"coverage"
]
}