From aa011b6b99c5bc31f4fc36f655ad5d76a8c48831 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 8 Feb 2024 12:18:27 +0100 Subject: [PATCH] build: include all shared types files instead of just one --- backend/__tests__/tsconfig.json | 8 ++++++-- backend/tsconfig.json | 4 ++-- frontend/__tests__/tsconfig.json | 8 ++++++-- frontend/tsconfig.json | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/backend/__tests__/tsconfig.json b/backend/__tests__/tsconfig.json index 205c5141c..d59fe501e 100644 --- a/backend/__tests__/tsconfig.json +++ b/backend/__tests__/tsconfig.json @@ -18,6 +18,10 @@ "ts-node": { "files": true }, - "files": ["../src/types/types.d.ts", "../../shared-types/types.d.ts"], - "include": ["./**/*.spec.ts", "./setup-tests.ts"] + "files": ["../src/types/types.d.ts"], + "include": [ + "./**/*.spec.ts", + "./setup-tests.ts", + "../../shared-types/**/*.d.ts" + ] } diff --git a/backend/tsconfig.json b/backend/tsconfig.json index 8189ff0e0..3f39693a0 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -22,8 +22,8 @@ "ts-node": { "files": true }, - "files": ["./src/types/types.d.ts", "../shared-types/types.d.ts"], - "include": ["./src/**/*"], + "files": ["./src/types/types.d.ts"], + "include": ["./src/**/*", "../shared-types/**/*.d.ts"], "exclude": [ "node_modules", "build", diff --git a/frontend/__tests__/tsconfig.json b/frontend/__tests__/tsconfig.json index 2a9b8e610..af84e88bc 100644 --- a/frontend/__tests__/tsconfig.json +++ b/frontend/__tests__/tsconfig.json @@ -18,6 +18,10 @@ "ts-node": { "files": true }, - "files": ["../src/ts/types/types.d.ts", "../../shared-types/types.d.ts"], - "include": ["./**/*.spec.ts", "./setup-tests.ts"] + "files": ["../src/ts/types/types.d.ts"], + "include": [ + "./**/*.spec.ts", + "./setup-tests.ts", + "../../shared-types/**/*.d.ts" + ] } diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index eedf40672..721cb7e31 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -35,7 +35,7 @@ "@backend/*": ["../backend/src/*"] } }, - "include": ["./src/**/*.ts"], - "files": ["src/ts/modules.d.ts", "../shared-types/types.d.ts"], + "include": ["./src/**/*.ts", "../shared-types/**/*.d.ts"], + "files": ["src/ts/modules.d.ts"], "exclude": ["node_modules", "build", "setup-tests.ts", "**/*.spec.ts"] }