refactor(docs): [SITE-03] migrate desktop editor and integrate typed generation

This commit is contained in:
Harvey Zhao committed 2026-09-14 09:25:46 +08:00
1 parent a468cb2c39
commit 2f130c58f1
37 files changed
+1921 -305

No files matched your search

+7
View File
@@ -1,4 +1,11 @@
import { spawnSync } from 'node:child_process'
import process from 'node:process'
import { runEditorDeclarations } from './editor-declarations/generate.ts'
await runEditorDeclarations(process.argv.slice(2))
if (!process.argv.includes('--check')) {
const child = spawnSync(process.execPath, ['scripts/build-site-assets.mjs'], { stdio: 'inherit', windowsHide: true })
if (child.error)
throw child.error
process.exitCode = child.status ?? 1
}