diff --git a/.gitignore b/.gitignore index 96fab4fe..4405a334 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ coverage out/ build dist +*.tsbuildinfo # Debug diff --git a/apps/editor/tsconfig.json b/apps/editor/tsconfig.json index 84e20cd1..13904941 100644 --- a/apps/editor/tsconfig.json +++ b/apps/editor/tsconfig.json @@ -17,5 +17,9 @@ "next.config.js", ".next/types/**/*.ts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules"], + "references": [ + { "path": "../../packages/core" }, + { "path": "../../packages/viewer" } + ] } diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index a47d5777..71ee96a0 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -2,7 +2,9 @@ "extends": "@repo/typescript-config/react-library.json", "compilerOptions": { "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "composite": true, + "incremental": true }, "include": ["src"], "exclude": ["node_modules", "dist"] diff --git a/packages/viewer/tsconfig.json b/packages/viewer/tsconfig.json index a47d5777..881b384e 100644 --- a/packages/viewer/tsconfig.json +++ b/packages/viewer/tsconfig.json @@ -2,8 +2,13 @@ "extends": "@repo/typescript-config/react-library.json", "compilerOptions": { "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "composite": true, + "incremental": true }, "include": ["src"], - "exclude": ["node_modules", "dist"] + "exclude": ["node_modules", "dist"], + "references": [ + { "path": "../core" } + ] }