Fix type imports

This commit is contained in:
Marcel Mraz 2025-03-27 10:04:47 +01:00
parent 432a46ef9e
commit f7b226270f
No known key found for this signature in database
GPG key ID: 4EBD6E62DC830CD2
11 changed files with 33 additions and 11 deletions

View file

@ -13,7 +13,7 @@
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./../common/dist/types/common/*"
"types": "./../common/dist/types/common/src/*.d.ts"
}
},
"files": [
@ -48,6 +48,7 @@
]
},
"dependencies": {
"@braintree/sanitize-url": "6.0.2",
"es6-promise-pool": "2.5.0",
"nanoid": "3.3.3",
"open-color": "1.9.1",

View file

@ -2,5 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/types"
}
},
"include": ["src/**/*", "global.d.ts"],
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
}

View file

@ -13,7 +13,7 @@
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./../element/dist/types/element/*"
"types": "./../element/dist/types/element/src/*.d.ts"
}
},
"files": [

View file

@ -1,6 +1,8 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/types"
}
"outDir": "./dist/types",
},
"include": ["src/**/*", "global.d.ts"],
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
}

View file

@ -6,6 +6,18 @@
"main": "./dist/prod/index.js",
"module": "./dist/prod/index.js",
"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"
},

View file

@ -2,5 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/types"
}
},
"include": ["**/*"],
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
}

View file

@ -12,7 +12,7 @@
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./../math/dist/types/math/*"
"types": "./../math/dist/types/math/src/*.d.ts"
}
},
"files": [

View file

@ -2,5 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/types"
}
},
"include": ["src/**/*", "global.d.ts"],
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
}

View file

@ -23,5 +23,4 @@
"@excalidraw/utils/*": ["./utils/src/*"]
}
},
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
}

View file

@ -13,7 +13,7 @@
"default": "./dist/prod/index.js"
},
"./*": {
"types": "./../utils/dist/types/utils/*"
"types": "./../utils/dist/types/utils/src/*.d.ts"
}
},
"files": [

View file

@ -2,5 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist/types"
}
},
"include": ["src/**/*", "global.d.ts"],
"exclude": ["**/*.test.*", "tests", "types", "examples", "dist"]
}