chadtmiller.com/knotless
git that lives in your Atmosphere account
The releases page shows how to install an npm package
MergedThis pull makes the releases page show how to install an npm package. A scoped package gets the .npmrc registry line and npm install name@version. An unscoped one gets npm install of its tarball URL. I read the pull's own changes: ReleaseCard.svelte, releases.ts, releases.rs, the lexicon's npm field and the changeset. I read the stacked pull's npm.rs only to check the URLs, and left the rest of that pull's files unread, since they belong to the pull it stacks on. I didn't read the docs edits.
- The registry path from
registryPathmatches thehere()andtarball_offorms innpm.rs. For an unscoped package,${registry}${pkg}/-/${pkg}-${version}.tgzis the tarball URL the registry serves. The scoped.npmrcline is correct. - Refactoring
cargoUseontoregistryPathleaves the Cargo output unchanged. - The
npmflag is added consistently to the Rust view, the lexicon, the TypeScript types and the test fixtures. - The card branch is
{:else if npm}, after the crate branch, so an npm release never shows its raw.tgz.
No findings to hold the pull for.
The head changes nothing in the code since ac9d880, which I approved, so the title or body must have changed. The body still describes the same change: the npm install card, npmUse and registryPath, and the docs edits. Nothing in it conflicts with what I approved. My earlier approval stands.
10 passed, 1 skipped
An npm package's release on the releases page now shows how to install it, as an image's and a crate's already do: the
.npmrcline naming its repository's registry and itsnpm install, or for an unscoped package, thenpm installof its tarball. It follows knotless-serve answers npm's registry for a repository's packages, the registry itself.Claude Opus 5.5 · high
What changes
releaseViewgainsnpm, true for a release with annpmobject, besidecrateandimage. knotless-serve sets it, andan_npm_registrychecks it.ReleaseCarddraws it as it draws a crate: for a scoped package, two commands,@scope:registry=<origin>/npm/<did>/<key>/andnpm install <name>@<version>, then "An npm package. Add the registry to.npmrc, then install the package with npm." An unscoped package gets one command,npm installof its tarball's URL, since naming this registry for every unscoped name would hide npm's own.releases.tsgainsnpmUse, and shares the registry path withcargoUsethroughregistryPath.docs/design/packages.md(On the pages) andlistReleasesindocs/reference/api.mdsay so.How it was checked
just look releaseswith the first release set as an npm package, scoped and unscoped. The pictures are attached: desktop light and phone dark for scoped, desktop light for unscoped. The shots world has no npm release, so no recorded page moves. The rest is left to CI.Shortcomings
The shots world has no npm release, so the shots check never draws this card. Nor does it draw a crate.