Move back from tsup/esbuild to rollup (#3720)

* fix: bring back global rollup config

* fix: add rollup build for packages except pm

* fix: rollup global build

* fix: fix memory leak on build

* fix(character-count): revert files

* fix: builds run individual per rollup and lerna

* chore: remove old rollup

* fix(blockquote): correct the main module path

* fix(character count): bump version number
This commit is contained in:
Dominik 2023-02-08 11:12:43 +01:00 committed by GitHub
parent e9581283af
commit 243c6ab0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
159 changed files with 4365 additions and 997 deletions

998
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
"lint:staged": "lint-staged",
"test:open": "npm run build:pm && cypress open --project tests",
"test": "npm run build:pm && cypress run --project tests",
"build": "npm run clean:packages && npm run clean:packs && lerna run build",
"build": "lerna run build",
"build:pm": "npm --prefix ./packages/pm run build",
"build:demos": "npm --prefix ./demos run build:demos",
"build:ci": "npm run build",
@ -34,6 +34,7 @@
"prepare": "husky install"
},
"devDependencies": {
"@atomico/rollup-plugin-sizes": "^1.1.4",
"@babel/core": "^7.17.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
@ -41,8 +42,11 @@
"@babel/preset-react": "^7.16.7",
"@cypress/webpack-preprocessor": "^5.11.0",
"@lerna/batch-packages": "^3.16.0",
"@lerna/filter-packages": "^5.0.0",
"@lerna/project": "^5.0.0",
"@lerna/filter-packages": "^5.6.2",
"@lerna/project": "^5.6.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"babel-loader": "^8.2.3",
@ -57,11 +61,15 @@
"husky": "^8.0.1",
"lerna": "^5.5.1",
"lint-staged": "^13.0.3",
"minimist": "^1.2.5",
"minimist": "^1.2.7",
"rollup": "^2.67.0",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.31.2",
"ts-loader": "9.3.1",
"tsup": "^6.5.0",
"typescript": "4.7.4",
"typescript": "^4.5.5",
"webpack": "^5.68.0"
},
"name": "tiptap"
}
}

View File

@ -18,14 +18,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/core/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/core/src/index.d.ts",
"files": [
"src",
"dist"
@ -43,17 +44,7 @@
},
"sideEffects": false,
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-blockquote/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.d.cjs",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-blockquote/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-blockquote"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-bold/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-bold/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-bold"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-bubble-menu/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-bubble-menu/src/index.d.ts",
"files": [
"src",
"dist"
@ -46,17 +47,7 @@
"@types/lodash": "^4.14.191"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-bullet-list/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-bullet-list/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-bullet-list"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.0.0-beta.213](https://github.com/ueberdosis/tiptap/compare/v2.0.0-beta.212...v2.0.0-beta.213) (2023-02-07)
**Note:** Version bump only for package @tiptap/extension-character-count
# [2.0.0-beta.212](https://github.com/ueberdosis/tiptap/compare/v2.0.0-beta.211...v2.0.0-beta.212) (2023-02-03)
**Note:** Version bump only for package @tiptap/extension-character-count

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-character-count/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-character-count/src/index.d.ts",
"files": [
"src",
"dist"
@ -32,8 +33,8 @@
"@tiptap/pm": "^2.0.0-beta.209"
},
"devDependencies": {
"@tiptap/core": "^2.0.0-beta.213",
"@tiptap/pm": "^2.0.0-beta.213"
"@tiptap/core": "^2.0.0-beta.212",
"@tiptap/pm": "^2.0.0-beta.212"
},
"repository": {
"type": "git",
@ -41,17 +42,7 @@
"directory": "packages/extension-character-count"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-code-block-lowlight/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-code-block-lowlight/src/index.d.ts",
"files": [
"src",
"dist"
@ -43,17 +44,7 @@
"directory": "packages/extension-code-block-lowlight"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-code-block/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-code-block/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-code-block"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-code/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-code/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-code"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-collaboration-cursor/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-collaboration-cursor/src/index.d.ts",
"files": [
"src",
"dist"
@ -42,17 +43,7 @@
"directory": "packages/extension-collaboration-cursor"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-collaboration/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-collaboration/src/index.d.ts",
"files": [
"src",
"dist"
@ -43,17 +44,7 @@
"directory": "packages/extension-collaboration"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-color/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-color/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-color"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-document/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-document/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-document"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-dropcursor/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-dropcursor/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-dropcursor"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-floating-menu/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-floating-menu/src/index.d.ts",
"files": [
"src",
"dist"
@ -45,17 +46,7 @@
},
"sideEffects": false,
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-focus/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-focus/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-focus"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-font-family/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-font-family/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-font-family"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-gapcursor/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-gapcursor/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-gapcursor"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-hard-break/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-hard-break/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-hard-break"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-heading/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-heading/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-heading"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-highlight/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-highlight/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-highlight"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-history/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-history/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-history"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-horizontal-rule/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-horizontal-rule/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-horizontal-rule"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-image/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-image/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-image"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-italic/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-italic/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-italic"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-link/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-link/src/index.d.ts",
"files": [
"src",
"dist"
@ -44,17 +45,7 @@
"directory": "packages/extension-link"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-list-item/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-list-item/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-list-item"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-mention/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-mention/src/index.d.ts",
"files": [
"src",
"dist"
@ -43,17 +44,7 @@
"directory": "packages/extension-mention"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-ordered-list/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-ordered-list/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-ordered-list"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-paragraph/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-paragraph/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-paragraph"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-placeholder/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-placeholder/src/index.d.ts",
"files": [
"src",
"dist"
@ -41,17 +42,7 @@
"directory": "packages/extension-placeholder"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-strike/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-strike/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-strike"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

View File

@ -1,3 +0,0 @@
{
"extends": "../../tsconfig.json"
}

View File

@ -15,14 +15,15 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"types": "./dist/packages/extension-subscript/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"umd": "dist/index.umd.js",
"types": "dist/packages/extension-subscript/src/index.d.ts",
"files": [
"src",
"dist"
@ -39,17 +40,7 @@
"directory": "packages/extension-subscript"
},
"scripts": {
"build": "tsup"
},
"tsup": {
"entry": [
"src/index.ts"
],
"dts": true,
"splitting": true,
"format": [
"esm",
"cjs"
]
"clean": "rm -rf dist",
"build": "npm run clean && rollup -c"
}
}
}

View File

@ -0,0 +1,59 @@
import sizes from '@atomico/rollup-plugin-sizes'
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'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
name: pkg.name,
file: pkg.umd,
format: 'umd',
sourcemap: true,
},
{
name: pkg.name,
file: pkg.main,
format: 'cjs',
sourcemap: true,
exports: 'auto',
},
{
name: pkg.name,
file: pkg.module,
format: 'es',
sourcemap: true,
},
],
plugins: [
autoExternal({
packagePath: './package.json',
}),
sourcemaps(),
resolve(),
commonjs(),
babel({
babelHelpers: 'bundled',
exclude: '../../node_modules/**',
}),
sizes(),
typescript({
tsconfig: '../../tsconfig.json',
tsconfigOverride: {
compilerOptions: {
declaration: true,
paths: {
'@tiptap/*': ['packages/*/src'],
},
},
include: null,
},
}),
],
}

Some files were not shown because too many files have changed in this diff Show More