From a92f4a66637ecf006c13e8690f3ba41b3e736c6a Mon Sep 17 00:00:00 2001 From: Nick Perez Date: Wed, 7 Aug 2024 11:59:44 +0200 Subject: [PATCH] build: use tsup for compilation (#5455) * build: use tsup for compilation * chore: rm turbo file --- .changeset/chilled-trees-agree.md | 59 + package-lock.json | 2168 ++++++++++++----- package.json | 9 +- packages/core/package.json | 7 +- packages/core/rollup.config.js | 5 - packages/core/src/ExtensionManager.ts | 3 +- .../helpers/getAttributesFromExtensions.ts | 2 +- .../helpers/getSchemaByResolvedExtensions.ts | 2 +- packages/core/src/helpers/isList.ts | 2 +- packages/core/tsup.config.ts | 14 + packages/extension-blockquote/package.json | 7 +- .../extension-blockquote/rollup.config.js | 5 - packages/extension-blockquote/tsup.config.ts | 14 + packages/extension-bold/package.json | 7 +- packages/extension-bold/rollup.config.js | 5 - packages/extension-bold/tsup.config.ts | 14 + packages/extension-bubble-menu/package.json | 7 +- .../extension-bubble-menu/rollup.config.js | 5 - packages/extension-bubble-menu/tsup.config.ts | 14 + packages/extension-bullet-list/package.json | 7 +- .../extension-bullet-list/rollup.config.js | 5 - .../extension-bullet-list/src/bullet-list.ts | 8 +- packages/extension-bullet-list/tsup.config.ts | 14 + .../extension-character-count/package.json | 7 +- .../rollup.config.js | 5 - .../extension-character-count/tsup.config.ts | 14 + .../package.json | 14 +- .../rollup.config.js | 5 - .../tsup.config.ts | 14 + packages/extension-code-block/package.json | 7 +- .../extension-code-block/rollup.config.js | 5 - packages/extension-code-block/tsup.config.ts | 14 + packages/extension-code/package.json | 7 +- packages/extension-code/rollup.config.js | 5 - packages/extension-code/tsup.config.ts | 14 + .../package.json | 7 +- .../rollup.config.js | 5 - .../tsup.config.ts | 14 + packages/extension-collaboration/package.json | 7 +- .../extension-collaboration/rollup.config.js | 5 - .../extension-collaboration/tsup.config.ts | 14 + packages/extension-color/package.json | 7 +- packages/extension-color/rollup.config.js | 5 - packages/extension-color/tsup.config.ts | 14 + packages/extension-document/package.json | 7 +- packages/extension-document/rollup.config.js | 5 - packages/extension-document/tsup.config.ts | 14 + packages/extension-dropcursor/package.json | 7 +- .../extension-dropcursor/rollup.config.js | 5 - packages/extension-dropcursor/tsup.config.ts | 14 + packages/extension-floating-menu/package.json | 7 +- .../extension-floating-menu/rollup.config.js | 5 - .../extension-floating-menu/tsup.config.ts | 14 + packages/extension-focus/package.json | 7 +- packages/extension-focus/rollup.config.js | 5 - packages/extension-focus/tsup.config.ts | 14 + packages/extension-font-family/package.json | 7 +- .../extension-font-family/rollup.config.js | 5 - packages/extension-font-family/tsup.config.ts | 14 + packages/extension-gapcursor/package.json | 7 +- packages/extension-gapcursor/rollup.config.js | 5 - packages/extension-gapcursor/tsup.config.ts | 14 + packages/extension-hard-break/package.json | 7 +- .../extension-hard-break/rollup.config.js | 5 - packages/extension-hard-break/tsup.config.ts | 14 + packages/extension-heading/package.json | 7 +- packages/extension-heading/rollup.config.js | 5 - packages/extension-heading/tsup.config.ts | 14 + packages/extension-highlight/package.json | 7 +- packages/extension-highlight/rollup.config.js | 5 - packages/extension-highlight/tsup.config.ts | 14 + packages/extension-history/package.json | 7 +- packages/extension-history/rollup.config.js | 5 - packages/extension-history/tsup.config.ts | 14 + .../extension-horizontal-rule/package.json | 7 +- .../rollup.config.js | 5 - .../extension-horizontal-rule/tsup.config.ts | 14 + packages/extension-image/package.json | 7 +- packages/extension-image/rollup.config.js | 5 - packages/extension-image/tsup.config.ts | 14 + packages/extension-italic/package.json | 7 +- packages/extension-italic/rollup.config.js | 5 - packages/extension-italic/tsup.config.ts | 14 + packages/extension-link/package.json | 7 +- packages/extension-link/rollup.config.js | 5 - packages/extension-link/tsup.config.ts | 14 + packages/extension-list-item/package.json | 7 +- packages/extension-list-item/rollup.config.js | 5 - packages/extension-list-item/tsup.config.ts | 14 + packages/extension-list-keymap/package.json | 7 +- .../extension-list-keymap/rollup.config.js | 5 - packages/extension-list-keymap/tsup.config.ts | 14 + packages/extension-mention/package.json | 7 +- packages/extension-mention/rollup.config.js | 5 - packages/extension-mention/tsup.config.ts | 14 + packages/extension-ordered-list/package.json | 7 +- .../extension-ordered-list/rollup.config.js | 5 - .../src/ordered-list.ts | 8 +- .../extension-ordered-list/tsup.config.ts | 14 + packages/extension-paragraph/package.json | 7 +- packages/extension-paragraph/rollup.config.js | 5 - packages/extension-paragraph/tsup.config.ts | 14 + packages/extension-placeholder/package.json | 7 +- .../extension-placeholder/rollup.config.js | 5 - packages/extension-placeholder/tsup.config.ts | 14 + packages/extension-strike/package.json | 7 +- packages/extension-strike/rollup.config.js | 5 - packages/extension-strike/tsup.config.ts | 14 + packages/extension-subscript/package.json | 7 +- packages/extension-subscript/rollup.config.js | 5 - packages/extension-subscript/tsup.config.ts | 14 + packages/extension-superscript/package.json | 7 +- .../extension-superscript/rollup.config.js | 5 - packages/extension-superscript/tsup.config.ts | 14 + packages/extension-table-cell/package.json | 7 +- .../extension-table-cell/rollup.config.js | 5 - packages/extension-table-cell/tsup.config.ts | 14 + packages/extension-table-header/package.json | 7 +- .../extension-table-header/rollup.config.js | 5 - .../extension-table-header/tsup.config.ts | 14 + packages/extension-table-row/package.json | 7 +- packages/extension-table-row/rollup.config.js | 5 - packages/extension-table-row/tsup.config.ts | 14 + packages/extension-table/package.json | 7 +- packages/extension-table/rollup.config.js | 5 - packages/extension-table/tsup.config.ts | 14 + packages/extension-task-item/package.json | 7 +- packages/extension-task-item/rollup.config.js | 5 - packages/extension-task-item/tsup.config.ts | 14 + packages/extension-task-list/package.json | 7 +- packages/extension-task-list/rollup.config.js | 5 - packages/extension-task-list/tsup.config.ts | 14 + packages/extension-text-align/package.json | 7 +- .../extension-text-align/rollup.config.js | 5 - packages/extension-text-align/tsup.config.ts | 14 + packages/extension-text-style/package.json | 7 +- .../extension-text-style/rollup.config.js | 5 - packages/extension-text-style/tsup.config.ts | 14 + packages/extension-text/package.json | 7 +- packages/extension-text/rollup.config.js | 5 - packages/extension-text/tsup.config.ts | 14 + packages/extension-typography/package.json | 7 +- .../extension-typography/rollup.config.js | 5 - packages/extension-typography/tsup.config.ts | 14 + packages/extension-underline/package.json | 7 +- packages/extension-underline/rollup.config.js | 5 - packages/extension-underline/tsup.config.ts | 14 + packages/extension-youtube/package.json | 7 +- packages/extension-youtube/rollup.config.js | 5 - packages/extension-youtube/tsup.config.ts | 14 + packages/html/package.json | 7 +- packages/html/rollup.config.js | 5 - packages/html/tsup.config.ts | 14 + packages/pm/package.json | 128 +- packages/pm/tsconfig.json | 3 - packages/pm/tsup.config.ts | 42 +- packages/pm/turbo.json | 30 - packages/react/package.json | 7 +- packages/react/rollup.config.js | 5 - packages/react/tsup.config.ts | 14 + packages/starter-kit/package.json | 7 +- packages/starter-kit/rollup.config.js | 5 - packages/starter-kit/tsup.config.ts | 14 + packages/suggestion/package.json | 7 +- packages/suggestion/rollup.config.js | 5 - packages/suggestion/tsup.config.ts | 14 + packages/tsup.config.ts | 14 + packages/vue-2/package.json | 7 +- packages/vue-2/rollup.config.js | 5 - packages/vue-2/tsup.config.ts | 14 + packages/vue-3/package.json | 7 +- packages/vue-3/rollup.config.js | 5 - packages/vue-3/tsup.config.ts | 14 + shared/rollup-config/index.js | 62 - shared/rollup-config/package.json | 6 - tsconfig.build.json | 8 + tsconfig.json | 3 +- turbo.json | 2 +- 178 files changed, 2673 insertions(+), 1271 deletions(-) create mode 100644 .changeset/chilled-trees-agree.md delete mode 100644 packages/core/rollup.config.js create mode 100644 packages/core/tsup.config.ts delete mode 100644 packages/extension-blockquote/rollup.config.js create mode 100644 packages/extension-blockquote/tsup.config.ts delete mode 100644 packages/extension-bold/rollup.config.js create mode 100644 packages/extension-bold/tsup.config.ts delete mode 100644 packages/extension-bubble-menu/rollup.config.js create mode 100644 packages/extension-bubble-menu/tsup.config.ts delete mode 100644 packages/extension-bullet-list/rollup.config.js create mode 100644 packages/extension-bullet-list/tsup.config.ts delete mode 100644 packages/extension-character-count/rollup.config.js create mode 100644 packages/extension-character-count/tsup.config.ts delete mode 100644 packages/extension-code-block-lowlight/rollup.config.js create mode 100644 packages/extension-code-block-lowlight/tsup.config.ts delete mode 100644 packages/extension-code-block/rollup.config.js create mode 100644 packages/extension-code-block/tsup.config.ts delete mode 100644 packages/extension-code/rollup.config.js create mode 100644 packages/extension-code/tsup.config.ts delete mode 100644 packages/extension-collaboration-cursor/rollup.config.js create mode 100644 packages/extension-collaboration-cursor/tsup.config.ts delete mode 100644 packages/extension-collaboration/rollup.config.js create mode 100644 packages/extension-collaboration/tsup.config.ts delete mode 100644 packages/extension-color/rollup.config.js create mode 100644 packages/extension-color/tsup.config.ts delete mode 100644 packages/extension-document/rollup.config.js create mode 100644 packages/extension-document/tsup.config.ts delete mode 100644 packages/extension-dropcursor/rollup.config.js create mode 100644 packages/extension-dropcursor/tsup.config.ts delete mode 100644 packages/extension-floating-menu/rollup.config.js create mode 100644 packages/extension-floating-menu/tsup.config.ts delete mode 100644 packages/extension-focus/rollup.config.js create mode 100644 packages/extension-focus/tsup.config.ts delete mode 100644 packages/extension-font-family/rollup.config.js create mode 100644 packages/extension-font-family/tsup.config.ts delete mode 100644 packages/extension-gapcursor/rollup.config.js create mode 100644 packages/extension-gapcursor/tsup.config.ts delete mode 100644 packages/extension-hard-break/rollup.config.js create mode 100644 packages/extension-hard-break/tsup.config.ts delete mode 100644 packages/extension-heading/rollup.config.js create mode 100644 packages/extension-heading/tsup.config.ts delete mode 100644 packages/extension-highlight/rollup.config.js create mode 100644 packages/extension-highlight/tsup.config.ts delete mode 100644 packages/extension-history/rollup.config.js create mode 100644 packages/extension-history/tsup.config.ts delete mode 100644 packages/extension-horizontal-rule/rollup.config.js create mode 100644 packages/extension-horizontal-rule/tsup.config.ts delete mode 100644 packages/extension-image/rollup.config.js create mode 100644 packages/extension-image/tsup.config.ts delete mode 100644 packages/extension-italic/rollup.config.js create mode 100644 packages/extension-italic/tsup.config.ts delete mode 100644 packages/extension-link/rollup.config.js create mode 100644 packages/extension-link/tsup.config.ts delete mode 100644 packages/extension-list-item/rollup.config.js create mode 100644 packages/extension-list-item/tsup.config.ts delete mode 100644 packages/extension-list-keymap/rollup.config.js create mode 100644 packages/extension-list-keymap/tsup.config.ts delete mode 100644 packages/extension-mention/rollup.config.js create mode 100644 packages/extension-mention/tsup.config.ts delete mode 100644 packages/extension-ordered-list/rollup.config.js create mode 100644 packages/extension-ordered-list/tsup.config.ts delete mode 100644 packages/extension-paragraph/rollup.config.js create mode 100644 packages/extension-paragraph/tsup.config.ts delete mode 100644 packages/extension-placeholder/rollup.config.js create mode 100644 packages/extension-placeholder/tsup.config.ts delete mode 100644 packages/extension-strike/rollup.config.js create mode 100644 packages/extension-strike/tsup.config.ts delete mode 100644 packages/extension-subscript/rollup.config.js create mode 100644 packages/extension-subscript/tsup.config.ts delete mode 100644 packages/extension-superscript/rollup.config.js create mode 100644 packages/extension-superscript/tsup.config.ts delete mode 100644 packages/extension-table-cell/rollup.config.js create mode 100644 packages/extension-table-cell/tsup.config.ts delete mode 100644 packages/extension-table-header/rollup.config.js create mode 100644 packages/extension-table-header/tsup.config.ts delete mode 100644 packages/extension-table-row/rollup.config.js create mode 100644 packages/extension-table-row/tsup.config.ts delete mode 100644 packages/extension-table/rollup.config.js create mode 100644 packages/extension-table/tsup.config.ts delete mode 100644 packages/extension-task-item/rollup.config.js create mode 100644 packages/extension-task-item/tsup.config.ts delete mode 100644 packages/extension-task-list/rollup.config.js create mode 100644 packages/extension-task-list/tsup.config.ts delete mode 100644 packages/extension-text-align/rollup.config.js create mode 100644 packages/extension-text-align/tsup.config.ts delete mode 100644 packages/extension-text-style/rollup.config.js create mode 100644 packages/extension-text-style/tsup.config.ts delete mode 100644 packages/extension-text/rollup.config.js create mode 100644 packages/extension-text/tsup.config.ts delete mode 100644 packages/extension-typography/rollup.config.js create mode 100644 packages/extension-typography/tsup.config.ts delete mode 100644 packages/extension-underline/rollup.config.js create mode 100644 packages/extension-underline/tsup.config.ts delete mode 100644 packages/extension-youtube/rollup.config.js create mode 100644 packages/extension-youtube/tsup.config.ts delete mode 100644 packages/html/rollup.config.js create mode 100644 packages/html/tsup.config.ts delete mode 100644 packages/pm/tsconfig.json delete mode 100644 packages/pm/turbo.json delete mode 100644 packages/react/rollup.config.js create mode 100644 packages/react/tsup.config.ts delete mode 100644 packages/starter-kit/rollup.config.js create mode 100644 packages/starter-kit/tsup.config.ts delete mode 100644 packages/suggestion/rollup.config.js create mode 100644 packages/suggestion/tsup.config.ts create mode 100644 packages/tsup.config.ts delete mode 100644 packages/vue-2/rollup.config.js create mode 100644 packages/vue-2/tsup.config.ts delete mode 100644 packages/vue-3/rollup.config.js create mode 100644 packages/vue-3/tsup.config.ts delete mode 100644 shared/rollup-config/index.js delete mode 100644 shared/rollup-config/package.json create mode 100644 tsconfig.build.json diff --git a/.changeset/chilled-trees-agree.md b/.changeset/chilled-trees-agree.md new file mode 100644 index 000000000..dc3f84113 --- /dev/null +++ b/.changeset/chilled-trees-agree.md @@ -0,0 +1,59 @@ +--- +"@tiptap/extension-collaboration-cursor": major +"@tiptap/extension-code-block-lowlight": major +"@tiptap/extension-character-count": major +"@tiptap/extension-horizontal-rule": major +"@tiptap/extension-collaboration": major +"@tiptap/extension-floating-menu": major +"@tiptap/extension-ordered-list": major +"@tiptap/extension-table-header": major +"@tiptap/extension-bubble-menu": major +"@tiptap/extension-bullet-list": major +"@tiptap/extension-font-family": major +"@tiptap/extension-list-keymap": major +"@tiptap/extension-placeholder": major +"@tiptap/extension-superscript": major +"@tiptap/extension-blockquote": major +"@tiptap/extension-code-block": major +"@tiptap/extension-dropcursor": major +"@tiptap/extension-hard-break": major +"@tiptap/extension-table-cell": major +"@tiptap/extension-text-align": major +"@tiptap/extension-text-style": major +"@tiptap/extension-typography": major +"@tiptap/extension-gapcursor": major +"@tiptap/extension-highlight": major +"@tiptap/extension-list-item": major +"@tiptap/extension-paragraph": major +"@tiptap/extension-subscript": major +"@tiptap/extension-table-row": major +"@tiptap/extension-task-item": major +"@tiptap/extension-task-list": major +"@tiptap/extension-underline": major +"@tiptap/extension-document": major +"@tiptap/extension-heading": major +"@tiptap/extension-history": major +"@tiptap/extension-mention": major +"@tiptap/extension-youtube": major +"@tiptap/extension-italic": major +"@tiptap/extension-strike": major +"@tiptap/extension-color": major +"@tiptap/extension-focus": major +"@tiptap/extension-image": major +"@tiptap/extension-table": major +"@tiptap/extension-bold": major +"@tiptap/extension-code": major +"@tiptap/extension-link": major +"@tiptap/extension-text": major +"@tiptap/starter-kit": major +"@tiptap/suggestion": major +"@tiptap/react": major +"@tiptap/vue-2": major +"@tiptap/vue-3": major +"@tiptap/core": major +"@tiptap/html": major +"@tiptap/pm": major +"tiptap-demos": major +--- + +We are now building packages with tsup which does not support UMD builds, please repackage if you require UMD builds diff --git a/package-lock.json b/package-lock.json index 692c1c2a4..d0d5abdc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,9 +20,6 @@ "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", "@cypress/webpack-preprocessor": "^5.17.1", - "@rollup/plugin-babel": "^6.0.4", - "@rollup/plugin-commonjs": "^26.0.1", - "@rollup/plugin-node-resolve": "^15.2.3", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^5.62.0", @@ -41,12 +38,8 @@ "husky": "^8.0.3", "lint-staged": "^13.3.0", "minimist": "^1.2.8", - "rollup": "^4.18.0", - "rollup-plugin-auto-external": "^2.0.0", - "rollup-plugin-sourcemaps": "^0.6.3", - "rollup-plugin-typescript2": "^0.36.0", "ts-loader": "9.3.1", - "tsup": "^8.1.0", + "tsup": "8.2.4", "turbo": "2.0.6", "typescript": "^5.5.3", "webpack": "^5.92.1" @@ -114,13 +107,6 @@ "yjs": "^13.6.8" } }, - "demos/node_modules/@types/hast": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, "demos/node_modules/@vitejs/plugin-vue": { "version": "5.0.5", "dev": true, @@ -323,14 +309,6 @@ "node": ">=8" } }, - "demos/node_modules/highlight.js": { - "version": "11.10.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.10.0.tgz", - "integrity": "sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==", - "engines": { - "node": ">=12.0.0" - } - }, "demos/node_modules/hosted-git-info": { "version": "4.1.0", "dev": true, @@ -357,28 +335,6 @@ "node": ">=8" } }, - "demos/node_modules/lowlight": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.1.0.tgz", - "integrity": "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ==", - "dependencies": { - "@types/hast": "^3.0.0", - "devlop": "^1.0.0", - "highlight.js": "~11.9.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "demos/node_modules/lowlight/node_modules/highlight.js": { - "version": "11.9.0", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz", - "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==", - "engines": { - "node": ">=12.0.0" - } - }, "demos/node_modules/lru-cache": { "version": "6.0.0", "dev": true, @@ -3418,6 +3374,390 @@ "ms": "^2.1.1" } }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.23.0.tgz", + "integrity": "sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.23.0.tgz", + "integrity": "sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.23.0.tgz", + "integrity": "sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.23.0.tgz", + "integrity": "sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.23.0.tgz", + "integrity": "sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.23.0.tgz", + "integrity": "sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.0.tgz", + "integrity": "sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.23.0.tgz", + "integrity": "sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.23.0.tgz", + "integrity": "sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.23.0.tgz", + "integrity": "sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.23.0.tgz", + "integrity": "sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.23.0.tgz", + "integrity": "sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.23.0.tgz", + "integrity": "sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.23.0.tgz", + "integrity": "sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.23.0.tgz", + "integrity": "sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.23.0.tgz", + "integrity": "sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.23.0.tgz", + "integrity": "sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.23.0.tgz", + "integrity": "sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.0.tgz", + "integrity": "sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.23.0.tgz", + "integrity": "sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.23.0.tgz", + "integrity": "sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.23.0.tgz", + "integrity": "sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.23.0.tgz", + "integrity": "sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.23.0.tgz", + "integrity": "sha512-Arm+WgUFLUATuoxCJcahGuk6Yj9Pzxd6l11Zb/2aAuv5kWWvvfhLFo2fni4uSK5vzlUdCGZ/BdV5tH8klj8p8g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", "dev": true, @@ -4117,79 +4457,6 @@ "version": "2.0.2", "license": "MIT" }, - "node_modules/@rollup/plugin-babel": { - "version": "6.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@rollup/pluginutils": "^5.0.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0", - "@types/babel__core": "^7.1.9", - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "@types/babel__core": { - "optional": true - }, - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-commonjs": { - "version": "26.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "commondir": "^1.0.1", - "estree-walker": "^2.0.2", - "glob": "^10.4.1", - "is-reference": "1.2.1", - "magic-string": "^0.30.3" - }, - "engines": { - "node": ">=16.0.0 || 14 >= 14.17" - }, - "peerDependencies": { - "rollup": "^2.68.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "15.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^5.0.1", - "@types/resolve": "1.20.2", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.2.1", - "is-module": "^1.0.0", - "resolve": "^1.22.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^2.78.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, "node_modules/@rollup/pluginutils": { "version": "5.1.0", "dev": true, @@ -4211,6 +4478,214 @@ } } }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.20.0.tgz", + "integrity": "sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.20.0.tgz", + "integrity": "sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.20.0.tgz", + "integrity": "sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.20.0.tgz", + "integrity": "sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.20.0.tgz", + "integrity": "sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.20.0.tgz", + "integrity": "sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.20.0.tgz", + "integrity": "sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.20.0.tgz", + "integrity": "sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.20.0.tgz", + "integrity": "sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.20.0.tgz", + "integrity": "sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.20.0.tgz", + "integrity": "sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.20.0.tgz", + "integrity": "sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.20.0.tgz", + "integrity": "sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.20.0.tgz", + "integrity": "sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.20.0.tgz", + "integrity": "sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz", + "integrity": "sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@shikijs/core": { "version": "1.10.3", "license": "MIT", @@ -4218,13 +4693,6 @@ "@types/hast": "^3.0.4" } }, - "node_modules/@shikijs/core/node_modules/@types/hast": { - "version": "3.0.4", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, "node_modules/@sveltejs/vite-plugin-svelte": { "version": "2.5.3", "dev": true, @@ -4482,51 +4950,6 @@ "resolved": "packages/vue-3", "link": true }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.8", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.6", - "dev": true, - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "@babel/types": "^7.20.7" - } - }, "node_modules/@types/base16": { "version": "1.0.5", "dev": true, @@ -4563,6 +4986,14 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dependencies": { + "@types/unist": "*" + } + }, "node_modules/@types/json-schema": { "version": "7.0.15", "dev": true, @@ -4622,11 +5053,6 @@ "@types/react": "*" } }, - "node_modules/@types/resolve": { - "version": "1.20.2", - "dev": true, - "license": "MIT" - }, "node_modules/@types/semver": { "version": "7.5.8", "dev": true, @@ -5468,17 +5894,6 @@ "node": ">= 4.0.0" } }, - "node_modules/atob": { - "version": "2.1.2", - "dev": true, - "license": "(MIT OR Apache-2.0)", - "bin": { - "atob": "bin/atob.js" - }, - "engines": { - "node": ">= 4.5.0" - } - }, "node_modules/autoprefixer": { "version": "10.4.19", "dev": true, @@ -5763,29 +6178,11 @@ "dev": true, "license": "MIT" }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/builtins": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - } - }, "node_modules/bundle-require": { - "version": "4.2.1", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.0.0.tgz", + "integrity": "sha512-GuziW3fSSmopcx4KRymQEJVbZUfqlCqcq7dvs6TYwKRZiegK/2buMxQTPs6MGlNv50wms1699qYO54R8XfRX4w==", "dev": true, - "license": "MIT", "dependencies": { "load-tsconfig": "^0.2.3" }, @@ -5793,7 +6190,7 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "peerDependencies": { - "esbuild": ">=0.17" + "esbuild": ">=0.18" } }, "node_modules/cac": { @@ -6189,11 +6586,6 @@ "node": ">=4.0.0" } }, - "node_modules/commondir": { - "version": "1.0.1", - "dev": true, - "license": "MIT" - }, "node_modules/compare-func": { "version": "2.0.0", "dev": true, @@ -6224,6 +6616,15 @@ "dev": true, "license": "MIT" }, + "node_modules/consola": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.2.3.tgz", + "integrity": "sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==", + "dev": true, + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, "node_modules/conventional-changelog-angular": { "version": "7.0.0", "dev": true, @@ -7131,14 +7532,6 @@ "node": ">=0.10.0" } }, - "node_modules/decode-uri-component": { - "version": "0.2.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, "node_modules/dedent": { "version": "0.7.0", "dev": true, @@ -7603,6 +7996,397 @@ "@esbuild/win32-x64": "0.21.5" } }, + "node_modules/esbuild/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "aix" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/escalade": { "version": "3.1.2", "dev": true, @@ -8681,6 +9465,20 @@ "dev": true, "license": "ISC" }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "dev": true, @@ -9097,6 +9895,14 @@ "node": ">= 0.4" } }, + "node_modules/highlight.js": { + "version": "11.10.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.10.0.tgz", + "integrity": "sha512-SYVnVFswQER+zu1laSya563s+F8VDGt7o35d4utbamowvUNLLMovFqwCLSocpZTz3MgaSRA1IbqRWZv97dtErQ==", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/homedir-polyfill": { "version": "1.0.3", "dev": true, @@ -9513,20 +10319,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-builtin-module": { - "version": "3.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "builtin-modules": "^3.3.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-callable": { "version": "1.2.7", "dev": true, @@ -9639,11 +10431,6 @@ "node": ">=8" } }, - "node_modules/is-module": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/is-negative-zero": { "version": "2.0.3", "dev": true, @@ -9692,14 +10479,6 @@ "node": ">=8" } }, - "node_modules/is-reference": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "*" - } - }, "node_modules/is-regex": { "version": "1.1.4", "dev": true, @@ -10023,11 +10802,6 @@ "dev": true, "license": "MIT" }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "dev": true, - "license": "MIT" - }, "node_modules/json-schema": { "version": "0.4.0", "dev": true, @@ -10594,8 +11368,9 @@ }, "node_modules/load-tsconfig": { "version": "0.2.5", + "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz", + "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==", "dev": true, - "license": "MIT", "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } @@ -10925,6 +11700,28 @@ "loose-envify": "cli.js" } }, + "node_modules/lowlight": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.1.0.tgz", + "integrity": "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ==", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.0.0", + "highlight.js": "~11.9.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/lowlight/node_modules/highlight.js": { + "version": "11.9.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz", + "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "dev": true, @@ -12451,96 +13248,6 @@ "pify": "^2.3.0" } }, - "node_modules/read-pkg": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg/node_modules/hosted-git-info": { - "version": "2.8.9", - "dev": true, - "license": "ISC" - }, - "node_modules/read-pkg/node_modules/load-json-file": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg/node_modules/normalize-package-data": { - "version": "2.5.0", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/read-pkg/node_modules/parse-json": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg/node_modules/path-type": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg/node_modules/pify": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg/node_modules/semver": { - "version": "5.7.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/read-pkg/node_modules/strip-bom": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/read-yaml-file": { "version": "1.1.0", "dev": true, @@ -12871,9 +13578,10 @@ "license": "Unlicense" }, "node_modules/rollup": { - "version": "4.18.0", + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.20.0.tgz", + "integrity": "sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw==", "dev": true, - "license": "MIT", "dependencies": { "@types/estree": "1.0.5" }, @@ -12885,216 +13593,25 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.18.0", - "@rollup/rollup-android-arm64": "4.18.0", - "@rollup/rollup-darwin-arm64": "4.18.0", - "@rollup/rollup-darwin-x64": "4.18.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", - "@rollup/rollup-linux-arm-musleabihf": "4.18.0", - "@rollup/rollup-linux-arm64-gnu": "4.18.0", - "@rollup/rollup-linux-arm64-musl": "4.18.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", - "@rollup/rollup-linux-riscv64-gnu": "4.18.0", - "@rollup/rollup-linux-s390x-gnu": "4.18.0", - "@rollup/rollup-linux-x64-gnu": "4.18.0", - "@rollup/rollup-linux-x64-musl": "4.18.0", - "@rollup/rollup-win32-arm64-msvc": "4.18.0", - "@rollup/rollup-win32-ia32-msvc": "4.18.0", - "@rollup/rollup-win32-x64-msvc": "4.18.0", + "@rollup/rollup-android-arm-eabi": "4.20.0", + "@rollup/rollup-android-arm64": "4.20.0", + "@rollup/rollup-darwin-arm64": "4.20.0", + "@rollup/rollup-darwin-x64": "4.20.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.20.0", + "@rollup/rollup-linux-arm-musleabihf": "4.20.0", + "@rollup/rollup-linux-arm64-gnu": "4.20.0", + "@rollup/rollup-linux-arm64-musl": "4.20.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0", + "@rollup/rollup-linux-riscv64-gnu": "4.20.0", + "@rollup/rollup-linux-s390x-gnu": "4.20.0", + "@rollup/rollup-linux-x64-gnu": "4.20.0", + "@rollup/rollup-linux-x64-musl": "4.20.0", + "@rollup/rollup-win32-arm64-msvc": "4.20.0", + "@rollup/rollup-win32-ia32-msvc": "4.20.0", + "@rollup/rollup-win32-x64-msvc": "4.20.0", "fsevents": "~2.3.2" } }, - "node_modules/rollup-plugin-auto-external": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "builtins": "^2.0.0", - "read-pkg": "^3.0.0", - "safe-resolve": "^1.0.0", - "semver": "^5.5.0" - }, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "rollup": ">=0.45.2" - } - }, - "node_modules/rollup-plugin-auto-external/node_modules/semver": { - "version": "5.7.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/rollup-plugin-sourcemaps": { - "version": "0.6.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^3.0.9", - "source-map-resolve": "^0.6.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "@types/node": ">=10.0.0", - "rollup": ">=0.31.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/rollup-plugin-typescript2": { - "version": "0.36.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^4.1.2", - "find-cache-dir": "^3.3.2", - "fs-extra": "^10.0.0", - "semver": "^7.5.4", - "tslib": "^2.6.2" - }, - "peerDependencies": { - "rollup": ">=1.26.3", - "typescript": ">=2.4.0" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/find-cache-dir": { - "version": "3.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/find-up": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/fs-extra": { - "version": "10.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/locate-path": { - "version": "5.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/make-dir": { - "version": "3.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/make-dir/node_modules/semver": { - "version": "6.3.1", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/p-limit": { - "version": "2.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/p-locate": { - "version": "4.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/path-exists": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/pkg-dir": { - "version": "4.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/semver": { - "version": "7.6.2", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/rope-sequence": { "version": "1.3.4", "license": "MIT" @@ -13191,11 +13708,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safe-resolve": { - "version": "1.0.0", - "dev": true, - "license": "MIT" - }, "node_modules/safer-buffer": { "version": "2.1.2", "license": "MIT" @@ -13470,15 +13982,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-resolve": { - "version": "0.6.0", - "dev": true, - "license": "MIT", - "dependencies": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0" - } - }, "node_modules/source-map-support": { "version": "0.5.21", "dev": true, @@ -13560,6 +14063,8 @@ "version": "3.2.0", "dev": true, "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -13568,12 +14073,16 @@ "node_modules/spdx-exceptions": { "version": "2.5.0", "dev": true, - "license": "CC-BY-3.0" + "license": "CC-BY-3.0", + "optional": true, + "peer": true }, "node_modules/spdx-expression-parse": { "version": "3.0.1", "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -13582,7 +14091,9 @@ "node_modules/spdx-license-ids": { "version": "3.0.18", "dev": true, - "license": "CC0-1.0" + "license": "CC0-1.0", + "optional": true, + "peer": true }, "node_modules/split2": { "version": "4.2.0", @@ -14273,23 +14784,26 @@ "license": "0BSD" }, "node_modules/tsup": { - "version": "8.1.0", + "version": "8.2.4", + "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.2.4.tgz", + "integrity": "sha512-akpCPePnBnC/CXgRrcy72ZSntgIEUa1jN0oJbbvpALWKNOz1B7aM+UVDWGRGIO/T/PZugAESWDJUAb5FD48o8Q==", "dev": true, - "license": "MIT", "dependencies": { - "bundle-require": "^4.0.0", - "cac": "^6.7.12", - "chokidar": "^3.5.1", - "debug": "^4.3.1", - "esbuild": "^0.21.4", - "execa": "^5.0.0", - "globby": "^11.0.3", - "joycon": "^3.0.1", - "postcss-load-config": "^4.0.1", + "bundle-require": "^5.0.0", + "cac": "^6.7.14", + "chokidar": "^3.6.0", + "consola": "^3.2.3", + "debug": "^4.3.5", + "esbuild": "^0.23.0", + "execa": "^5.1.1", + "globby": "^11.1.0", + "joycon": "^3.1.1", + "picocolors": "^1.0.1", + "postcss-load-config": "^6.0.1", "resolve-from": "^5.0.0", - "rollup": "^4.0.2", + "rollup": "^4.19.0", "source-map": "0.8.0-beta.0", - "sucrase": "^3.20.3", + "sucrase": "^3.35.0", "tree-kill": "^1.2.2" }, "bin": { @@ -14320,6 +14834,45 @@ } } }, + "node_modules/tsup/node_modules/esbuild": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.0.tgz", + "integrity": "sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.23.0", + "@esbuild/android-arm": "0.23.0", + "@esbuild/android-arm64": "0.23.0", + "@esbuild/android-x64": "0.23.0", + "@esbuild/darwin-arm64": "0.23.0", + "@esbuild/darwin-x64": "0.23.0", + "@esbuild/freebsd-arm64": "0.23.0", + "@esbuild/freebsd-x64": "0.23.0", + "@esbuild/linux-arm": "0.23.0", + "@esbuild/linux-arm64": "0.23.0", + "@esbuild/linux-ia32": "0.23.0", + "@esbuild/linux-loong64": "0.23.0", + "@esbuild/linux-mips64el": "0.23.0", + "@esbuild/linux-ppc64": "0.23.0", + "@esbuild/linux-riscv64": "0.23.0", + "@esbuild/linux-s390x": "0.23.0", + "@esbuild/linux-x64": "0.23.0", + "@esbuild/netbsd-x64": "0.23.0", + "@esbuild/openbsd-arm64": "0.23.0", + "@esbuild/openbsd-x64": "0.23.0", + "@esbuild/sunos-x64": "0.23.0", + "@esbuild/win32-arm64": "0.23.0", + "@esbuild/win32-ia32": "0.23.0", + "@esbuild/win32-x64": "0.23.0" + } + }, "node_modules/tsup/node_modules/execa": { "version": "5.1.1", "dev": true, @@ -14372,6 +14925,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/tsup/node_modules/lilconfig": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", + "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, "node_modules/tsup/node_modules/mimic-fn": { "version": "2.1.0", "dev": true, @@ -14405,6 +14970,48 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/tsup/node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, "node_modules/tsup/node_modules/signal-exit": { "version": "3.0.7", "dev": true, @@ -14452,6 +15059,20 @@ "webidl-conversions": "^4.0.2" } }, + "node_modules/tsup/node_modules/yaml": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.0.tgz", + "integrity": "sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==", + "dev": true, + "optional": true, + "peer": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/tsutils": { "version": "3.21.0", "dev": true, @@ -14766,6 +15387,8 @@ "version": "3.0.4", "dev": true, "license": "Apache-2.0", + "optional": true, + "peer": true, "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" @@ -14839,6 +15462,380 @@ } } }, + "node_modules/vite/node_modules/@esbuild/android-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", + "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", + "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/android-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", + "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", + "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/darwin-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", + "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", + "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/freebsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", + "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", + "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", + "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", + "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-loong64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", + "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-mips64el": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", + "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-ppc64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", + "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-riscv64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", + "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-s390x": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", + "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", + "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/netbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", + "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", + "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", + "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", + "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", + "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/vite/node_modules/@esbuild/win32-x64": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", + "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "peer": true, + "engines": { + "node": ">=12" + } + }, "node_modules/vite/node_modules/esbuild": { "version": "0.18.20", "dev": true, @@ -15693,7 +16690,8 @@ "devDependencies": { "@tiptap/core": "^3.0.0-next.0", "@tiptap/extension-code-block": "^3.0.0-next.0", - "@tiptap/pm": "^3.0.0-next.0" + "@tiptap/pm": "^3.0.0-next.0", + "lowlight": "^2 || ^3" }, "funding": { "type": "github", @@ -15702,7 +16700,9 @@ "peerDependencies": { "@tiptap/core": "^3.0.0-next.0", "@tiptap/extension-code-block": "^3.0.0-next.0", - "@tiptap/pm": "^3.0.0-next.0" + "@tiptap/pm": "^3.0.0-next.0", + "highlight.js": "^11", + "lowlight": "^2 || ^3" } }, "packages/extension-collaboration": { diff --git a/package.json b/package.json index 84132d251..d92a7c8e4 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,6 @@ "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", "@cypress/webpack-preprocessor": "^5.17.1", - "@rollup/plugin-babel": "^6.0.4", - "@rollup/plugin-commonjs": "^26.0.1", - "@rollup/plugin-node-resolve": "^15.2.3", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^5.62.0", @@ -64,12 +61,8 @@ "husky": "^8.0.3", "lint-staged": "^13.3.0", "minimist": "^1.2.8", - "rollup": "^4.18.0", - "rollup-plugin-auto-external": "^2.0.0", - "rollup-plugin-sourcemaps": "^0.6.3", - "rollup-plugin-typescript2": "^0.36.0", "ts-loader": "9.3.1", - "tsup": "^8.1.0", + "tsup": "8.2.4", "turbo": "2.0.6", "typescript": "^5.5.3", "webpack": "^5.92.1" diff --git a/packages/core/package.json b/packages/core/package.json index 2d4003607..ae5e2a4a5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -18,7 +18,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/core/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -26,7 +26,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/core/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -44,7 +44,6 @@ }, "sideEffects": false, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/core/rollup.config.js b/packages/core/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/core/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/core/src/ExtensionManager.ts b/packages/core/src/ExtensionManager.ts index ae6a54776..cb00b6f88 100644 --- a/packages/core/src/ExtensionManager.ts +++ b/packages/core/src/ExtensionManager.ts @@ -12,8 +12,9 @@ import { getSchemaByResolvedExtensions } from './helpers/getSchemaByResolvedExte import { getSchemaTypeByName } from './helpers/getSchemaTypeByName.js' import { isExtensionRulesEnabled } from './helpers/isExtensionRulesEnabled.js' import { splitExtensions } from './helpers/splitExtensions.js' -import { Mark, NodeConfig } from './index.js' +import type { NodeConfig } from './index.js' import { InputRule, inputRulesPlugin } from './InputRule.js' +import { Mark } from './Mark.js' import { PasteRule, pasteRulesPlugin } from './PasteRule.js' import { AnyConfig, Extensions, RawCommands } from './types.js' import { callOrReturn } from './utilities/callOrReturn.js' diff --git a/packages/core/src/helpers/getAttributesFromExtensions.ts b/packages/core/src/helpers/getAttributesFromExtensions.ts index 8df1f7a9f..a51f157a9 100644 --- a/packages/core/src/helpers/getAttributesFromExtensions.ts +++ b/packages/core/src/helpers/getAttributesFromExtensions.ts @@ -1,4 +1,4 @@ -import { MarkConfig, NodeConfig } from '../index.js' +import type { MarkConfig, NodeConfig } from '../index.js' import { AnyConfig, Attribute, diff --git a/packages/core/src/helpers/getSchemaByResolvedExtensions.ts b/packages/core/src/helpers/getSchemaByResolvedExtensions.ts index 25b856140..e426d6b9e 100644 --- a/packages/core/src/helpers/getSchemaByResolvedExtensions.ts +++ b/packages/core/src/helpers/getSchemaByResolvedExtensions.ts @@ -2,7 +2,7 @@ import { MarkSpec, NodeSpec, Schema, TagParseRule, } from '@tiptap/pm/model' -import { Editor, MarkConfig, NodeConfig } from '../index.js' +import type { Editor, MarkConfig, NodeConfig } from '../index.js' import { AnyConfig, Extensions } from '../types.js' import { callOrReturn } from '../utilities/callOrReturn.js' import { isEmptyObject } from '../utilities/isEmptyObject.js' diff --git a/packages/core/src/helpers/isList.ts b/packages/core/src/helpers/isList.ts index 5fcf712a0..9d093025f 100644 --- a/packages/core/src/helpers/isList.ts +++ b/packages/core/src/helpers/isList.ts @@ -1,5 +1,5 @@ import { getExtensionField } from '../helpers/getExtensionField.js' -import { NodeConfig } from '../index.js' +import type { NodeConfig } from '../index.js' import { Extensions } from '../types.js' import { callOrReturn } from '../utilities/callOrReturn.js' import { splitExtensions } from './splitExtensions.js' diff --git a/packages/core/tsup.config.ts b/packages/core/tsup.config.ts new file mode 100644 index 000000000..c3ccb6ee7 --- /dev/null +++ b/packages/core/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + // purposefully not using the build tsconfig, so @tiptap/core's types can be resolved correctly + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-blockquote/package.json b/packages/extension-blockquote/package.json index d8081e048..3cea2b5a4 100644 --- a/packages/extension-blockquote/package.json +++ b/packages/extension-blockquote/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-blockquote/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-blockquote/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-blockquote" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-blockquote/rollup.config.js b/packages/extension-blockquote/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-blockquote/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-blockquote/tsup.config.ts b/packages/extension-blockquote/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-blockquote/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-bold/package.json b/packages/extension-bold/package.json index 9675fcc16..53b5866e6 100644 --- a/packages/extension-bold/package.json +++ b/packages/extension-bold/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-bold/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-bold/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-bold" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-bold/rollup.config.js b/packages/extension-bold/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-bold/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-bold/tsup.config.ts b/packages/extension-bold/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-bold/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-bubble-menu/package.json b/packages/extension-bubble-menu/package.json index 78c2ce707..bff9bf518 100644 --- a/packages/extension-bubble-menu/package.json +++ b/packages/extension-bubble-menu/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-bubble-menu/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-bubble-menu/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -45,7 +45,6 @@ "@tiptap/pm": "^3.0.0-next.0" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-bubble-menu/rollup.config.js b/packages/extension-bubble-menu/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-bubble-menu/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-bubble-menu/tsup.config.ts b/packages/extension-bubble-menu/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-bubble-menu/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-bullet-list/package.json b/packages/extension-bullet-list/package.json index 7bcf46036..04ef7cfbb 100644 --- a/packages/extension-bullet-list/package.json +++ b/packages/extension-bullet-list/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-bullet-list/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-bullet-list/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-bullet-list" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-bullet-list/rollup.config.js b/packages/extension-bullet-list/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-bullet-list/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-bullet-list/src/bullet-list.ts b/packages/extension-bullet-list/src/bullet-list.ts index fe86ff177..320d3abf4 100644 --- a/packages/extension-bullet-list/src/bullet-list.ts +++ b/packages/extension-bullet-list/src/bullet-list.ts @@ -1,7 +1,7 @@ import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core' -import ListItem from '../../extension-list-item/src/index.js' -import TextStyle from '../../extension-text-style/src/index.js' +const ListItemName = 'listItem' +const TextStyleName = 'textStyle' export interface BulletListOptions { /** @@ -87,7 +87,7 @@ export const BulletList = Node.create({ return { toggleBulletList: () => ({ commands, chain }) => { if (this.options.keepAttributes) { - return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItem.name, this.editor.getAttributes(TextStyle.name)).run() + return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName)).run() } return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) }, @@ -112,7 +112,7 @@ export const BulletList = Node.create({ type: this.type, keepMarks: this.options.keepMarks, keepAttributes: this.options.keepAttributes, - getAttributes: () => { return this.editor.getAttributes(TextStyle.name) }, + getAttributes: () => { return this.editor.getAttributes(TextStyleName) }, editor: this.editor, }) } diff --git a/packages/extension-bullet-list/tsup.config.ts b/packages/extension-bullet-list/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-bullet-list/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-character-count/package.json b/packages/extension-character-count/package.json index 799eb0528..aa91e4411 100644 --- a/packages/extension-character-count/package.json +++ b/packages/extension-character-count/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-character-count/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-character-count/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-character-count" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-character-count/rollup.config.js b/packages/extension-character-count/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-character-count/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-character-count/tsup.config.ts b/packages/extension-character-count/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-character-count/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-code-block-lowlight/package.json b/packages/extension-code-block-lowlight/package.json index 4349c11e9..1b50f3129 100644 --- a/packages/extension-code-block-lowlight/package.json +++ b/packages/extension-code-block-lowlight/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-code-block-lowlight/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-code-block-lowlight/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -31,12 +31,15 @@ "devDependencies": { "@tiptap/core": "^3.0.0-next.0", "@tiptap/extension-code-block": "^3.0.0-next.0", - "@tiptap/pm": "^3.0.0-next.0" + "@tiptap/pm": "^3.0.0-next.0", + "lowlight": "^2 || ^3" }, "peerDependencies": { "@tiptap/core": "^3.0.0-next.0", "@tiptap/extension-code-block": "^3.0.0-next.0", - "@tiptap/pm": "^3.0.0-next.0" + "@tiptap/pm": "^3.0.0-next.0", + "lowlight": "^2 || ^3", + "highlight.js": "^11" }, "repository": { "type": "git", @@ -44,7 +47,6 @@ "directory": "packages/extension-code-block-lowlight" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-code-block-lowlight/rollup.config.js b/packages/extension-code-block-lowlight/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-code-block-lowlight/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-code-block-lowlight/tsup.config.ts b/packages/extension-code-block-lowlight/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-code-block-lowlight/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-code-block/package.json b/packages/extension-code-block/package.json index 2f38c949f..9309798bb 100644 --- a/packages/extension-code-block/package.json +++ b/packages/extension-code-block/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-code-block/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-code-block/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-code-block" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-code-block/rollup.config.js b/packages/extension-code-block/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-code-block/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-code-block/tsup.config.ts b/packages/extension-code-block/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-code-block/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-code/package.json b/packages/extension-code/package.json index 62fa5a86f..d963610c4 100644 --- a/packages/extension-code/package.json +++ b/packages/extension-code/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-code/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-code/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-code" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-code/rollup.config.js b/packages/extension-code/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-code/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-code/tsup.config.ts b/packages/extension-code/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-code/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-collaboration-cursor/package.json b/packages/extension-collaboration-cursor/package.json index b073e4988..e65894726 100644 --- a/packages/extension-collaboration-cursor/package.json +++ b/packages/extension-collaboration-cursor/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-collaboration-cursor/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-collaboration-cursor/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-collaboration-cursor" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-collaboration-cursor/rollup.config.js b/packages/extension-collaboration-cursor/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-collaboration-cursor/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-collaboration-cursor/tsup.config.ts b/packages/extension-collaboration-cursor/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-collaboration-cursor/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-collaboration/package.json b/packages/extension-collaboration/package.json index af4358194..872efaacd 100644 --- a/packages/extension-collaboration/package.json +++ b/packages/extension-collaboration/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-collaboration/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-collaboration/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -44,7 +44,6 @@ "directory": "packages/extension-collaboration" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-collaboration/rollup.config.js b/packages/extension-collaboration/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-collaboration/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-collaboration/tsup.config.ts b/packages/extension-collaboration/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-collaboration/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-color/package.json b/packages/extension-color/package.json index 35a5aab77..841705201 100644 --- a/packages/extension-color/package.json +++ b/packages/extension-color/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-color/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-color/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-color" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-color/rollup.config.js b/packages/extension-color/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-color/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-color/tsup.config.ts b/packages/extension-color/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-color/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-document/package.json b/packages/extension-document/package.json index cac0bda6f..9b2b5b026 100644 --- a/packages/extension-document/package.json +++ b/packages/extension-document/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-document/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-document/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-document" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-document/rollup.config.js b/packages/extension-document/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-document/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-document/tsup.config.ts b/packages/extension-document/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-document/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-dropcursor/package.json b/packages/extension-dropcursor/package.json index a322f85ec..73ebb7552 100644 --- a/packages/extension-dropcursor/package.json +++ b/packages/extension-dropcursor/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-dropcursor/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-dropcursor/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-dropcursor" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-dropcursor/rollup.config.js b/packages/extension-dropcursor/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-dropcursor/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-dropcursor/tsup.config.ts b/packages/extension-dropcursor/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-dropcursor/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-floating-menu/package.json b/packages/extension-floating-menu/package.json index 3a5d709e2..571bc5735 100644 --- a/packages/extension-floating-menu/package.json +++ b/packages/extension-floating-menu/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-floating-menu/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-floating-menu/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -45,7 +45,6 @@ }, "sideEffects": false, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-floating-menu/rollup.config.js b/packages/extension-floating-menu/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-floating-menu/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-floating-menu/tsup.config.ts b/packages/extension-floating-menu/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-floating-menu/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-focus/package.json b/packages/extension-focus/package.json index b3cca72b2..047044ffc 100644 --- a/packages/extension-focus/package.json +++ b/packages/extension-focus/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-focus/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-focus/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-focus" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-focus/rollup.config.js b/packages/extension-focus/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-focus/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-focus/tsup.config.ts b/packages/extension-focus/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-focus/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-font-family/package.json b/packages/extension-font-family/package.json index 271c4beb5..189644843 100644 --- a/packages/extension-font-family/package.json +++ b/packages/extension-font-family/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-font-family/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-font-family/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-font-family" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-font-family/rollup.config.js b/packages/extension-font-family/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-font-family/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-font-family/tsup.config.ts b/packages/extension-font-family/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-font-family/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-gapcursor/package.json b/packages/extension-gapcursor/package.json index 308788805..40eacb1ea 100644 --- a/packages/extension-gapcursor/package.json +++ b/packages/extension-gapcursor/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-gapcursor/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-gapcursor/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-gapcursor" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-gapcursor/rollup.config.js b/packages/extension-gapcursor/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-gapcursor/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-gapcursor/tsup.config.ts b/packages/extension-gapcursor/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-gapcursor/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-hard-break/package.json b/packages/extension-hard-break/package.json index fd93cd3f6..a277333bc 100644 --- a/packages/extension-hard-break/package.json +++ b/packages/extension-hard-break/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-hard-break/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-hard-break/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-hard-break" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-hard-break/rollup.config.js b/packages/extension-hard-break/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-hard-break/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-hard-break/tsup.config.ts b/packages/extension-hard-break/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-hard-break/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-heading/package.json b/packages/extension-heading/package.json index 969be0a12..041422454 100644 --- a/packages/extension-heading/package.json +++ b/packages/extension-heading/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-heading/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-heading/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-heading" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-heading/rollup.config.js b/packages/extension-heading/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-heading/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-heading/tsup.config.ts b/packages/extension-heading/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-heading/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-highlight/package.json b/packages/extension-highlight/package.json index d9f8698b3..6bd9b26de 100644 --- a/packages/extension-highlight/package.json +++ b/packages/extension-highlight/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-highlight/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-highlight/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-highlight" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-highlight/rollup.config.js b/packages/extension-highlight/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-highlight/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-highlight/tsup.config.ts b/packages/extension-highlight/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-highlight/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-history/package.json b/packages/extension-history/package.json index 941de2de8..455596d49 100644 --- a/packages/extension-history/package.json +++ b/packages/extension-history/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-history/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-history/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-history" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-history/rollup.config.js b/packages/extension-history/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-history/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-history/tsup.config.ts b/packages/extension-history/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-history/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-horizontal-rule/package.json b/packages/extension-horizontal-rule/package.json index a1a271160..5f819e34c 100644 --- a/packages/extension-horizontal-rule/package.json +++ b/packages/extension-horizontal-rule/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-horizontal-rule/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-horizontal-rule/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-horizontal-rule" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-horizontal-rule/rollup.config.js b/packages/extension-horizontal-rule/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-horizontal-rule/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-horizontal-rule/tsup.config.ts b/packages/extension-horizontal-rule/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-horizontal-rule/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-image/package.json b/packages/extension-image/package.json index d05f446ef..f1e57e3df 100644 --- a/packages/extension-image/package.json +++ b/packages/extension-image/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-image/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-image/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-image" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-image/rollup.config.js b/packages/extension-image/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-image/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-image/tsup.config.ts b/packages/extension-image/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-image/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-italic/package.json b/packages/extension-italic/package.json index e983048da..e68c802c9 100644 --- a/packages/extension-italic/package.json +++ b/packages/extension-italic/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-italic/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-italic/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-italic" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-italic/rollup.config.js b/packages/extension-italic/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-italic/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-italic/tsup.config.ts b/packages/extension-italic/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-italic/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-link/package.json b/packages/extension-link/package.json index b522380e8..379caa784 100644 --- a/packages/extension-link/package.json +++ b/packages/extension-link/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-link/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-link/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -45,7 +45,6 @@ "directory": "packages/extension-link" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-link/rollup.config.js b/packages/extension-link/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-link/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-link/tsup.config.ts b/packages/extension-link/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-link/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-list-item/package.json b/packages/extension-list-item/package.json index 5ee35769e..2515c400b 100644 --- a/packages/extension-list-item/package.json +++ b/packages/extension-list-item/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-list-item/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-list-item/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-list-item" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-list-item/rollup.config.js b/packages/extension-list-item/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-list-item/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-list-item/tsup.config.ts b/packages/extension-list-item/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-list-item/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-list-keymap/package.json b/packages/extension-list-keymap/package.json index 764329994..95465f86a 100644 --- a/packages/extension-list-keymap/package.json +++ b/packages/extension-list-keymap/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-list-keymap/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-list-keymap/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-list-keymap" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-list-keymap/rollup.config.js b/packages/extension-list-keymap/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-list-keymap/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-list-keymap/tsup.config.ts b/packages/extension-list-keymap/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-list-keymap/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-mention/package.json b/packages/extension-mention/package.json index 9ce489321..3d2a1bbd9 100644 --- a/packages/extension-mention/package.json +++ b/packages/extension-mention/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-mention/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-mention/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -44,7 +44,6 @@ "directory": "packages/extension-mention" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-mention/rollup.config.js b/packages/extension-mention/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-mention/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-mention/tsup.config.ts b/packages/extension-mention/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-mention/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-ordered-list/package.json b/packages/extension-ordered-list/package.json index 73c9e4023..220c1883a 100644 --- a/packages/extension-ordered-list/package.json +++ b/packages/extension-ordered-list/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-ordered-list/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-ordered-list/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-ordered-list" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-ordered-list/rollup.config.js b/packages/extension-ordered-list/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-ordered-list/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-ordered-list/src/ordered-list.ts b/packages/extension-ordered-list/src/ordered-list.ts index 46679f96c..f995d1e65 100644 --- a/packages/extension-ordered-list/src/ordered-list.ts +++ b/packages/extension-ordered-list/src/ordered-list.ts @@ -1,7 +1,7 @@ import { mergeAttributes, Node, wrappingInputRule } from '@tiptap/core' -import ListItem from '../../extension-list-item/src/index.js' -import TextStyle from '../../extension-text-style/src/index.js' +const ListItemName = 'listItem' +const TextStyleName = 'textStyle' export interface OrderedListOptions { /** @@ -107,7 +107,7 @@ export const OrderedList = Node.create({ return { toggleOrderedList: () => ({ commands, chain }) => { if (this.options.keepAttributes) { - return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItem.name, this.editor.getAttributes(TextStyle.name)).run() + return chain().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ListItemName, this.editor.getAttributes(TextStyleName)).run() } return commands.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks) }, @@ -134,7 +134,7 @@ export const OrderedList = Node.create({ type: this.type, keepMarks: this.options.keepMarks, keepAttributes: this.options.keepAttributes, - getAttributes: match => ({ start: +match[1], ...this.editor.getAttributes(TextStyle.name) }), + getAttributes: match => ({ start: +match[1], ...this.editor.getAttributes(TextStyleName) }), joinPredicate: (match, node) => node.childCount + node.attrs.start === +match[1], editor: this.editor, }) diff --git a/packages/extension-ordered-list/tsup.config.ts b/packages/extension-ordered-list/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-ordered-list/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-paragraph/package.json b/packages/extension-paragraph/package.json index 744bee107..ab7e47bb2 100644 --- a/packages/extension-paragraph/package.json +++ b/packages/extension-paragraph/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-paragraph/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-paragraph/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-paragraph" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-paragraph/rollup.config.js b/packages/extension-paragraph/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-paragraph/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-paragraph/tsup.config.ts b/packages/extension-paragraph/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-paragraph/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-placeholder/package.json b/packages/extension-placeholder/package.json index 631360fc1..aa658f80d 100644 --- a/packages/extension-placeholder/package.json +++ b/packages/extension-placeholder/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-placeholder/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-placeholder/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-placeholder" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-placeholder/rollup.config.js b/packages/extension-placeholder/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-placeholder/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-placeholder/tsup.config.ts b/packages/extension-placeholder/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-placeholder/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-strike/package.json b/packages/extension-strike/package.json index 850210090..caca6199f 100644 --- a/packages/extension-strike/package.json +++ b/packages/extension-strike/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-strike/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-strike/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-strike" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-strike/rollup.config.js b/packages/extension-strike/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-strike/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-strike/tsup.config.ts b/packages/extension-strike/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-strike/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-subscript/package.json b/packages/extension-subscript/package.json index 777906f2d..bc415494a 100644 --- a/packages/extension-subscript/package.json +++ b/packages/extension-subscript/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-subscript/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-subscript/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-subscript" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-subscript/rollup.config.js b/packages/extension-subscript/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-subscript/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-subscript/tsup.config.ts b/packages/extension-subscript/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-subscript/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-superscript/package.json b/packages/extension-superscript/package.json index f2aa324a8..342c729ae 100644 --- a/packages/extension-superscript/package.json +++ b/packages/extension-superscript/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-superscript/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-superscript/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-superscript" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-superscript/rollup.config.js b/packages/extension-superscript/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-superscript/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-superscript/tsup.config.ts b/packages/extension-superscript/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-superscript/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-table-cell/package.json b/packages/extension-table-cell/package.json index 6419593d8..459a7a85d 100644 --- a/packages/extension-table-cell/package.json +++ b/packages/extension-table-cell/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table-cell/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table-cell/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-table-cell" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-table-cell/rollup.config.js b/packages/extension-table-cell/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-table-cell/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-table-cell/tsup.config.ts b/packages/extension-table-cell/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-table-cell/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-table-header/package.json b/packages/extension-table-header/package.json index e9d2b8c55..c9c985021 100644 --- a/packages/extension-table-header/package.json +++ b/packages/extension-table-header/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table-header/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table-header/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-table-header" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-table-header/rollup.config.js b/packages/extension-table-header/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-table-header/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-table-header/tsup.config.ts b/packages/extension-table-header/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-table-header/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-table-row/package.json b/packages/extension-table-row/package.json index e8d99d264..bf30a3de1 100644 --- a/packages/extension-table-row/package.json +++ b/packages/extension-table-row/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table-row/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table-row/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-table-row" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-table-row/rollup.config.js b/packages/extension-table-row/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-table-row/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-table-row/tsup.config.ts b/packages/extension-table-row/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-table-row/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-table/package.json b/packages/extension-table/package.json index d140081c9..958973b23 100644 --- a/packages/extension-table/package.json +++ b/packages/extension-table/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-table/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-table/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-table" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-table/rollup.config.js b/packages/extension-table/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-table/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-table/tsup.config.ts b/packages/extension-table/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-table/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-task-item/package.json b/packages/extension-task-item/package.json index 5e699c401..5a54ae35f 100644 --- a/packages/extension-task-item/package.json +++ b/packages/extension-task-item/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-task-item/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-task-item/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -42,7 +42,6 @@ "directory": "packages/extension-task-item" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-task-item/rollup.config.js b/packages/extension-task-item/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-task-item/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-task-item/tsup.config.ts b/packages/extension-task-item/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-task-item/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-task-list/package.json b/packages/extension-task-list/package.json index 9f7628231..330b6c220 100644 --- a/packages/extension-task-list/package.json +++ b/packages/extension-task-list/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-task-list/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-task-list/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-task-list" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-task-list/rollup.config.js b/packages/extension-task-list/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-task-list/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-task-list/tsup.config.ts b/packages/extension-task-list/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-task-list/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-text-align/package.json b/packages/extension-text-align/package.json index 95b59704a..2014a65f9 100644 --- a/packages/extension-text-align/package.json +++ b/packages/extension-text-align/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-text-align/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-text-align/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-text-align" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-text-align/rollup.config.js b/packages/extension-text-align/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-text-align/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-text-align/tsup.config.ts b/packages/extension-text-align/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-text-align/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-text-style/package.json b/packages/extension-text-style/package.json index 7c795c1d8..4bb8b6311 100644 --- a/packages/extension-text-style/package.json +++ b/packages/extension-text-style/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-text-style/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-text-style/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-text-style" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-text-style/rollup.config.js b/packages/extension-text-style/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-text-style/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-text-style/tsup.config.ts b/packages/extension-text-style/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-text-style/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-text/package.json b/packages/extension-text/package.json index 5388d31e6..47fc46961 100644 --- a/packages/extension-text/package.json +++ b/packages/extension-text/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-text/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-text/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-text" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-text/rollup.config.js b/packages/extension-text/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-text/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-text/tsup.config.ts b/packages/extension-text/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-text/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-typography/package.json b/packages/extension-typography/package.json index 180ecd7d5..59115f392 100644 --- a/packages/extension-typography/package.json +++ b/packages/extension-typography/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-typography/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-typography/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-typography" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-typography/rollup.config.js b/packages/extension-typography/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-typography/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-typography/tsup.config.ts b/packages/extension-typography/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-typography/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-underline/package.json b/packages/extension-underline/package.json index 94faaca78..e8ae2bee1 100644 --- a/packages/extension-underline/package.json +++ b/packages/extension-underline/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-underline/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-underline/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-underline" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-underline/rollup.config.js b/packages/extension-underline/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-underline/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-underline/tsup.config.ts b/packages/extension-underline/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-underline/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/extension-youtube/package.json b/packages/extension-youtube/package.json index 29473cec7..93b60023b 100644 --- a/packages/extension-youtube/package.json +++ b/packages/extension-youtube/package.json @@ -15,7 +15,7 @@ "type": "module", "exports": { ".": { - "types": "./dist/packages/extension-youtube/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -23,7 +23,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/extension-youtube/src/index.d.ts", + "types": "dist/index.d.ts", "files": [ "src", "dist" @@ -40,7 +40,6 @@ "directory": "packages/extension-youtube" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/extension-youtube/rollup.config.js b/packages/extension-youtube/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/extension-youtube/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/extension-youtube/tsup.config.ts b/packages/extension-youtube/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/extension-youtube/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/html/package.json b/packages/html/package.json index b710d106b..ccc70ffde 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/html/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/html/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", @@ -45,7 +45,6 @@ "directory": "packages/html" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/html/rollup.config.js b/packages/html/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/html/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/html/tsup.config.ts b/packages/html/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/html/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/pm/package.json b/packages/pm/package.json index 50b3b127d..c4ff25416 100644 --- a/packages/pm/package.json +++ b/packages/pm/package.json @@ -15,94 +15,94 @@ "type": "module", "exports": { "./changeset": { - "types": "./changeset/dist/index.d.ts", - "import": "./changeset/dist/index.js", - "require": "./changeset/dist/index.cjs" + "types": "./dist/changeset/index.d.ts", + "import": "./dist/changeset/index.js", + "require": "./dist/changeset/index.cjs" }, "./collab": { - "types": "./collab/dist/index.d.ts", - "import": "./collab/dist/index.js", - "require": "./collab/dist/index.cjs" + "types": "./dist/collab/index.d.ts", + "import": "./dist/collab/index.js", + "require": "./dist/collab/index.cjs" }, "./commands": { - "types": "./commands/dist/index.d.ts", - "import": "./commands/dist/index.js", - "require": "./commands/dist/index.cjs" + "types": "./dist/commands/index.d.ts", + "import": "./dist/commands/index.js", + "require": "./dist/commands/index.cjs" }, "./dropcursor": { - "types": "./dropcursor/dist/index.d.ts", - "import": "./dropcursor/dist/index.js", - "require": "./dropcursor/dist/index.cjs" + "types": "./dist/dropcursor/index.d.ts", + "import": "./dist/dropcursor/index.js", + "require": "./dist/dropcursor/index.cjs" }, "./gapcursor": { - "types": "./gapcursor/dist/index.d.ts", - "import": "./gapcursor/dist/index.js", - "require": "./gapcursor/dist/index.cjs" + "types": "./dist/gapcursor/index.d.ts", + "import": "./dist/gapcursor/index.js", + "require": "./dist/gapcursor/index.cjs" }, "./history": { - "types": "./history/dist/index.d.ts", - "import": "./history/dist/index.js", - "require": "./history/dist/index.cjs" + "types": "./dist/history/index.d.ts", + "import": "./dist/history/index.js", + "require": "./dist/history/index.cjs" }, "./inputrules": { - "types": "./inputrules/dist/index.d.ts", - "import": "./inputrules/dist/index.js", - "require": "./inputrules/dist/index.cjs" + "types": "./dist/inputrules/index.d.ts", + "import": "./dist/inputrules/index.js", + "require": "./dist/inputrules/index.cjs" }, "./keymap": { - "types": "./keymap/dist/index.d.ts", - "import": "./keymap/dist/index.js", - "require": "./keymap/dist/index.cjs" + "types": "./dist/keymap/index.d.ts", + "import": "./dist/keymap/index.js", + "require": "./dist/keymap/index.cjs" }, "./markdown": { - "types": "./markdown/dist/index.d.ts", - "import": "./markdown/dist/index.js", - "require": "./markdown/dist/index.cjs" + "types": "./dist/markdown/index.d.ts", + "import": "./dist/markdown/index.js", + "require": "./dist/markdown/index.cjs" }, "./menu": { - "types": "./menu/dist/index.d.ts", - "import": "./menu/dist/index.js", - "require": "./menu/dist/index.cjs" + "types": "./dist/menu/index.d.ts", + "import": "./dist/menu/index.js", + "require": "./dist/menu/index.cjs" }, "./model": { - "types": "./model/dist/index.d.ts", - "import": "./model/dist/index.js", - "require": "./model/dist/index.cjs" + "types": "./dist/model/index.d.ts", + "import": "./dist/model/index.js", + "require": "./dist/model/index.cjs" }, "./schema-basic": { - "types": "./schema-basic/dist/index.d.ts", - "import": "./schema-basic/dist/index.js", - "require": "./schema-basic/dist/index.cjs" + "types": "./dist/schema-basic/index.d.ts", + "import": "./dist/schema-basic/index.js", + "require": "./dist/schema-basic/index.cjs" }, "./schema-list": { - "types": "./schema-list/dist/index.d.ts", - "import": "./schema-list/dist/index.js", - "require": "./schema-list/dist/index.cjs" + "types": "./dist/schema-list/index.d.ts", + "import": "./dist/schema-list/index.js", + "require": "./dist/schema-list/index.cjs" }, "./state": { - "types": "./state/dist/index.d.ts", - "import": "./state/dist/index.js", - "require": "./state/dist/index.cjs" + "types": "./dist/state/index.d.ts", + "import": "./dist/state/index.js", + "require": "./dist/state/index.cjs" }, "./tables": { - "types": "./tables/dist/index.d.ts", - "import": "./tables/dist/index.js", - "require": "./tables/dist/index.cjs" + "types": "./dist/tables/index.d.ts", + "import": "./dist/tables/index.js", + "require": "./dist/tables/index.cjs" }, "./trailing-node": { - "types": "./trailing-node/dist/index.d.ts", - "import": "./trailing-node/dist/index.js", - "require": "./trailing-node/dist/index.cjs" + "types": "./dist/trailing-node/index.d.ts", + "import": "./dist/trailing-node/index.js", + "require": "./dist/trailing-node/index.cjs" }, "./transform": { - "types": "./transform/dist/index.d.ts", - "import": "./transform/dist/index.js", - "require": "./transform/dist/index.cjs" + "types": "./dist/transform/index.d.ts", + "import": "./dist/transform/index.js", + "require": "./dist/transform/index.cjs" }, "./view": { - "types": "./view/dist/index.d.ts", - "import": "./view/dist/index.js", - "require": "./view/dist/index.cjs" + "types": "./dist/view/index.d.ts", + "import": "./dist/view/index.js", + "require": "./dist/view/index.cjs" } }, "files": [ @@ -151,24 +151,6 @@ "directory": "packages/pm" }, "scripts": { - "build": "npm run build:changeset && npm run build:collab && npm run build:commands && npm run build:dropcursor && npm run build:gapcursor && npm run build:history && npm run build:inputrules && npm run build:keymap && npm run build:markdown && npm run build:menu && npm run build:model && npm run build:schema-basic && npm run build:schema-list && npm run build:state && npm run build:tables && npm run build:trailing-node && npm run build:transform && npm run build:view", - "build:changeset": "tsup \"changeset/index.ts\" --out-dir changeset/dist", - "build:collab": "tsup \"collab/index.ts\" --out-dir collab/dist", - "build:commands": "tsup \"commands/index.ts\" --out-dir commands/dist", - "build:dropcursor": "tsup \"dropcursor/index.ts\" --out-dir dropcursor/dist", - "build:gapcursor": "tsup \"gapcursor/index.ts\" --out-dir gapcursor/dist", - "build:history": "tsup \"history/index.ts\" --out-dir history/dist", - "build:inputrules": "tsup \"inputrules/index.ts\" --out-dir inputrules/dist", - "build:keymap": "tsup \"keymap/index.ts\" --out-dir keymap/dist", - "build:markdown": "tsup \"markdown/index.ts\" --out-dir markdown/dist", - "build:menu": "tsup \"menu/index.ts\" --out-dir menu/dist", - "build:model": "tsup \"model/index.ts\" --out-dir model/dist", - "build:schema-basic": "tsup \"schema-basic/index.ts\" --out-dir schema-basic/dist", - "build:schema-list": "tsup \"schema-list/index.ts\" --out-dir schema-list/dist", - "build:state": "tsup \"state/index.ts\" --out-dir state/dist", - "build:tables": "tsup \"tables/index.ts\" --out-dir tables/dist", - "build:trailing-node": "tsup \"trailing-node/index.ts\" --out-dir trailing-node/dist", - "build:transform": "tsup \"transform/index.ts\" --out-dir transform/dist", - "build:view": "tsup \"view/index.ts\" --out-dir view/dist" + "build": "tsup" } } diff --git a/packages/pm/tsconfig.json b/packages/pm/tsconfig.json deleted file mode 100644 index 4082f16a5..000000000 --- a/packages/pm/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../tsconfig.json" -} diff --git a/packages/pm/tsup.config.ts b/packages/pm/tsup.config.ts index 303d65757..66a5557b7 100644 --- a/packages/pm/tsup.config.ts +++ b/packages/pm/tsup.config.ts @@ -1,15 +1,33 @@ import { defineConfig } from 'tsup' -export default defineConfig(options => { - return { - entry: options.entry, - outDir: options.outDir, - dts: true, - splitting: true, - clean: true, - format: [ - 'esm', - 'cjs', - ], - } +export default defineConfig({ + entry: [ + 'changeset/index.ts', + 'collab/index.ts', + 'commands/index.ts', + 'dropcursor/index.ts', + 'gapcursor/index.ts', + 'history/index.ts', + 'inputrules/index.ts', + 'keymap/index.ts', + 'markdown/index.ts', + 'menu/index.ts', + 'model/index.ts', + 'schema-basic/index.ts', + 'schema-list/index.ts', + 'state/index.ts', + 'tables/index.ts', + 'trailing-node/index.ts', + 'transform/index.ts', + 'view/index.ts', + ], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + splitting: true, + clean: true, + format: [ + 'esm', + 'cjs', + ], }) diff --git a/packages/pm/turbo.json b/packages/pm/turbo.json deleted file mode 100644 index d49a95764..000000000 --- a/packages/pm/turbo.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://turbo.build/schema.json", - "tasks": { - "build": { - "inputs": [ - "changeset/**", - "collab/**", - "commands/**", - "dropcursor/**", - "gapcursor/**", - "history/**", - "inputrules/**", - "keymap/**", - "markdown/**", - "menu/**", - "model/**", - "schema-basic/**", - "schema-list/**", - "state/**", - "tables/**", - "trailing-node/**", - "transform/**", - "view/**" - ], - "dependsOn": ["^build"], - "outputs": ["dist/**"] - } - }, - "extends": ["//"] -} diff --git a/packages/react/package.json b/packages/react/package.json index f6683f82a..b10a24cb8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/react/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/react/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", @@ -55,7 +55,6 @@ }, "sideEffects": false, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/react/rollup.config.js b/packages/react/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/react/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/react/tsup.config.ts b/packages/react/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/react/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/starter-kit/package.json b/packages/starter-kit/package.json index 1bca9f9e5..0f7f0efbf 100644 --- a/packages/starter-kit/package.json +++ b/packages/starter-kit/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/starter-kit/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/starter-kit/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", @@ -55,7 +55,6 @@ "directory": "packages/starter-kit" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/starter-kit/rollup.config.js b/packages/starter-kit/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/starter-kit/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/starter-kit/tsup.config.ts b/packages/starter-kit/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/starter-kit/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/suggestion/package.json b/packages/suggestion/package.json index d985a1b01..11e16f132 100644 --- a/packages/suggestion/package.json +++ b/packages/suggestion/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/suggestion/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/suggestion/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", @@ -42,7 +42,6 @@ "directory": "packages/suggestion" }, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/suggestion/rollup.config.js b/packages/suggestion/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/suggestion/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/suggestion/tsup.config.ts b/packages/suggestion/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/suggestion/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/tsup.config.ts b/packages/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/vue-2/package.json b/packages/vue-2/package.json index 706566bd6..9577e0d09 100644 --- a/packages/vue-2/package.json +++ b/packages/vue-2/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/vue-2/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/vue-2/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", @@ -50,7 +50,6 @@ }, "sideEffects": false, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/vue-2/rollup.config.js b/packages/vue-2/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/vue-2/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/vue-2/tsup.config.ts b/packages/vue-2/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/vue-2/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/packages/vue-3/package.json b/packages/vue-3/package.json index ea9a5d1ac..db0f1f7d5 100644 --- a/packages/vue-3/package.json +++ b/packages/vue-3/package.json @@ -14,7 +14,7 @@ }, "exports": { ".": { - "types": "./dist/packages/vue-3/src/index.d.ts", + "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } @@ -22,7 +22,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "umd": "dist/index.umd.js", - "types": "dist/packages/vue-3/src/index.d.ts", + "types": "dist/index.d.ts", "type": "module", "files": [ "src", @@ -49,7 +49,6 @@ }, "sideEffects": false, "scripts": { - "clean": "rm -rf dist", - "build": "npm run clean && rollup -c" + "build": "tsup" } } diff --git a/packages/vue-3/rollup.config.js b/packages/vue-3/rollup.config.js deleted file mode 100644 index cb8e99403..000000000 --- a/packages/vue-3/rollup.config.js +++ /dev/null @@ -1,5 +0,0 @@ -import { baseConfig } from '@tiptap-shared/rollup-config' - -import pkg from './package.json' assert { type: 'json' } - -export default baseConfig({ input: 'src/index.ts', pkg }) diff --git a/packages/vue-3/tsup.config.ts b/packages/vue-3/tsup.config.ts new file mode 100644 index 000000000..9a367d572 --- /dev/null +++ b/packages/vue-3/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + tsconfig: '../../tsconfig.build.json', + outDir: 'dist', + dts: true, + clean: true, + sourcemap: true, + format: [ + 'esm', + 'cjs', + ], +}) diff --git a/shared/rollup-config/index.js b/shared/rollup-config/index.js deleted file mode 100644 index 5a5703510..000000000 --- a/shared/rollup-config/index.js +++ /dev/null @@ -1,62 +0,0 @@ -import babel from '@rollup/plugin-babel' -import commonjs from '@rollup/plugin-commonjs' -import resolve from '@rollup/plugin-node-resolve' -import autoExternal from 'rollup-plugin-auto-external' -import sourcemaps from 'rollup-plugin-sourcemaps' -import typescript from 'rollup-plugin-typescript2' - -export const baseConfig = ({ - input = 'src/index.ts', - pkg, -}) => ({ - external: [/@tiptap\/pm\/.*/], - input, - output: [ - { - name: pkg.name, - file: pkg.umd, - format: 'umd', - sourcemap: true, - exports: 'named', - }, - { - name: pkg.name, - file: pkg.main, - format: 'cjs', - interop: 'compat', - sourcemap: true, - exports: 'named', - }, - { - name: pkg.name, - file: pkg.module, - format: 'es', - sourcemap: true, - exports: 'named', - }, - ], - plugins: [ - autoExternal({ - packagePath: './package.json', - }), - sourcemaps(), - resolve(), - commonjs(), - babel({ - babelHelpers: 'bundled', - exclude: '../../node_modules/**', - }), - typescript({ - tsconfig: '../../tsconfig.json', - tsconfigOverride: { - compilerOptions: { - declaration: true, - paths: { - '@tiptap/*': ['packages/*/src'], - }, - }, - include: null, - }, - }), - ], -}) diff --git a/shared/rollup-config/package.json b/shared/rollup-config/package.json deleted file mode 100644 index f6b1ee219..000000000 --- a/shared/rollup-config/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "@tiptap-shared/rollup-config", - "private": true, - "main": "index.js", - "type": "module" -} diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 000000000..cf4a46028 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": { + "@tiptap/*": ["packages/*/dist", "packages/*/src"] + }, + }, +} diff --git a/tsconfig.json b/tsconfig.json index a87ea4b78..ee3eefe95 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "noEmit": true, "target": "es2019", "module": "esnext", "strict": true, @@ -16,7 +17,7 @@ "allowJs": true, "checkJs": false, "paths": { - "@tiptap/*": ["packages/*/dist", "packages/*/src"] + "@tiptap/*": ["packages/*/src", "packages/*/dist"] }, "lib": [ "esnext", diff --git a/turbo.json b/turbo.json index db854deb7..9dbedf3f2 100644 --- a/turbo.json +++ b/turbo.json @@ -2,7 +2,7 @@ "$schema": "https://turbo.build/schema.json", "tasks": { "build": { - "inputs": ["src/**", "rollup.config.js"], + "inputs": ["src/**", "tsup.config.ts"], "dependsOn": ["^build"], "outputs": ["dist/**"] },