diff --git a/packages/core/package.json b/packages/core/package.json index ba1746abf..a6c099705 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -6,6 +6,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", "files": [ "src", "dist" diff --git a/rollup.config.js b/rollup.config.js index d1f7e1ee3..b871a392a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -50,7 +50,11 @@ async function build(commandLineArgs) { tsconfigOverride: { compilerOptions: { declaration: true, + paths: { + '@tiptap/*': ['*/src'], + }, }, + include: null, }, }), vuePlugin(), diff --git a/tsconfig.json b/tsconfig.json index 680f720c5..eccd4dc77 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,7 @@ "allowJs": false, "checkJs": false, "paths": { - "@tiptap/*": ["*/src"] + "@tiptap/*": ["*/dist", "*/src"] }, "lib": [ "esnext",