diff --git a/packages/server/tsconfig.build.json b/packages/server/tsconfig.build.json index 9289b6f9da..56940f6c42 100644 --- a/packages/server/tsconfig.build.json +++ b/packages/server/tsconfig.build.json @@ -8,13 +8,18 @@ "esModuleInterop": true, "resolveJsonModule": true, "incremental": true, - "types": [ "node", "jest" ], + "types": ["node", "jest"], "outDir": "dist", - "skipLibCheck": true + "skipLibCheck": true, + "baseUrl": ".", + "paths": { + "@budibase/types": ["../types/src"], + "@budibase/backend-core": ["../backend-core/src"], + "@budibase/backend-core/*": ["../backend-core/*"], + "@budibase/pro": ["../../../budibase-pro/packages/pro/src"] + } }, - "include": [ - "src/**/*" - ], + "include": ["src/**/*"], "exclude": [ "node_modules", "dist", diff --git a/packages/worker/tsconfig.build.json b/packages/worker/tsconfig.build.json index 7ba657367e..e8375ab414 100644 --- a/packages/worker/tsconfig.build.json +++ b/packages/worker/tsconfig.build.json @@ -8,13 +8,17 @@ "esModuleInterop": true, "resolveJsonModule": true, "incremental": true, - "types": [ "node", "jest" ], + "types": ["node", "jest"], "outDir": "dist", - "skipLibCheck": true + "skipLibCheck": true, + "paths": { + "@budibase/types": ["../types/src"], + "@budibase/backend-core": ["../backend-core/src"], + "@budibase/backend-core/*": ["../backend-core/*"], + "@budibase/pro": ["../../../budibase-pro/packages/pro/src"] + } }, - "include": [ - "src/**/*" - ], + "include": ["src/**/*"], "exclude": [ "node_modules", "dist", @@ -22,4 +26,4 @@ "**/*.spec.js", "**/*.spec.ts" ] -} \ No newline at end of file +}