diff --git a/packages/core/package.json b/packages/core/package.json index 91b310aef..e475284e7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-core.umd.js", "module": "dist/tiptap-core.esm.js", "unpkg": "dist/tiptap-core.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/core/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-blockquote/package.json b/packages/extension-blockquote/package.json index 0e8f10590..e7a64ac4b 100644 --- a/packages/extension-blockquote/package.json +++ b/packages/extension-blockquote/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-blockquote.umd.js", "module": "dist/tiptap-extension-blockquote.esm.js", "unpkg": "dist/tiptap-extension-blockquote.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-blockquote/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bold/package.json b/packages/extension-bold/package.json index 38f186c1c..9a17db9e8 100644 --- a/packages/extension-bold/package.json +++ b/packages/extension-bold/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-bold.umd.js", "module": "dist/tiptap-extension-bold.esm.js", "unpkg": "dist/tiptap-extension-bold.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-bold/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-bullet-list/package.json b/packages/extension-bullet-list/package.json index 51caa0332..181500dbf 100644 --- a/packages/extension-bullet-list/package.json +++ b/packages/extension-bullet-list/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-bullet-list.umd.js", "module": "dist/tiptap-extension-bullet-list.esm.js", "unpkg": "dist/tiptap-extension-bullet-list.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-bullet-list/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code-block/package.json b/packages/extension-code-block/package.json index e2aed382d..03036a79c 100644 --- a/packages/extension-code-block/package.json +++ b/packages/extension-code-block/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-code-block.umd.js", "module": "dist/tiptap-extension-code-block.esm.js", "unpkg": "dist/tiptap-extension-code-block.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-code-block/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-code/package.json b/packages/extension-code/package.json index f7e0d656b..788aac55f 100644 --- a/packages/extension-code/package.json +++ b/packages/extension-code/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-code.umd.js", "module": "dist/tiptap-extension-code.esm.js", "unpkg": "dist/tiptap-extension-code.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-code/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-collaboration-cursor/package.json b/packages/extension-collaboration-cursor/package.json index 75ac2674f..6c7bbbf2e 100644 --- a/packages/extension-collaboration-cursor/package.json +++ b/packages/extension-collaboration-cursor/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-collaboration-cursor.umd.js", "module": "dist/tiptap-extension-collaboration-cursor.esm.js", "unpkg": "dist/tiptap-extension-collaboration-cursor.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-collaboration-cursor/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-collaboration/package.json b/packages/extension-collaboration/package.json index 1b9734cbf..44282a952 100644 --- a/packages/extension-collaboration/package.json +++ b/packages/extension-collaboration/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-collaboration.umd.js", "module": "dist/tiptap-extension-collaboration.esm.js", "unpkg": "dist/tiptap-extension-collaboration.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-collaboration/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-document/package.json b/packages/extension-document/package.json index 789695e2f..203f2f49c 100644 --- a/packages/extension-document/package.json +++ b/packages/extension-document/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-document.umd.js", "module": "dist/tiptap-extension-document.esm.js", "unpkg": "dist/tiptap-extension-document.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-document/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-dropcursor/package.json b/packages/extension-dropcursor/package.json index 7e5523d73..aa9460e0b 100644 --- a/packages/extension-dropcursor/package.json +++ b/packages/extension-dropcursor/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-dropcursor.umd.js", "module": "dist/tiptap-extension-dropcursor.esm.js", "unpkg": "dist/tiptap-extension-dropcursor.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-dropcursor/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-focus/package.json b/packages/extension-focus/package.json index 0f025e50e..a5f07813c 100644 --- a/packages/extension-focus/package.json +++ b/packages/extension-focus/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-focus.umd.js", "module": "dist/tiptap-extension-focus.esm.js", "unpkg": "dist/tiptap-extension-focus.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-focus/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-font-family/package.json b/packages/extension-font-family/package.json index 0d41e3936..38185ac5e 100644 --- a/packages/extension-font-family/package.json +++ b/packages/extension-font-family/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-font-family.umd.js", "module": "dist/tiptap-extension-font-family.esm.js", "unpkg": "dist/tiptap-extension-font-family.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-font-family/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-gapcursor/package.json b/packages/extension-gapcursor/package.json index c0996b3ce..bc0897254 100644 --- a/packages/extension-gapcursor/package.json +++ b/packages/extension-gapcursor/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-gapcursor.umd.js", "module": "dist/tiptap-extension-gapcursor.esm.js", "unpkg": "dist/tiptap-extension-gapcursor.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-gapcursor/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-hard-break/package.json b/packages/extension-hard-break/package.json index f2a1502dc..2f99e4dc6 100644 --- a/packages/extension-hard-break/package.json +++ b/packages/extension-hard-break/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-hard-break.umd.js", "module": "dist/tiptap-extension-hard-break.esm.js", "unpkg": "dist/tiptap-extension-hard-break.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-hard-break/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-heading/package.json b/packages/extension-heading/package.json index 545ddd0e5..ebd38d370 100644 --- a/packages/extension-heading/package.json +++ b/packages/extension-heading/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-heading.umd.js", "module": "dist/tiptap-extension-heading.esm.js", "unpkg": "dist/tiptap-extension-heading.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-heading/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-highlight/package.json b/packages/extension-highlight/package.json index e4eb1f104..7152e176c 100644 --- a/packages/extension-highlight/package.json +++ b/packages/extension-highlight/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-highlight.umd.js", "module": "dist/tiptap-extension-highlight.esm.js", "unpkg": "dist/tiptap-extension-highlight.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-highlight/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-history/package.json b/packages/extension-history/package.json index 54fea19e9..05c417c74 100644 --- a/packages/extension-history/package.json +++ b/packages/extension-history/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-history.umd.js", "module": "dist/tiptap-extension-history.esm.js", "unpkg": "dist/tiptap-extension-history.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-history/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-horizontal-rule/package.json b/packages/extension-horizontal-rule/package.json index 3284661cb..b901ebc3f 100644 --- a/packages/extension-horizontal-rule/package.json +++ b/packages/extension-horizontal-rule/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-horizontal-rule.umd.js", "module": "dist/tiptap-extension-horizontal-rule.esm.js", "unpkg": "dist/tiptap-extension-horizontal-rule.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-horizontal-rule/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-image/package.json b/packages/extension-image/package.json index 97b297462..a1db60da9 100644 --- a/packages/extension-image/package.json +++ b/packages/extension-image/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-image.umd.js", "module": "dist/tiptap-extension-image.esm.js", "unpkg": "dist/tiptap-extension-image.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-image/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-italic/package.json b/packages/extension-italic/package.json index 481a22c6e..d84e91878 100644 --- a/packages/extension-italic/package.json +++ b/packages/extension-italic/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-italic.umd.js", "module": "dist/tiptap-extension-italic.esm.js", "unpkg": "dist/tiptap-extension-italic.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-italic/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-link/package.json b/packages/extension-link/package.json index 59b55e4fd..ef91a623d 100644 --- a/packages/extension-link/package.json +++ b/packages/extension-link/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-link.umd.js", "module": "dist/tiptap-extension-link.esm.js", "unpkg": "dist/tiptap-extension-link.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-link/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-list-item/package.json b/packages/extension-list-item/package.json index aaf049fcd..fca273c05 100644 --- a/packages/extension-list-item/package.json +++ b/packages/extension-list-item/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-list-item.umd.js", "module": "dist/tiptap-extension-list-item.esm.js", "unpkg": "dist/tiptap-extension-list-item.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-list-item/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-ordered-list/package.json b/packages/extension-ordered-list/package.json index 62f1b35c1..567eb958a 100644 --- a/packages/extension-ordered-list/package.json +++ b/packages/extension-ordered-list/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-ordered-list.umd.js", "module": "dist/tiptap-extension-ordered-list.esm.js", "unpkg": "dist/tiptap-extension-ordered-list.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-ordered-list/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-paragraph/package.json b/packages/extension-paragraph/package.json index 3aef55e05..a5862f773 100644 --- a/packages/extension-paragraph/package.json +++ b/packages/extension-paragraph/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-paragraph.umd.js", "module": "dist/tiptap-extension-paragraph.esm.js", "unpkg": "dist/tiptap-extension-paragraph.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-paragraph/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-strike/package.json b/packages/extension-strike/package.json index 43291e1de..6c2b6941e 100644 --- a/packages/extension-strike/package.json +++ b/packages/extension-strike/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-strike.umd.js", "module": "dist/tiptap-extension-strike.esm.js", "unpkg": "dist/tiptap-extension-strike.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-strike/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-task-item/package.json b/packages/extension-task-item/package.json index 6d270e7e8..37c8b89f3 100644 --- a/packages/extension-task-item/package.json +++ b/packages/extension-task-item/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-task-item.umd.js", "module": "dist/tiptap-extension-task-item.esm.js", "unpkg": "dist/tiptap-extension-task-item.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-task-item/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-task-list/package.json b/packages/extension-task-list/package.json index 860242a2b..67285fffa 100644 --- a/packages/extension-task-list/package.json +++ b/packages/extension-task-list/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-task-list.umd.js", "module": "dist/tiptap-extension-task-list.esm.js", "unpkg": "dist/tiptap-extension-task-list.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-task-list/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text-align/package.json b/packages/extension-text-align/package.json index 8d3d71705..a475d11a5 100644 --- a/packages/extension-text-align/package.json +++ b/packages/extension-text-align/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-text-align.umd.js", "module": "dist/tiptap-extension-text-align.esm.js", "unpkg": "dist/tiptap-extension-text-align.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-text-align/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text-style/package.json b/packages/extension-text-style/package.json index f36131de0..faefd146a 100644 --- a/packages/extension-text-style/package.json +++ b/packages/extension-text-style/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-text-style.umd.js", "module": "dist/tiptap-extension-text-style.esm.js", "unpkg": "dist/tiptap-extension-text-style.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-text-style/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-text/package.json b/packages/extension-text/package.json index 7c2a331dc..d1c987a5f 100644 --- a/packages/extension-text/package.json +++ b/packages/extension-text/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-text.umd.js", "module": "dist/tiptap-extension-text.esm.js", "unpkg": "dist/tiptap-extension-text.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-text/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-typography/package.json b/packages/extension-typography/package.json index f06a32978..b9c86c4df 100644 --- a/packages/extension-typography/package.json +++ b/packages/extension-typography/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-typography.umd.js", "module": "dist/tiptap-extension-typography.esm.js", "unpkg": "dist/tiptap-extension-typography.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-typography/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/extension-underline/package.json b/packages/extension-underline/package.json index adfbfb7ee..f9ca7f639 100644 --- a/packages/extension-underline/package.json +++ b/packages/extension-underline/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-extension-underline.umd.js", "module": "dist/tiptap-extension-underline.esm.js", "unpkg": "dist/tiptap-extension-underline.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/extension-underline/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/html/package.json b/packages/html/package.json index f86a27d14..dfe730a6d 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-html.umd.js", "module": "dist/tiptap-html.esm.js", "unpkg": "dist/tiptap-html.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/html/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/starter-kit/package.json b/packages/starter-kit/package.json index 0b9030e93..3c880f0c2 100644 --- a/packages/starter-kit/package.json +++ b/packages/starter-kit/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-starter-kit.umd.js", "module": "dist/tiptap-starter-kit.esm.js", "unpkg": "dist/tiptap-starter-kit.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/starter-kit/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/vue-starter-kit/package.json b/packages/vue-starter-kit/package.json index 46beecf65..dbed05b8f 100644 --- a/packages/vue-starter-kit/package.json +++ b/packages/vue-starter-kit/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-vue-starter-kit.umd.js", "module": "dist/tiptap-vue-starter-kit.esm.js", "unpkg": "dist/tiptap-vue-starter-kit.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/vue-starter-kit/src/index.d.ts", "files": [ "src", "dist" diff --git a/packages/vue/package.json b/packages/vue/package.json index 7334a98e7..3089e4ab5 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -5,7 +5,7 @@ "umd": "dist/tiptap-vue.umd.js", "module": "dist/tiptap-vue.esm.js", "unpkg": "dist/tiptap-vue.bundle.umd.min.js", - "types": "dist/index.d.ts", + "types": "dist/vue/src/index.d.ts", "files": [ "src", "dist" diff --git a/tsconfig.json b/tsconfig.json index eccd4dc77..2e6faecf6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ "experimentalDecorators": true, "sourceMap": true, "baseUrl": "./packages", + "rootDir": "./packages", "allowJs": false, "checkJs": false, "paths": {