openpetswithchatandmcp/apps/desktop/scripts/build-deps.mjs
VectorShell 743163d742 build(desktop): fix Windows packaging and update release docs
- Replace shell-glob build:deps with cross-platform build-deps.mjs.
- Add v3.1.0 changelog/docs updates.
2026-06-13 02:17:12 +00:00

32 lines
892 B
JavaScript

#!/usr/bin/env node
// Cross-platform workspace dependency build for the desktop app.
// Replaces the shell-glob build:deps command so Windows packaging hosts
// can build the exact same set of packages without relying on './packages/*'
// glob quoting behavior.
import { execFileSync } from "node:child_process";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
const filters = [
"@open-pets/agent-events",
"@open-pets/client",
"@open-pets/claude",
"@open-pets/cli",
"@open-pets/cursor",
"@open-pets/mcp",
"@open-pets/opencode",
"@open-pets/pet-format",
"@open-pets/pi",
"@open-pets/plugin-sdk",
];
const args = [];
for (const filter of filters) {
args.push("--filter", filter);
}
args.push("build");
execFileSync("pnpm", args, { cwd: root, stdio: "inherit" });