fix: isolate canvas CJK strings and guard build encoding

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-12 09:32:59 +08:00
parent 2ecd300ada
commit 288ebf4c90
7 changed files with 431 additions and 53 deletions

View file

@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -p tsconfig.json --noEmit && vite build",
"build": "node scripts/check-canvas-cjk.mjs && tsc -p tsconfig.json --noEmit && vite build",
"check:cjk": "node scripts/check-canvas-cjk.mjs",
"typecheck": "tsc -p tsconfig.json --noEmit",
"preview": "vite preview",
"test": "vitest run --passWithNoTests"