fix(cli): add stub embedded assets generation to build process

This commit is contained in:
weishu
2025-12-22 00:01:34 +08:00
parent e54c9844e8
commit 8cbe68c47a
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -67,7 +67,7 @@
"scripts": {
"why do we need to build before running tests / dev?": "We need the binary to be built so we run daemon commands which directly run the binary - we don't want them to go out of sync or have custom spawn logic depending how we started HAPI",
"typecheck": "tsc --noEmit",
"build": "shx rm -rf dist && tsc --noEmit && pkgroll",
"build": "bun run scripts/write-embedded-assets-stub.ts && shx rm -rf dist && tsc --noEmit && pkgroll",
"build:exe": "bun run scripts/build-executable.ts",
"build:exe:all": "bun run scripts/build-executable.ts --all",
"build:exe:allinone": "bun run scripts/build-executable.ts --with-web-assets",