fix: fixed background and music order in project.json

This commit is contained in:
Haoyu Xu
2025-02-23 22:18:32 +08:00
parent 4a1b901f25
commit 1fd7b61ab1
3 changed files with 28 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
import { envParser } from '@aklive2d/libs'
import { envParser, error } from '@aklive2d/libs'
import { build } from './index.js'
async function main() {
let err = []
const { mode, name } = envParser.parse({
mode: {
type: 'string',
@@ -16,11 +17,12 @@ async function main() {
})
switch (mode) {
case 'build':
build(name)
err = build(name)
break
default:
throw new Error(`Unknown mode: ${mode}`)
}
error.handle(err)
}
main()