diff --git a/lerna.json b/lerna.json index d34e2be1..f79642aa 100644 --- a/lerna.json +++ b/lerna.json @@ -4,5 +4,11 @@ ], "npmClient": "yarn", "version": "independent", - "useWorkspaces": false + "useWorkspaces": false, + "command": { + "publish": { + "conventionalCommits": true, + "yes": true + } + } } diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 4b5b28cf..d3af1ef4 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -3,6 +3,25 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.2...@tiptap/core@2.0.0-alpha.3) (2020-11-16) + + +### Reverts + +* Revert "use global namespace" ([0c9ce26](https://github.com/ueberdosis/tiptap-next/commit/0c9ce26c02c07d88a757c01b0a9d7f9e2b0b7502)) + + + + + +# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.1...@tiptap/core@2.0.0-alpha.2) (2020-11-16) + +**Note:** Version bump only for package @tiptap/core + + + + + # [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.0...@tiptap/core@2.0.0-alpha.1) (2020-11-16) **Note:** Version bump only for package @tiptap/core diff --git a/packages/core/package.json b/packages/core/package.json index 4013c39f..8477f343 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,8 +1,13 @@ { "name": "@tiptap/core", - "version": "2.0.0-alpha.1", + "version": "2.0.0-alpha.3", "homepage": "https://tiptap.dev", - "keywords": ["tiptap", "headless", "wysiwyg", "text editor"], + "keywords": [ + "tiptap", + "headless", + "wysiwyg", + "text editor" + ], "license": "MIT", "funding": { "type": "github", diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index f22cd5d1..5791204a 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -21,6 +21,8 @@ import { Extensions, UnionToIntersection } from './types' import * as extensions from './extensions' import style from './style' +export { extensions } + export type Command = (props: { editor: Editor, tr: Transaction, @@ -50,9 +52,9 @@ export type UnfilteredCommands = { : never } -type ValuesOf = T[keyof T]; -type KeysWithTypeOf = ({[P in keyof T]: T[P] extends Type ? P : never })[keyof T] -type AllCommands = UnionToIntersection>>> +export type ValuesOf = T[keyof T]; +export type KeysWithTypeOf = ({[P in keyof T]: T[P] extends Type ? P : never })[keyof T] +export type AllCommands = UnionToIntersection>>> export type SingleCommands = { [Item in keyof AllCommands]: AllCommands[Item] extends (...args: any[]) => any diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 63dee913..a1aa1c85 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,10 +1,4 @@ -export { - Editor, - Command, - CommandsSpec, - AllExtensions, -} from './Editor' - +export * from './Editor' export * from './Extension' export * from './Node' export * from './Mark' diff --git a/rollup.config.js b/rollup.config.js index a8ab7fd0..5044010a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -90,7 +90,7 @@ async function build(commandLineArgs) { compilerOptions: { declaration: true, paths: { - '@tiptap/*': ['*/src'], + '@tiptap/*': ['packages/*/src'], }, }, include: null, @@ -124,7 +124,7 @@ async function build(commandLineArgs) { tsconfigOverride: { compilerOptions: { paths: { - '@tiptap/*': ['*/src'], + '@tiptap/*': ['packages/*/src'], }, }, },