diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-12 19:29:40 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-12 19:29:40 +0100 |
| commit | 4514fd261f048cf623c8e23bf41c5c6599c9c86d (patch) | |
| tree | 0706b9a6531318d34b9272072c1fb962f93c6c46 | |
| parent | 23f909d33d5ee58cbf093191518939fbf72c6b70 (diff) | |
build: configure typescript module aliases
| -rw-r--r-- | tsconfig.json | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tsconfig.json b/tsconfig.json index 99710e8..d5024bd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,19 @@ "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "incremental": true + "incremental": true, + "baseUrl": ".", + "paths": { + "@i18n/*": ["src/i18n/*"], + "@assets/*": ["src/assets/*"], + "@config/*": ["src/config/*"], + "@components/*": ["src/components/*"], + "@pages/*": ["src/pages/*"], + "@services/*": ["src/services/*"], + "@styles/*": ["src/styles/*"], + "@utils/*": ["src/utils/*"], + "@ts/*": ["src/ts/*"] + } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"] |
