Skip to content

Conversation

samholmes
Copy link

Adds "build:install" and other package.json scripts for convenience routing building and publishing.

samholmes and others added 6 commits August 3, 2025 10:31
- Install prompts package and @types/prompts
- Replace hardcoded snapshot detection with interactive prompt
- Remove unused pkgjsons variable

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
- Read current package version from packages/opencode/package.json
- Provide patch, minor, major version bump choices for production releases
- Calculate new version based on user selection
- Include current version in snapshot versioning instead of 0.0.0
- Skip version prompting for snapshot releases

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
- Add 'publish' script that runs bun run script/publish.ts
- Enables running publish via npm/bun run publish

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
- Add --local argument parsing to skip interactive prompts
- Set OPENCODE_DRY, OPENCODE_SNAPSHOT, and OPENCODE_LOCAL for local builds
- Skip git operations and external publishing for local builds
- Skip SDK and plugin publishing for local builds
- Store and restore original package.json contents for local builds
- Skip GitHub releases, AUR, and Homebrew operations for local builds

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
- Add VERSION=local support to use local binaries from dist directory
- Check for local binary existence before installation
- Use ditto instead of cp to preserve macOS binary attributes
- Remove .zip extension from filename for correct local path resolution
- Provide helpful error message if local binary not found

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
- Add build:install script that builds local binaries and installs them
- Combines publish --local and install with VERSION=local
- Enables quick local development workflow

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant