Publish prima as its own npm package, prima-cli - #137
Merged
Conversation
DavertMik
force-pushed
the
prima-cli-package
branch
from
August 22, 2026 22:57
b9c699e to
db02caf
Compare
Prima already shipped inside explorbot as a second bin, which meant asking for it by explorbot's name. It now also publishes as prima-cli, so `npx prima-cli` reaches it directly. It is not separate code: prima imports 110 files from src/ and is compiled into the same dist/ by the same tsc run. build:prima stages a second package from that output, reproducing the dist/ layout exactly, because config.js, rules-loader.js and tester.js each resolve an asset relative to their own location. Dependencies are copied verbatim from the root manifest rather than pruned to prima's closure — pruning saves little next to playwright and codeceptjs, and breaks the package the first time an import moves. publish-prima.yml publishes it when a GitHub release is published, so the release stays the deliberate step and a draft ships nothing. It packs the staged package, installs the tarball into an empty directory and runs it from there with HOME pointed at an empty directory, which is what catches a missing file, a missing dependency or an asset that no longer resolves. publish.yml is untouched; explorbot keeps releasing on a tag exactly as before. chalk was never declared as a dependency and resolved only because ink happens to depend on a compatible version. Declared, since a pruned install would not have carried it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
DavertMik
force-pushed
the
prima-cli-package
branch
from
August 22, 2026 23:01
db02caf to
578b229
Compare
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.
Auto publish of Prima CLI