Babysitter pkg-binary-builder

Configure pkg for Node.js binary builds with asset bundling and cross-platform targets.

install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/cli-mcp-development/skills/pkg-binary-builder" ~/.claude/skills/a5c-ai-babysitter-pkg-binary-builder && rm -rf "$T"
manifest: library/specializations/cli-mcp-development/skills/pkg-binary-builder/SKILL.md
source content

Pkg Binary Builder

Configure pkg for Node.js binary builds.

Generated Patterns

{
  "pkg": {
    "scripts": "dist/**/*.js",
    "assets": ["dist/**/*.json", "node_modules/better-sqlite3/**/*"],
    "targets": ["node18-linux-x64", "node18-macos-x64", "node18-win-x64"],
    "outputPath": "build"
  },
  "scripts": {
    "build:binary": "pkg . --compress GZip"
  }
}

Target Processes

  • cli-binary-distribution
  • package-manager-publishing