From 4514fd261f048cf623c8e23bf41c5c6599c9c86d Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 12 Dec 2021 19:29:40 +0100 Subject: build: configure typescript module aliases --- tsconfig.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tsconfig.json') 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"] -- cgit v1.2.3