Repository navigation
docs(sdk): add a package README so the npm page has documentation - #23
Merged
Merged
Conversation
The published package carried no README, so npm renders "No README data found!" on its page. The package directory had none because the repository README covers the CLI as well. The new file documents only the surface the package actually publishes: the client, its reads and unsigned transaction builders, the helpers, and the frozen Merkle format. Links are absolute because only dist/ ships, so relative links would break on npm. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
npm serves a package's README from the published tarball, so the page keeps showing "No README data found!" until a new version ships. A patch bump is enough: documentation only, no runtime change. The lockfile's workspace entry is bumped with it, otherwise npm ci disagrees with package.json. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.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 published package shipped no README, so npm renders
ERROR: No README data found!on its page. The package directory had none becausethe repository README covers the CLI as well.
What the README covers
Only the surface the package actually publishes: the install command, the three
design rules (never signs,
bigintend to end, nothing defaulted about thenetwork), the client options table, the reads and unsigned transaction builders,
the exported helpers, and the frozen Merkle format.
Links are absolute rather than relative: only
dist/ships in the tarball, so arelative link would break on npm.
Verification
npm pack -w @splitstream/sdk --dry-run— the tarball is now 34 files, up from33, and includes
README.md0.1.0: 54 distinct identifiers, all present as exports, client prototype
methods, or
SplitStreamErrorinstance properties.VestingInfois a typeexport, so it has no runtime value by design.
SplitStreamClientOptionsinsrc/client.tsfield for field
Not in this PR
Bumping the version and republishing. The live 0.1.0 will keep showing the missing
README until a release is cut, and npm requires a new version to update it.