cli/pkg/release/publishers/templates/npm/package.json.tmpl
Snider 513a241c1b feat(release): add package manager publishers for S3.2
Add publishers for distributing CLI binaries to package managers:
- npm: binary wrapper pattern with postinstall download
- Homebrew: formula generation + tap auto-commit
- Scoop: JSON manifest + bucket auto-commit
- AUR: PKGBUILD + .SRCINFO + AUR push
- Chocolatey: NuSpec + install script + optional push

Each publisher supports:
- Dry-run mode for previewing changes
- Auto-commit to own repos (tap/bucket/AUR)
- Generate files for PRs to official repos via `official` config

Also includes Docker and LinuxKit build helpers.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:32:04 +00:00

34 lines
654 B
Cheetah

{
"name": "{{.Package}}",
"version": "{{.Version}}",
"description": "{{.Description}}",
"license": "{{.License}}",
"repository": {
"type": "git",
"url": "https://github.com/{{.Repository}}.git"
},
"homepage": "https://github.com/{{.Repository}}",
"bugs": {
"url": "https://github.com/{{.Repository}}/issues"
},
"bin": {
"{{.BinaryName}}": "./bin/run.js"
},
"scripts": {
"postinstall": "node ./install.js"
},
"files": [
"bin/",
"install.js"
],
"engines": {
"node": ">=14.0.0"
},
"keywords": [
"cli",
"{{.ProjectName}}"
],
"publishConfig": {
"access": "{{.Access}}"
}
}