mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
fix build for now
This commit is contained in:
parent
960368db0e
commit
d3b4e7a1d4
@ -111,7 +111,7 @@ module.exports = function (api) {
|
||||
.map(name => name.replace('../packages/', ''))
|
||||
.forEach(name => {
|
||||
config.resolve.alias
|
||||
.set(`@tiptap/${name}`, path.resolve(`../packages/${name}/index.ts`))
|
||||
.set(`@tiptap/${name}`, path.resolve(`../packages/${name}/src/index.ts`))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
@ -1,16 +0,0 @@
|
||||
export { Editor, Command, CommandsSpec } from './src/Editor'
|
||||
|
||||
export * from './src/Extension'
|
||||
export * from './src/NodeExtension'
|
||||
export * from './src/MarkExtension'
|
||||
export * from './src/types'
|
||||
|
||||
export { default as nodeInputRule } from './src/inputRules/nodeInputRule'
|
||||
export { default as markInputRule } from './src/inputRules/markInputRule'
|
||||
export { default as markPasteRule } from './src/pasteRules/markPasteRule'
|
||||
|
||||
export { default as getSchema } from './src/utils/getSchema'
|
||||
export { default as generateHTML } from './src/utils/generateHTML'
|
||||
export { default as getHTMLFromFragment } from './src/utils/getHTMLFromFragment'
|
||||
export { default as getMarkAttrs } from './src/utils/getMarkAttrs'
|
||||
export { default as mergeAttributes } from './src/utils/mergeAttributes'
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-core.umd.js",
|
||||
"module": "dist/tiptap-core.esm.js",
|
||||
"unpkg": "dist/tiptap-core.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
@ -22,8 +21,5 @@
|
||||
"prosemirror-tables": "^1.1.1",
|
||||
"prosemirror-utils": "^1.0.0-0",
|
||||
"prosemirror-view": "^1.16.1"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "microbundle"
|
||||
}
|
||||
}
|
||||
|
16
packages/core/src/index.ts
Normal file
16
packages/core/src/index.ts
Normal file
@ -0,0 +1,16 @@
|
||||
export { Editor, Command, CommandsSpec } from './Editor'
|
||||
|
||||
export * from './Extension'
|
||||
export * from './NodeExtension'
|
||||
export * from './MarkExtension'
|
||||
export * from './types'
|
||||
|
||||
export { default as nodeInputRule } from './inputRules/nodeInputRule'
|
||||
export { default as markInputRule } from './inputRules/markInputRule'
|
||||
export { default as markPasteRule } from './pasteRules/markPasteRule'
|
||||
|
||||
export { default as getSchema } from './utils/getSchema'
|
||||
export { default as generateHTML } from './utils/generateHTML'
|
||||
export { default as getHTMLFromFragment } from './utils/getHTMLFromFragment'
|
||||
export { default as getMarkAttrs } from './utils/getMarkAttrs'
|
||||
export { default as mergeAttributes } from './utils/mergeAttributes'
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-blockquote.umd.js",
|
||||
"module": "dist/tiptap-extension-blockquote.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-blockquote.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-bold.umd.js",
|
||||
"module": "dist/tiptap-extension-bold.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-bold.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-bullet-list.umd.js",
|
||||
"module": "dist/tiptap-extension-bullet-list.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-bullet-list.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-code-block.umd.js",
|
||||
"module": "dist/tiptap-extension-code-block.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-code-block.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -9,7 +9,7 @@ export const backtickInputRegex = /^```(?<language>[a-z]*)? $/
|
||||
export const tildeInputRegex = /^~~~(?<language>[a-z]*)? $/
|
||||
|
||||
const CodeBlock = createNode({
|
||||
name: 'code_block',
|
||||
name: 'codeBlock',
|
||||
|
||||
defaultOptions: <CodeBlockOptions>{
|
||||
languageClassPrefix: 'language-',
|
||||
@ -71,7 +71,7 @@ const CodeBlock = createNode({
|
||||
addCommands() {
|
||||
return {
|
||||
codeBlock: (attrs?: CodeBlockOptions): Command => ({ commands }) => {
|
||||
return commands.toggleBlockType('code_block', 'paragraph', attrs)
|
||||
return commands.toggleBlockType('codeBlock', 'paragraph', attrs)
|
||||
},
|
||||
}
|
||||
},
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-collaboration-cursor.umd.js",
|
||||
"module": "dist/tiptap-extension-collaboration-cursor.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-collaboration-cursor.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-collaboration.umd.js",
|
||||
"module": "dist/tiptap-extension-collaboration.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-collaboration.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-document.umd.js",
|
||||
"module": "dist/tiptap-extension-document.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-document.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-dropcursor.umd.js",
|
||||
"module": "dist/tiptap-extension-dropcursor.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-dropcursor.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-focus.umd.js",
|
||||
"module": "dist/tiptap-extension-focus.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-focus.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-font-family.umd.js",
|
||||
"module": "dist/tiptap-extension-font-family.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-font-family.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-gapcursor.umd.js",
|
||||
"module": "dist/tiptap-extension-gapcursor.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-gapcursor.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-hard-break.umd.js",
|
||||
"module": "dist/tiptap-extension-hard-break.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-hard-break.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-heading.umd.js",
|
||||
"module": "dist/tiptap-extension-heading.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-heading.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-history.umd.js",
|
||||
"module": "dist/tiptap-extension-history.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-history.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-horizontal-rule.umd.js",
|
||||
"module": "dist/tiptap-extension-horizontal-rule.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-horizontal-rule.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-image.umd.js",
|
||||
"module": "dist/tiptap-extension-image.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-image.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-italic.umd.js",
|
||||
"module": "dist/tiptap-extension-italic.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-italic.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-link.umd.js",
|
||||
"module": "dist/tiptap-extension-link.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-link.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-list-item.umd.js",
|
||||
"module": "dist/tiptap-extension-list-item.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-list-item.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-ordered-list.umd.js",
|
||||
"module": "dist/tiptap-extension-ordered-list.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-ordered-list.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-paragraph.umd.js",
|
||||
"module": "dist/tiptap-extension-paragraph.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-paragraph.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-strike.umd.js",
|
||||
"module": "dist/tiptap-extension-strike.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-strike.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-task-item.umd.js",
|
||||
"module": "dist/tiptap-extension-task-item.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-task-item.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-task-list.umd.js",
|
||||
"module": "dist/tiptap-extension-task-list.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-task-list.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-text-align.umd.js",
|
||||
"module": "dist/tiptap-extension-text-align.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-text-align.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-text-style.umd.js",
|
||||
"module": "dist/tiptap-extension-text-style.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-text-style.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-text.umd.js",
|
||||
"module": "dist/tiptap-extension-text.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-text.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-typography.umd.js",
|
||||
"module": "dist/tiptap-extension-typography.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-typography.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-extension-underline.umd.js",
|
||||
"module": "dist/tiptap-extension-underline.esm.js",
|
||||
"unpkg": "dist/tiptap-extension-underline.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-html.umd.js",
|
||||
"module": "dist/tiptap-html.esm.js",
|
||||
"unpkg": "dist/tiptap-html.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-starter-kit.umd.js",
|
||||
"module": "dist/tiptap-starter-kit.esm.js",
|
||||
"unpkg": "dist/tiptap-starter-kit.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-vue-starter-kit.umd.js",
|
||||
"module": "dist/tiptap-vue-starter-kit.esm.js",
|
||||
"unpkg": "dist/tiptap-vue-starter-kit.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
@ -1,3 +0,0 @@
|
||||
export * from '@tiptap/core'
|
||||
export { default as VueRenderer } from './src/VueRenderer'
|
||||
export { default as EditorContent } from './src/components/EditorContent'
|
@ -6,7 +6,6 @@
|
||||
"umd": "dist/tiptap-vue.umd.js",
|
||||
"module": "dist/tiptap-vue.esm.js",
|
||||
"unpkg": "dist/tiptap-vue.bundle.umd.min.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"dist"
|
||||
|
3
packages/vue/src/index.ts
Normal file
3
packages/vue/src/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export * from '@tiptap/core'
|
||||
export { default as VueRenderer } from './VueRenderer'
|
||||
export { default as EditorContent } from './components/EditorContent'
|
@ -34,7 +34,7 @@ async function build(commandLineArgs) {
|
||||
|
||||
packages.forEach(pkg => {
|
||||
const basePath = path.relative(__dirname, pkg.location)
|
||||
const input = path.join(basePath, 'index.ts')
|
||||
const input = path.join(basePath, 'src/index.ts')
|
||||
const {
|
||||
name,
|
||||
main,
|
||||
|
@ -10,13 +10,11 @@
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"experimentalDecorators": true,
|
||||
"sourceMap": true,
|
||||
"baseUrl": ".",
|
||||
"baseUrl": "./packages",
|
||||
"allowJs": false,
|
||||
"checkJs": false,
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"packages/*"
|
||||
]
|
||||
"@tiptap/*": ["*/src"]
|
||||
},
|
||||
"lib": [
|
||||
"esnext",
|
||||
@ -28,6 +26,9 @@
|
||||
"files": [
|
||||
"./shims/vue.d.ts"
|
||||
],
|
||||
"include": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules",
|
||||
"**/dist"
|
||||
|
Loading…
Reference in New Issue
Block a user