feat: add npm GitHub repo install support (Issue#11)#18
Merged
seanseannery merged 2 commits intomainfrom Mar 7, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Changes
package.json— npm package metadata withbin.ops → bin/opsand apostinstallhookinstall/npm_install.js— Node.js postinstall script that detects the platform, fetches the latest GitHub release, and downloads the correct binary tobin/ops(no external npm dependencies, uses Node.js built-inhttps)install/install_test.sh— add npm install test section with cleanupREADME.md— add npm install sectionWhy do we need this?
Partial close of #11. Adds
npm install -g github:seanseannery/opsfilesupport using a GitHub repo-based install (no npm registry account required). Publishing to the public npm registry is tracked separately in the updated issue.New modules or other dependencies introduced
None.
install/npm_install.jsuses only Node.js built-in modules (https,fs,path).How was this tested?
install/npm_install.jswas run directly (node install/npm_install.js) and successfully downloadedops v0.8.1tobin/opswith correct permissions (-rwxr-xr-x);bin/ops --versionresponded correctlymake test-installnpm section will pass once this PR is merged to main (npm clones from remote main, same behaviour as the brew test before feat: add Homebrew tap install support (Issue#10) #16 merged)