add @lib and @api paths for cleaner imports

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-25 00:43:35 +01:00
1 parent 737a8897ba
commit f4d889e87b
10 files changed
+232 -38

No files matched your search

+5
View File
@@ -6,6 +6,7 @@
"compilerOptions": {
"strictNullChecks": true,
"baseUrl": ".",
"target": "es5",
"lib": [
"dom",
@@ -18,6 +19,10 @@
"module": "esnext",
"resolveJsonModule": true,
"jsx": "preserve",
"paths": {
"@api/*": ["pages/api/*"],
"@lib/*": ["lib/*"]
},
},
"include": [
"./**/*.ts"