Skip to content

Add npm support metadata#223

Open
yanziwei wants to merge 1 commit into
1Password:mainfrom
yanziwei:yanziwei/npm-metadata
Open

Add npm support metadata#223
yanziwei wants to merge 1 commit into
1Password:mainfrom
yanziwei:yanziwei/npm-metadata

Conversation

@yanziwei

Copy link
Copy Markdown

Summary

  • add homepage metadata for the published @1password/op-js npm package
  • add bugs.url metadata pointing npm users to this repository's issue tracker
  • leave runtime code, dependencies, exports, and package contents unchanged

Why

The current @1password/op-js@0.1.13 package exposes its repository but omits homepage and bugs metadata, so npm clients do not show the README or issue tracker links directly from package metadata.

This is also the upstream fix for the public reproducibility lead I filed at charles-openclaw/charles-microbounties#869.

Verification

node - <<'NODE'
const fs = require('fs');
const p = JSON.parse(fs.readFileSync('package.json', 'utf8'));
if (p.homepage !== 'https://github.com/1Password/op-js#readme') throw new Error('missing homepage');
if (p.bugs?.url !== 'https://github.com/1Password/op-js/issues') throw new Error('missing bugs.url');
console.log(JSON.stringify({ name: p.name, homepage: p.homepage, bugs: p.bugs }, null, 2));
NODE

git diff --check
npm pack --dry-run --ignore-scripts --json

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