mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
12 lines
451 B
JavaScript
12 lines
451 B
JavaScript
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
|
|
}
|