build(tiptap): add tsconfig + typecheck script

This commit is contained in:
xfy 2026-06-23 18:32:26 +08:00
parent c1610ace99
commit 073f6936e3
3 changed files with 37 additions and 5 deletions

View File

@ -20,6 +20,7 @@
"@tiptap/suggestion": "^3.25.0"
},
"devDependencies": {
"typescript": "^5.4.5",
"vite": "^5.4.20"
}
},
@ -769,7 +770,6 @@
"resolved": "https://registry.npmmirror.com/@tiptap/core/-/core-3.25.0.tgz",
"integrity": "sha512-I9edH6vUXgbjUl5GPICYYYQeql8hC77VZnHLvWg8wc7FwaOw242Uy4Y89c/eX7LGmKwVxz28JFvAsZ8tIdDVvg==",
"license": "MIT",
"peer": true,
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -986,7 +986,6 @@
"resolved": "https://registry.npmmirror.com/@tiptap/extension-list/-/extension-list-3.25.0.tgz",
"integrity": "sha512-bYw4o2YiTdj/tdgktgbMRUfqAJgsnRkwUQTTKElycPdIwlNNs6EQiXku+E2ACftLaFxd3Ek+P50H0AQ5fA/hPw==",
"license": "MIT",
"peer": true,
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -1120,7 +1119,6 @@
"resolved": "https://registry.npmmirror.com/@tiptap/extensions/-/extensions-3.25.0.tgz",
"integrity": "sha512-aRXZwOPLdIRey28uctNT/Nbh3EaiNYnKt5qBhBbxs5aTtwoExzYAEtR7D8KjpUVBJAZNeLwFxvD2Ub+F94uAAw==",
"license": "MIT",
"peer": true,
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -1152,7 +1150,6 @@
"resolved": "https://registry.npmmirror.com/@tiptap/pm/-/pm-3.25.0.tgz",
"integrity": "sha512-JeaVgyLj0gQZ1gVxDI73QkP+/Ozcjyp37HyL1pXLCRVjY8nnsDrdMzuKsP1SWN2fOhC+JBGW8/88g0rPmwZQFg==",
"license": "MIT",
"peer": true,
"dependencies": {
"prosemirror-changeset": "^2.3.0",
"prosemirror-commands": "^1.6.2",
@ -1563,6 +1560,20 @@
"node": ">=0.10.0"
}
},
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmmirror.com/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/vite": {
"version": "5.4.21",
"resolved": "https://registry.npmmirror.com/vite/-/vite-5.4.21.tgz",

View File

@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite"
"dev": "vite",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@tiptap/core": "^3.25.0",
@ -20,6 +21,7 @@
"@tiptap/suggestion": "^3.25.0"
},
"devDependencies": {
"typescript": "^5.4.5",
"vite": "^5.4.20"
}
}

View File

@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true,
"esModuleInterop": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"types": []
},
"include": ["src"]
}