forked from cworld1/astro-theme-pure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
28 lines (28 loc) · 840 Bytes
/
tsconfig.json
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
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"compilerOptions": {
// Basic
"allowJs": true,
// Building for a library
"declaration": true,
// Code runs in the DOM
"lib": ["es2022", "dom", "dom.iterable"],
// Others
"baseUrl": ".",
"strictNullChecks": true,
// Paths
"paths": {
"@/assets/*": ["src/assets/*"],
"@/components/*": ["src/components/*"],
"@/layouts/*": ["src/layouts/*"],
"@/utils": ["src/utils/index.ts"],
"@/utils/*": ["src/utils/*"],
"@/plugins/*": ["src/plugins/*"],
"@/pages/*": ["src/pages/*"],
"@/types": ["src/types/index.ts"],
"@/site-config": ["src/site.config.ts"]
}
},
"exclude": ["node_modules", "**/node_modules/*", ".vscode", "dist", "public/scripts/*", "test/*"]
}