diff --git a/libs/tiptap-editor/package-lock.json b/libs/tiptap-editor/package-lock.json index 1bed291..0daa0f8 100644 --- a/libs/tiptap-editor/package-lock.json +++ b/libs/tiptap-editor/package-lock.json @@ -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", diff --git a/libs/tiptap-editor/package.json b/libs/tiptap-editor/package.json index bd587b4..6343a29 100644 --- a/libs/tiptap-editor/package.json +++ b/libs/tiptap-editor/package.json @@ -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" } } diff --git a/libs/tiptap-editor/tsconfig.json b/libs/tiptap-editor/tsconfig.json new file mode 100644 index 0000000..fd15971 --- /dev/null +++ b/libs/tiptap-editor/tsconfig.json @@ -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"] +}