Aakansha Doshi 1 year ago
parent
commit
f0876e3c03

+ 1 - 1
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"

+ 1 - 1
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,

+ 2 - 2
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"]
+  }
 }