openpetswithchatandmcp/apps/desktop/scripts/build-deps.mjs
OpenPets Dev 82abe08658 chore(release): integrate v3.1.0 companion fixes
- Harden memory capture/retrieval.
- Move virtual-pet HUD to context menu.
- Single-click petting; remove triple-click.
- Fix speech-bubble clipping.
- Make scale slider draggable.
- Fix Windows packaging build-deps script and update docs.
2026-06-13 06:33:48 +00:00

35 lines
997 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");
const isWin = process.platform === "win32";
const pnpmBin = isWin ? "pnpm.cmd" : "pnpm";
execFileSync(pnpmBin, args, { cwd: root, stdio: "inherit", shell: isWin });