Skip to content

Add a changeset for the @datocms/cli-utils repository field - #51

Merged
stefanoverna merged 1 commit into
mainfrom
fix/cli-utils-repository-field
Aug 31, 2026
Merged

Add a changeset for the @datocms/cli-utils repository field#51
stefanoverna merged 1 commit into
mainfrom
fix/cli-utils-repository-field

Conversation

@stefanoverna

Copy link
Copy Markdown
Member

#50 gave @datocms/cli-utils the repository field it was missing — it was the
only one of the five packages here without one. But package metadata only
reaches npm through a release, and with changeset version driving the
versions, a release only happens for packages a changeset asks for. So without
this file the fix sits on main indefinitely and npm keeps serving a manifest
with no source link.

patch, per the convention: it fixes what the published package says about
itself, and adds no API surface.

Why it matters beyond the npm page

The repository field is also what pkg.pr.new reads — from the npm registry,
not from this repo
— to decide whether it can mint the short preview URL form.
Verified: the react-datocms run on a commit that already had the field fixed
locally still emitted the long form, because npm's copy was stale.

So after this is released, @datocms/cli-utils previews get the short URL:

npm i https://pkg.pr.new/@datocms/cli-utils@<commit-sha>   # after release
npm i https://pkg.pr.new/datocms/cli/@datocms/cli-utils@<commit-sha>   # works today

The long form documented in the README keeps working either way.

The rest of the metadata cleanup

Five more packages need a release for the same reason — their npm metadata still
carries a git:// URL, which GitHub stopped serving in 2022. Those repos don't
use changesets, so there is nothing to commit there; the fix is already on their
default branches and a plain release picks it up:

  • react-datocms, vue-datocms, @datocms/svelte, @datocms/astro, datocms-listen

Everything else across the eleven repos already has correct metadata on npm.

The field itself landed in #50, but package metadata only reaches npm
through a release, and a release only happens if a changeset asks for one.
Without this, the fix sits on `main` indefinitely and npm keeps serving a
manifest with no source link.

Patch: it fixes what the published package says about itself, and adds no
API surface.

Claude-Session: https://claude.ai/code/session_01TbxhxyU1XBsSKtoCJXwAoD
@stefanoverna
stefanoverna merged commit 1fdbb5d into main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant