From ddc975436750dd6e6770714e1959928b9b511fac Mon Sep 17 00:00:00 2001 From: defiQUG Date: Fri, 23 Jan 2026 16:53:06 -0800 Subject: [PATCH] Fix API tsconfig: use standalone config for CommonJS module --- apps/api/tsconfig.json | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json index 9e6254a..a5c6459 100644 --- a/apps/api/tsconfig.json +++ b/apps/api/tsconfig.json @@ -1,12 +1,26 @@ { - "extends": "../../tsconfig.json", "compilerOptions": { + "target": "ES2022", + "module": "CommonJS", + "lib": ["ES2022"], + "moduleResolution": "node", + "resolveJsonModule": true, + "allowJs": true, + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, "outDir": "./dist", "rootDir": "./src", - "module": "CommonJS", - "target": "ES2022", - "moduleResolution": "node", - "esModuleInterop": true + "baseUrl": ".", + "paths": { + "@brazil-swift-ops/types": ["../../packages/types/src"], + "@brazil-swift-ops/utils": ["../../packages/utils/src"], + "@brazil-swift-ops/rules-engine": ["../../packages/rules-engine/src"] + } }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"]