Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add repository directory to all package descriptors #1936

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

kriskowal
Copy link
Member

fixes: #1754

This adds a repository directory to every package’s descriptor package.json so that npmjs.com can render relative links correctly.

@kriskowal kriskowal requested a review from gibson042 January 9, 2024 01:29
@kriskowal
Copy link
Member Author

This was mostly the work of:

ls packages | while read -r name; do (cd packages/$name; jq '. + {repository: (.repository + {$directory})}' --arg directory "packages/$name" package.json > package.json2); done

@kriskowal kriskowal force-pushed the kriskowal-add-repository-directory branch from 2ebc3d3 to e5f36e7 Compare January 31, 2024 21:54
Copy link
Contributor

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kriskowal kriskowal enabled auto-merge January 31, 2024 21:57
@kriskowal kriskowal merged commit eebcb54 into master Jan 31, 2024
14 checks passed
@kriskowal kriskowal deleted the kriskowal-add-repository-directory branch January 31, 2024 22:00
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.

Links are broken in npm package pages
2 participants