mdq: publish and run as mdq-cli, fix --help - #259
Merged
Merged
Conversation
The npm package is mdq-cli, but the manifest still said mdq, so the release workflow would publish under a name the trusted publisher does not cover. The installed command was mdq, which did not match the package name. Both are now mdq-cli. --help printed only "(outputHelp)" because the CLI swallows commander output; it now returns the help text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The npm package is
mdq-cli, butsrc/utils/mdq/package.jsonstill saidmdq. The release workflow would have published under a name the npm trusted publisher doesn't cover, so the publish step would fail.mdq-cli(npm i -g mdq-cli, thenmdq-cli 'h2' README.md).npx mdq-cliworks as before.publish-mdq.yml: the smoke test callsmdq-cliand importsmdq-cli, and the "already published?" check looks upmdq-cli.mdq-cli --helpprinted only(outputHelp). It now prints the usage and options, with a unit test.Verified:
bun test tests/unit/mdq/(222 pass). I also packeddist-mdq, installed the tarball on Node and ranmdq-cli h2 s.mdandmdq-cli --help.After merge, publish a GitHub Release tagged
mdq-0.1.2.🤖 Generated with Claude Code