diff --git a/examples/excalidraw/with-script-in-browser/package.json b/examples/excalidraw/with-script-in-browser/package.json index 94ace0430..69c0cdc5d 100644 --- a/examples/excalidraw/with-script-in-browser/package.json +++ b/examples/excalidraw/with-script-in-browser/package.json @@ -12,7 +12,7 @@ "typescript": "^5" }, "scripts": { - "build:workspaces": "yarn workspace @excalidraw/excalidraw run build:esm && yarn workspace @excalidraw/utils run build:esm", + "build:workspaces": "yarn workspace @excalidraw/utils run build:esm && yarn workspace @excalidraw/excalidraw run build:esm", "start": "yarn build:workspaces && vite", "build": "yarn build:workspaces && vite build", "build:preview": "yarn build && vite preview --port 5002" diff --git a/packages/excalidraw/tsconfig.json b/packages/excalidraw/tsconfig.json index a8f6210fa..accde6556 100644 --- a/packages/excalidraw/tsconfig.json +++ b/packages/excalidraw/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig", - "exclude": ["**/*.test.*", "tests", "types", "examples", "dist"], + "exclude": ["**/*.test.*", "tests", "types", "examples", "packages/**/dist/**", "dist"], "compilerOptions": { "target": "ESNext", "strict": true, diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.json index e48df1a65..d17c51747 100644 --- a/packages/utils/tsconfig.json +++ b/packages/utils/tsconfig.json @@ -1,5 +1,6 @@ { "extends": "../../tsconfig", + "exclude": ["**/*.test.*", "**/tests/*", "types", "examples", "packages/**/dist/**", "dist"], "compilerOptions": { "target": "ESNext", "strict": true, @@ -11,6 +12,5 @@ "moduleResolution": "Node", "resolveJsonModule": true, "jsx": "react-jsx" - }, - "exclude": ["**/*.test.*", "**/tests/*", "types", "dist"] + } }