From cffcd050669802c6022c754eb92cfae6571725f0 Mon Sep 17 00:00:00 2001 From: Bojan Kucera Date: Mon, 9 Jun 2025 20:57:51 -0400 Subject: [PATCH] updated tsconfig to exclude tests files for apps --- apps/data-service/tsconfig.json | 1 + apps/execution-service/tsconfig.json | 17 +++++++++++++++++ apps/portfolio-service/tsconfig.json | 18 ++++++++++++++++++ apps/processing-service/tsconfig.json | 20 ++++++++++++++++++++ apps/strategy-service/tsconfig.json | 18 ++++++++++++++++++ libs/config/tsconfig.json | 1 + libs/http/tsconfig.json | 1 + tsconfig.json | 12 +++++++++--- turbo.json | 4 ++-- 9 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 apps/execution-service/tsconfig.json create mode 100644 apps/portfolio-service/tsconfig.json create mode 100644 apps/processing-service/tsconfig.json create mode 100644 apps/strategy-service/tsconfig.json diff --git a/apps/data-service/tsconfig.json b/apps/data-service/tsconfig.json index 3f7b283..f628a18 100644 --- a/apps/data-service/tsconfig.json +++ b/apps/data-service/tsconfig.json @@ -5,6 +5,7 @@ "rootDir": "./src" }, "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**", "**/tests/**", "**/__tests__/**"], "references": [ { "path": "../../libs/types" }, { "path": "../../libs/config" }, diff --git a/apps/execution-service/tsconfig.json b/apps/execution-service/tsconfig.json new file mode 100644 index 0000000..2e8476d --- /dev/null +++ b/apps/execution-service/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**", "**/tests/**", "**/__tests__/**"], + "references": [ + { "path": "../../libs/types" }, + { "path": "../../libs/config" }, + { "path": "../../libs/logger" }, + { "path": "../../libs/utils" }, + { "path": "../../libs/event-bus" }, + { "path": "../../libs/shutdown" } + ] +} diff --git a/apps/portfolio-service/tsconfig.json b/apps/portfolio-service/tsconfig.json new file mode 100644 index 0000000..f49f390 --- /dev/null +++ b/apps/portfolio-service/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**", "**/tests/**", "**/__tests__/**"], + "references": [ + { "path": "../../libs/types" }, + { "path": "../../libs/config" }, + { "path": "../../libs/logger" }, + { "path": "../../libs/utils" }, + { "path": "../../libs/postgres-client" }, + { "path": "../../libs/event-bus" }, + { "path": "../../libs/shutdown" } + ] +} diff --git a/apps/processing-service/tsconfig.json b/apps/processing-service/tsconfig.json new file mode 100644 index 0000000..43b0af8 --- /dev/null +++ b/apps/processing-service/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**", "**/tests/**", "**/__tests__/**"], + "references": [ + { "path": "../../libs/types" }, + { "path": "../../libs/config" }, + { "path": "../../libs/logger" }, + { "path": "../../libs/utils" }, + { "path": "../../libs/data-frame" }, + { "path": "../../libs/vector-engine" }, + { "path": "../../libs/mongodb-client" }, + { "path": "../../libs/event-bus" }, + { "path": "../../libs/shutdown" } + ] +} diff --git a/apps/strategy-service/tsconfig.json b/apps/strategy-service/tsconfig.json new file mode 100644 index 0000000..71a36bb --- /dev/null +++ b/apps/strategy-service/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**", "**/tests/**", "**/__tests__/**"], + "references": [ + { "path": "../../libs/types" }, + { "path": "../../libs/config" }, + { "path": "../../libs/logger" }, + { "path": "../../libs/utils" }, + { "path": "../../libs/strategy-engine" }, + { "path": "../../libs/event-bus" }, + { "path": "../../libs/shutdown" } + ] +} diff --git a/libs/config/tsconfig.json b/libs/config/tsconfig.json index 8fede43..145f618 100644 --- a/libs/config/tsconfig.json +++ b/libs/config/tsconfig.json @@ -5,6 +5,7 @@ "rootDir": "./src" }, "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**/*", "**/tests/**/*"], "references": [ { "path": "../types" } ] diff --git a/libs/http/tsconfig.json b/libs/http/tsconfig.json index 450174c..977e389 100644 --- a/libs/http/tsconfig.json +++ b/libs/http/tsconfig.json @@ -5,6 +5,7 @@ "rootDir": "./src" }, "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/test/**/*", "**/tests/**/*"], "references": [ { "path": "../types" }, { "path": "../logger" } diff --git a/tsconfig.json b/tsconfig.json index 2f3328c..afccebc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -56,10 +56,16 @@ { "path": "./libs/http" }, { "path": "./libs/event-bus" }, { "path": "./libs/shutdown" }, - - // Engine libraries + // Engine libraries { "path": "./libs/data-frame" }, { "path": "./libs/vector-engine" }, - { "path": "./libs/strategy-engine" } + { "path": "./libs/strategy-engine" }, + + // Applications + { "path": "./apps/data-service" }, + { "path": "./apps/execution-service" }, + { "path": "./apps/portfolio-service" }, + { "path": "./apps/processing-service" }, + { "path": "./apps/strategy-service" } ] } \ No newline at end of file diff --git a/turbo.json b/turbo.json index e2b771f..d1ff2a0 100644 --- a/turbo.json +++ b/turbo.json @@ -5,12 +5,12 @@ "build": { "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**", "!.next/cache/**"], - "inputs": ["src/**", "package.json", "tsconfig.json"] + "inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] }, "build:libs": { "dependsOn": [], "outputs": ["dist/**"], - "inputs": ["src/**", "package.json", "tsconfig.json"] + "inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] }, "dev": { "dependsOn": ["^build"],