From a554aa156f02b7ed4ed9ab84d4f8a5e39a6febca Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Tue, 11 Nov 2025 09:46:44 +0100 Subject: [PATCH] fix: resolve build and type errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes TypeScript compilation errors that prevented production build: - Fix invalid node shape type in integration test (diamond → circle) - Export WorkspaceSettings type from main types module - Exclude test files from production build TypeScript check All tests (368), linting, and build now pass successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/__tests__/integration/store-synchronization.test.tsx | 2 +- src/types/index.ts | 3 +++ tsconfig.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/__tests__/integration/store-synchronization.test.tsx b/src/__tests__/integration/store-synchronization.test.tsx index bb77eb7..e44b558 100644 --- a/src/__tests__/integration/store-synchronization.test.tsx +++ b/src/__tests__/integration/store-synchronization.test.tsx @@ -170,7 +170,7 @@ describe('Store Synchronization Integration', () => { id: 'custom-type', label: 'Custom Type', color: '#ff0000', - shape: 'diamond' as const, + shape: 'circle' as const, icon: 'Star', description: 'A custom node type', }; diff --git a/src/types/index.ts b/src/types/index.ts index a38af0b..a20c424 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -135,3 +135,6 @@ export interface GraphActions { export interface EditorActions { updateSettings: (settings: Partial) => void; } + +// Re-export workspace types +export type { WorkspaceSettings } from '../stores/workspace/types'; diff --git a/tsconfig.json b/tsconfig.json index 5849388..1202a5b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,5 +24,6 @@ "forceConsistentCasingInFileNames": true }, "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/__tests__", "src/test-utils"], "references": [{ "path": "./tsconfig.node.json" }] }