Skip to content

Commit c723f03

Browse files
authored
Add support for absolute imports in the TS template (#4)
1 parent 9412a18 commit c723f03

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

templates/typescript/tsconfig.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"strict": true,
@@ -17,14 +13,12 @@
1713
"resolveJsonModule": true,
1814
"isolatedModules": true,
1915
"jsx": "preserve",
20-
"incremental": true
16+
"incremental": true,
17+
"baseUrl": ".",
18+
"paths": {
19+
"@/*": ["*"]
20+
}
2121
},
22-
"include": [
23-
"next-env.d.ts",
24-
"**/*.ts",
25-
"**/*.tsx"
26-
],
27-
"exclude": [
28-
"node_modules"
29-
]
22+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
23+
"exclude": ["node_modules"]
3024
}

0 commit comments

Comments
 (0)