From 57ea3b5afcd60fb129396afb4946d9f1013fb291 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 24 Dec 2021 13:36:32 +0100 Subject: build: add module alias for content directory --- jest.config.ts | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/jest.config.ts b/jest.config.ts index 7376d41..5add44d 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -93,6 +93,7 @@ const config = { '^@i18n/(.*)$': '/src/i18n/$1', '^@assets/(.*)$': '/src/assets/$1', '^@config/(.*)$': '/src/config/$1', + '^@content/(.*)$': '/src/content/$1', '^@components/(.*)$': '/src/components/$1', '^@hooks/(.*)$': '/src/hooks/$1', '^@pages/(.*)$': '/src/pages/$1', diff --git a/tsconfig.json b/tsconfig.json index d5024bd..187d157 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ "@i18n/*": ["src/i18n/*"], "@assets/*": ["src/assets/*"], "@config/*": ["src/config/*"], + "@content/*": ["src/content/*"], "@components/*": ["src/components/*"], "@pages/*": ["src/pages/*"], "@services/*": ["src/services/*"], -- cgit v1.2.3