improve types

This commit is contained in:
Philipp Kühn 2020-11-10 22:52:54 +01:00
parent cb5ca0c084
commit 5dbbfaf46a
3 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,7 @@
"umd": "dist/tiptap-core.umd.js", "umd": "dist/tiptap-core.umd.js",
"module": "dist/tiptap-core.esm.js", "module": "dist/tiptap-core.esm.js",
"unpkg": "dist/tiptap-core.bundle.umd.min.js", "unpkg": "dist/tiptap-core.bundle.umd.min.js",
"types": "dist/index.d.ts",
"files": [ "files": [
"src", "src",
"dist" "dist"

View File

@ -50,7 +50,11 @@ async function build(commandLineArgs) {
tsconfigOverride: { tsconfigOverride: {
compilerOptions: { compilerOptions: {
declaration: true, declaration: true,
paths: {
'@tiptap/*': ['*/src'],
},
}, },
include: null,
}, },
}), }),
vuePlugin(), vuePlugin(),

View File

@ -14,7 +14,7 @@
"allowJs": false, "allowJs": false,
"checkJs": false, "checkJs": false,
"paths": { "paths": {
"@tiptap/*": ["*/src"] "@tiptap/*": ["*/dist", "*/src"]
}, },
"lib": [ "lib": [
"esnext", "esnext",