mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
0499cdab72
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.
10 lines
346 B
JavaScript
10 lines
346 B
JavaScript
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)
|