mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix type imports
This commit is contained in:
parent
432a46ef9e
commit
f7b226270f
11 changed files with 33 additions and 11 deletions
|
@ -13,7 +13,7 @@
|
||||||
"default": "./dist/prod/index.js"
|
"default": "./dist/prod/index.js"
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./../common/dist/types/common/*"
|
"types": "./../common/dist/types/common/src/*.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -48,6 +48,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@braintree/sanitize-url": "6.0.2",
|
||||||
"es6-promise-pool": "2.5.0",
|
"es6-promise-pool": "2.5.0",
|
||||||
"nanoid": "3.3.3",
|
"nanoid": "3.3.3",
|
||||||
"open-color": "1.9.1",
|
"open-color": "1.9.1",
|
||||||
|
|
|
@ -2,5 +2,7 @@
|
||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist/types"
|
"outDir": "./dist/types"
|
||||||
}
|
},
|
||||||
|
"include": ["src/**/*", "global.d.ts"],
|
||||||
|
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"default": "./dist/prod/index.js"
|
"default": "./dist/prod/index.js"
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./../element/dist/types/element/*"
|
"types": "./../element/dist/types/element/src/*.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist/types"
|
"outDir": "./dist/types",
|
||||||
}
|
},
|
||||||
|
"include": ["src/**/*", "global.d.ts"],
|
||||||
|
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,18 @@
|
||||||
"main": "./dist/prod/index.js",
|
"main": "./dist/prod/index.js",
|
||||||
"module": "./dist/prod/index.js",
|
"module": "./dist/prod/index.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
"./common/*": {
|
||||||
|
"types": "./dist/types/common/src/*.d.ts"
|
||||||
|
},
|
||||||
|
"./element/*": {
|
||||||
|
"types": "./dist/types/element/src/*.d.ts"
|
||||||
|
},
|
||||||
|
"./math/*": {
|
||||||
|
"types": "./dist/types/math/src/*.d.ts"
|
||||||
|
},
|
||||||
|
"./utils/*": {
|
||||||
|
"types": "./dist/types/utils/src/*.d.ts"
|
||||||
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./dist/types/excalidraw/*.d.ts"
|
"types": "./dist/types/excalidraw/*.d.ts"
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,5 +2,7 @@
|
||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist/types"
|
"outDir": "./dist/types"
|
||||||
}
|
},
|
||||||
|
"include": ["**/*"],
|
||||||
|
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"default": "./dist/prod/index.js"
|
"default": "./dist/prod/index.js"
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./../math/dist/types/math/*"
|
"types": "./../math/dist/types/math/src/*.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -2,5 +2,7 @@
|
||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist/types"
|
"outDir": "./dist/types"
|
||||||
}
|
},
|
||||||
|
"include": ["src/**/*", "global.d.ts"],
|
||||||
|
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,5 +23,4 @@
|
||||||
"@excalidraw/utils/*": ["./utils/src/*"]
|
"@excalidraw/utils/*": ["./utils/src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"default": "./dist/prod/index.js"
|
"default": "./dist/prod/index.js"
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"types": "./../utils/dist/types/utils/*"
|
"types": "./../utils/dist/types/utils/src/*.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -2,5 +2,7 @@
|
||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist/types"
|
"outDir": "./dist/types"
|
||||||
}
|
},
|
||||||
|
"include": ["src/**/*", "global.d.ts"],
|
||||||
|
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue