Virtual whiteboard for sketching hand-drawn like diagrams
fix(editor): Modern TS require imports from rootDir (#11552)
Márk Tolmács070df27e4d18
diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.jsonindex 6450145b1c..93c85b385e 100644--- a/packages/common/tsconfig.json+++ b/packages/common/tsconfig.json@@ -1,7 +1,8 @@{"extends": "../tsconfig.base.json","compilerOptions": {- "outDir": "./dist/types"+ "outDir": "./dist/types",+ "rootDir": "../"},"include": ["src/**/*", "global.d.ts"],"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]diff --git a/packages/element/tsconfig.json b/packages/element/tsconfig.jsonindex 6450145b1c..3a296c853f 100644--- a/packages/element/tsconfig.json+++ b/packages/element/tsconfig.json@@ -1,6 +1,7 @@{"extends": "../tsconfig.base.json","compilerOptions": {+ "rootDir": "../","outDir": "./dist/types"},"include": ["src/**/*", "global.d.ts"],diff --git a/packages/excalidraw/tsconfig.json b/packages/excalidraw/tsconfig.jsonindex 793fd5abdd..ddbcd42c42 100644--- a/packages/excalidraw/tsconfig.json+++ b/packages/excalidraw/tsconfig.json@@ -1,6 +1,7 @@{"extends": "../tsconfig.base.json","compilerOptions": {+ "rootDir": "../","outDir": "./dist/types"},"include": ["**/*"],diff --git a/packages/fractional-indexing/tsconfig.json b/packages/fractional-indexing/tsconfig.jsonindex 6450145b1c..93c85b385e 100644--- a/packages/fractional-indexing/tsconfig.json+++ b/packages/fractional-indexing/tsconfig.json@@ -1,7 +1,8 @@{"extends": "../tsconfig.base.json","compilerOptions": {- "outDir": "./dist/types"+ "outDir": "./dist/types",+ "rootDir": "../"},"include": ["src/**/*", "global.d.ts"],"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]diff --git a/packages/laser-pointer/package.json b/packages/laser-pointer/package.jsonindex dca2e094c7..a9c76e5337 100644--- a/packages/laser-pointer/package.json+++ b/packages/laser-pointer/package.json@@ -3,12 +3,12 @@"version": "1.3.1","description": "Generate outline for laser pointer tool","type": "module",- "types": "./dist/types/index.d.ts",+ "types": "./dist/types/laser-pointer/src/index.d.ts","main": "./dist/prod/index.js","module": "./dist/prod/index.js","exports": {".": {- "types": "./dist/types/index.d.ts",+ "types": "./dist/types/laser-pointer/src/index.d.ts","development": "./dist/dev/index.js","production": "./dist/prod/index.js","default": "./dist/prod/index.js"diff --git a/packages/laser-pointer/tsconfig.json b/packages/laser-pointer/tsconfig.jsonindex 6450145b1c..93c85b385e 100644--- a/packages/laser-pointer/tsconfig.json+++ b/packages/laser-pointer/tsconfig.json@@ -1,7 +1,8 @@{"extends": "../tsconfig.base.json","compilerOptions": {- "outDir": "./dist/types"+ "outDir": "./dist/types",+ "rootDir": "../"},"include": ["src/**/*", "global.d.ts"],"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]diff --git a/packages/math/tsconfig.json b/packages/math/tsconfig.jsonindex 6450145b1c..3a296c853f 100644--- a/packages/math/tsconfig.json+++ b/packages/math/tsconfig.json@@ -1,6 +1,7 @@{"extends": "../tsconfig.base.json","compilerOptions": {+ "rootDir": "../","outDir": "./dist/types"},"include": ["src/**/*", "global.d.ts"],diff --git a/packages/tsconfig.base.json b/packages/tsconfig.base.jsonindex 0475a9bcea..59c10c0f14 100644--- a/packages/tsconfig.base.json+++ b/packages/tsconfig.base.json@@ -6,7 +6,7 @@"declaration": true,"allowSyntheticDefaultImports": true,"module": "ESNext",- "moduleResolution": "Node",+ "moduleResolution": "bundler","resolveJsonModule": true,"jsx": "react-jsx","emitDeclarationOnly": true,diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.jsonindex 6450145b1c..3a296c853f 100644--- a/packages/utils/tsconfig.json+++ b/packages/utils/tsconfig.json@@ -1,6 +1,7 @@{"extends": "../tsconfig.base.json","compilerOptions": {+ "rootDir": "../","outDir": "./dist/types"},"include": ["src/**/*", "global.d.ts"],diff --git a/tsconfig.json b/tsconfig.jsonindex da95861337..da8329db6a 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -12,7 +12,7 @@"forceConsistentCasingInFileNames": true,"noFallthroughCasesInSwitch": true,"module": "ESNext",- "moduleResolution": "node",+ "moduleResolution": "bundler","resolveJsonModule": true,"isolatedModules": true,"noEmit": true,