Skip to content

chore: add repository metadata to all packages for npm provenance - #564

Merged
aversini merged 1 commit into
mainfrom
chore_add_repository_metadata_to_all_packages_for_npm_provenance
May 30, 2026
Merged

aversini merged 1 commit into
mainfrom
chore_add_repository_metadata_to_all_packages_for_npm_provenance

Conversation

@aversini

Copy link
Copy Markdown
Collaborator

Summary

Adds a repository field to all 14 packages in the monorepo.

npm/sigstore provenance verification (used for OIDC publishing) requires repository.url to be present and to normalize to the source repository. A missing/empty URL produced:

Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/versini-org/node-cli"

Each package now has:

"repository": {
	"type": "git",
	"url": "git+https://github.com/versini-org/node-cli.git",
	"directory": "packages/<name>"
}
  • git+https form normalizes cleanly to the provenance bundle URL (avoids the SSH/SCP normalization ambiguity).
  • directory points each package at its subfolder so npm links to the correct path in the monorepo.

Consumer impact

npm package pages will now link back to the source repository, and provenance-based publishing can validate successfully.

🤖 Generated with Claude Code

Add a repository field (type, git+https url, and per-package directory)
to all 14 packages. npm/sigstore provenance verification requires
repository.url to be present and to normalize to the source repo; the
git+https form matches the provenance bundle without ambiguity, and
directory points each package at its subfolder in the monorepo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aversini
aversini merged commit 7d045ee into main May 30, 2026
3 of 4 checks passed
@aversini
aversini deleted the chore_add_repository_metadata_to_all_packages_for_npm_provenance branch May 30, 2026 15:54
aversini added a commit that referenced this pull request May 30, 2026
…ata addition (#565)

The grep test in core.test.ts searches the search package's own
package.json (case-insensitive pattern "type") and asserted 5 matches.
Adding the repository block in #564 introduced a "type": "git" line,
making it 6. Update the expected count accordingly.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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