summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-24 13:36:32 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-24 15:09:38 +0100
commit57ea3b5afcd60fb129396afb4946d9f1013fb291 (patch)
treeeedab8e8e65c73abd7560bad5a255253fcb9bbed
parent48daa6a5171602685e8b79b0e3694015c9d30d05 (diff)
build: add module alias for content directory
-rw-r--r--jest.config.ts1
-rw-r--r--tsconfig.json1
2 files changed, 2 insertions, 0 deletions
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/(.*)$': '<rootDir>/src/i18n/$1',
'^@assets/(.*)$': '<rootDir>/src/assets/$1',
'^@config/(.*)$': '<rootDir>/src/config/$1',
+ '^@content/(.*)$': '<rootDir>/src/content/$1',
'^@components/(.*)$': '<rootDir>/src/components/$1',
'^@hooks/(.*)$': '<rootDir>/src/hooks/$1',
'^@pages/(.*)$': '<rootDir>/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/*"],