From 57ff186f91a0024cf04d4e228ccea3538e6d9976 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 29 May 2024 14:29:47 +0200 Subject: [PATCH] build: add @shared alias pointing to the shared directory --- backend/tsconfig.json | 5 ++++- frontend/tsconfig.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/tsconfig.json b/backend/tsconfig.json index 33a242ea8..37bc8729f 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -17,7 +17,10 @@ "noImplicitReturns": true, "noPropertyAccessFromIndexSignature": true, "noFallthroughCasesInSwitch": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "paths": { + "@shared/*": ["../shared-types/*"] + } }, "ts-node": { "files": true diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 578e36c5a..a0b24bb8f 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -31,7 +31,10 @@ "noPropertyAccessFromIndexSignature": true, "allowUnusedLabels": false, "allowUnreachableCode": false, - "skipLibCheck": false + "skipLibCheck": false, + "paths": { + "@shared/*": ["../shared-types/*"] + } }, "include": ["./src/**/*.ts", "../shared-types/**/*.d.ts"], "exclude": ["node_modules", "build", "setup-tests.ts", "**/*.spec.ts"]