build: get tests going

This commit is contained in:
Nick the Sick 2024-07-15 12:55:05 +02:00
parent ff04353b3e
commit 8b586721b7
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
3 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@
"build": "turbo run build", "build": "turbo run build",
"build:pm": "turbo run build --filter=@tiptap/pm", "build:pm": "turbo run build --filter=@tiptap/pm",
"build:demos": "npm run build:demos --workspace demos", "build:demos": "npm run build:demos --workspace demos",
"serve": "npm run build:demos && npm --prefix ./demos run preview", "serve": "npm run build:demos && npx http-server ./demos/dist -p 3000",
"build:ci": "turbo run build", "build:ci": "turbo run build",
"publish": "npm run build && npm run changeset publish", "publish": "npm run build && npm run changeset publish",
"clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist", "clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist",

View File

@ -1,4 +1,5 @@
import { Mark, mergeAttributes } from '@tiptap/core' import { Mark, mergeAttributes } from '@tiptap/core'
import type { StyleParseRule } from '@tiptap/pm/model'
export interface SubscriptExtensionOptions { export interface SubscriptExtensionOptions {
/** /**
@ -60,7 +61,7 @@ export const Subscript = Mark.create<SubscriptExtensionOptions>({
// If it falls through well match, and this mark will be applied. // If it falls through well match, and this mark will be applied.
return null return null
}, },
}, } as StyleParseRule,
] ]
}, },

View File

@ -1,4 +1,5 @@
import { Mark, mergeAttributes } from '@tiptap/core' import { Mark, mergeAttributes } from '@tiptap/core'
import type { StyleParseRule } from '@tiptap/pm/model'
export interface SuperscriptExtensionOptions { export interface SuperscriptExtensionOptions {
/** /**
@ -60,7 +61,7 @@ export const Superscript = Mark.create<SuperscriptExtensionOptions>({
// If it falls through well match, and this mark will be applied. // If it falls through well match, and this mark will be applied.
return null return null
}, },
}, } as StyleParseRule,
] ]
}, },