mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
build: use WEB_GO for web targets and preserve backend dist directory (#1671)
Separate web Go commands from the default Go toolchain so web builds, tests, and vet can enable CGO on Darwin without affecting the rest of the project. Also ensure frontend backend builds recreate backend/dist with a .gitkeep file so the embedded output directory remains tracked.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const fs = require("node:fs")
|
||||
const path = require("node:path")
|
||||
|
||||
const gitkeepPath = path.resolve(__dirname, "../../backend/dist/.gitkeep")
|
||||
const gitkeepContents =
|
||||
"# Keep the embedded web backend dist directory in version control.\n"
|
||||
|
||||
fs.mkdirSync(path.dirname(gitkeepPath), { recursive: true })
|
||||
fs.writeFileSync(gitkeepPath, gitkeepContents)
|
||||
Reference in New Issue
Block a user