Skip to content

Commit 649716b

Browse files
committed
make alias ~/* for web/*
1 parent 5737ddd commit 649716b

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

web/tsconfig.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"compilerOptions": {
33
"target": "ES2020",
44
"useDefineForClassFields": true,
5-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
5+
"lib": [
6+
"ES2020",
7+
"DOM",
8+
"DOM.Iterable"
9+
],
610
"module": "ESNext",
711
"esModuleInterop": true,
812
"skipLibCheck": true,
@@ -23,7 +27,13 @@
2327
{
2428
"name": "next"
2529
}
26-
]
30+
],
31+
"baseUrl": ".",
32+
"paths": {
33+
"~/*": [
34+
"./*"
35+
]
36+
}
2737
},
2838
"include": [
2939
"./src",
@@ -34,5 +44,7 @@
3444
"app",
3545
"components"
3646
],
37-
"exclude": ["./node_modules"]
38-
}
47+
"exclude": [
48+
"./node_modules"
49+
]
50+
}

0 commit comments

Comments
 (0)