feat(opencode): publish ponytail as an installable npm package (opencode-ponytail) - #143
Closed
dangtrungan wants to merge 1 commit into
Closed
feat(opencode): publish ponytail as an installable npm package (opencode-ponytail)#143dangtrungan wants to merge 1 commit into
dangtrungan wants to merge 1 commit into
Conversation
Contributor
Author
|
@DietrichGebert Alongside with the new node package, I've also set up OIDC for the release workflow |
|
This would be very helpful, thanks! |
|
@dangtrungan hey man why was the PR closed? |
Contributor
Author
|
I f*cked up. I will create a PR again. |
|
Done here #197 |
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.
Summary
Turns the OpenCode plugin into a standalone, npm-installable package (
opencode-ponytail)rather than something that only works from a checkout of this repo, and switches slash
command registration from a static config to one generated dynamically from the command
files shipped inside the package.
Changes
opencode-ponytailand added the metadata npm expects forpublishing (license, author, repository, homepage, bugs, keywords, version bump).
package.jsonfiles/exportsso command definitions, hooks, and skills areactually included when the package is published.
opencode.jsonat a local checkout instead.Testing
tests/opencode-package.test.js: a smoke test that imports the package entrypoint the way npm consumers would and verifies it exports a function, injects the
ruleset at the default mode, and persists
/ponytail off.tests/opencode-plugin.test.jsto verify the config hook registers all fourslash commands (
ponytail,ponytail-review,ponytail-audit,ponytail-help) withstring
description/templatefields.