From 5c5c34d25aa7f3f62d19e36b1b42522f47bef1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20T=C3=B6rnberg?= Date: Sat, 7 Nov 2026 13:49:16 +0100 Subject: [PATCH] Pin the typecheck to our uniform tiptap set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `tsc --noEmit` (first step of `npm run build`) type-checks the shared @k6n/cms-editor sources, which resolve tiptap from the backoffice tree: core 3.30.2 mixed with a nested markdown 3.32.2 whose Extension type no longer fits the older core's `Extensions`. Our own node_modules holds a uniform 3.32.2 set, so map @tiptap/* there in tsconfig paths. Vite does not read tsconfig paths (it aliases @k6n/cms-editor manually), so bundling and runtime resolution are untouched. 🤖 Generated with Codebuff Co-Authored-By: Codebuff --- tsconfig.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index 6c285dd..b1c1077 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,19 @@ "types": ["vite/client", "node"], "baseUrl": ".", "paths": { + // Our own node_modules holds a uniform @tiptap/* set (3.32.2). The shared + // @k6n/cms-editor sources below resolve tiptap from the backoffice tree, + // which mixes core 3.30.2 with a nested markdown 3.32.2 whose Extension + // type is no longer assignable to the older core's `Extensions` - that + // version drift broke `tsc --noEmit` (first step of `npm run build`). + // Pin the check to our uniform set. Vite does not read tsconfig paths + // (it aliases @k6n/cms-editor manually), so bundling is untouched. + "@tiptap/core": ["./node_modules/@tiptap/core"], + "@tiptap/pm": ["./node_modules/@tiptap/pm"], + "@tiptap/pm/*": ["./node_modules/@tiptap/pm/*"], + "@tiptap/starter-kit": ["./node_modules/@tiptap/starter-kit"], + "@tiptap/extension-image": ["./node_modules/@tiptap/extension-image"], + "@tiptap/markdown": ["./node_modules/@tiptap/markdown"], "@k6n/cms-editor": [ "../backoffice/web/packages/cms-editor/src/index.ts", "../ecommerce/backoffice/web/packages/cms-editor/src/index.ts",