mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-23 19:19:03 +08:00
build: use tsup for compilation (#5455)
* build: use tsup for compilation * chore: rm turbo file
This commit is contained in:
parent
08593a279f
commit
a92f4a6663
59
.changeset/chilled-trees-agree.md
Normal file
59
.changeset/chilled-trees-agree.md
Normal file
@ -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
|
2168
package-lock.json
generated
2168
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
@ -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'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { MarkConfig, NodeConfig } from '../index.js'
|
||||
import type { MarkConfig, NodeConfig } from '../index.js'
|
||||
import {
|
||||
AnyConfig,
|
||||
Attribute,
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
14
packages/core/tsup.config.ts
Normal file
14
packages/core/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-blockquote/tsup.config.ts
Normal file
14
packages/extension-blockquote/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-bold/tsup.config.ts
Normal file
14
packages/extension-bold/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-bubble-menu/tsup.config.ts
Normal file
14
packages/extension-bubble-menu/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
@ -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<BulletListOptions>({
|
||||
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<BulletListOptions>({
|
||||
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,
|
||||
})
|
||||
}
|
||||
|
14
packages/extension-bullet-list/tsup.config.ts
Normal file
14
packages/extension-bullet-list/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-character-count/tsup.config.ts
Normal file
14
packages/extension-character-count/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-code-block-lowlight/tsup.config.ts
Normal file
14
packages/extension-code-block-lowlight/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-code-block/tsup.config.ts
Normal file
14
packages/extension-code-block/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-code/tsup.config.ts
Normal file
14
packages/extension-code/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-collaboration-cursor/tsup.config.ts
Normal file
14
packages/extension-collaboration-cursor/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-collaboration/tsup.config.ts
Normal file
14
packages/extension-collaboration/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-color/tsup.config.ts
Normal file
14
packages/extension-color/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-document/tsup.config.ts
Normal file
14
packages/extension-document/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-dropcursor/tsup.config.ts
Normal file
14
packages/extension-dropcursor/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-floating-menu/tsup.config.ts
Normal file
14
packages/extension-floating-menu/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-focus/tsup.config.ts
Normal file
14
packages/extension-focus/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-font-family/tsup.config.ts
Normal file
14
packages/extension-font-family/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-gapcursor/tsup.config.ts
Normal file
14
packages/extension-gapcursor/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-hard-break/tsup.config.ts
Normal file
14
packages/extension-hard-break/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-heading/tsup.config.ts
Normal file
14
packages/extension-heading/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-highlight/tsup.config.ts
Normal file
14
packages/extension-highlight/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-history/tsup.config.ts
Normal file
14
packages/extension-history/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-horizontal-rule/tsup.config.ts
Normal file
14
packages/extension-horizontal-rule/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-image/tsup.config.ts
Normal file
14
packages/extension-image/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-italic/tsup.config.ts
Normal file
14
packages/extension-italic/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-link/tsup.config.ts
Normal file
14
packages/extension-link/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-list-item/tsup.config.ts
Normal file
14
packages/extension-list-item/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-list-keymap/tsup.config.ts
Normal file
14
packages/extension-list-keymap/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
14
packages/extension-mention/tsup.config.ts
Normal file
14
packages/extension-mention/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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 })
|
@ -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<OrderedListOptions>({
|
||||
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<OrderedListOptions>({
|
||||
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,
|
||||
})
|
||||
|
14
packages/extension-ordered-list/tsup.config.ts
Normal file
14
packages/extension-ordered-list/tsup.config.ts
Normal file
@ -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',
|
||||
],
|
||||
})
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user