fix: correct ui:build path in mise.toml

The multi-line run block is a single shell script, so `cd ui` persisted
into subsequent lines, making rm and cp target wrong paths. Wrap in a
subshell so the directory change does not leak.
This commit is contained in:
Willie
2026-02-08 17:36:51 +08:00
parent e38a396ee0
commit 86b5650fe5
+1 -1
View File
@@ -115,7 +115,7 @@ run = "cd ui && pnpm install"
description = "Build frontend and copy to embed directory"
depends = ["ui:install"]
run = """
cd ui && pnpm run build
(cd ui && pnpm run build)
rm -rf internal/server/dist
cp -r ui/dist internal/server/dist
"""