-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support package.json repository.directory field #3096
Comments
Thanks for the heads-up. We already have logic that checks within subdirectories for matching packages in a monorepo, which catches most of the cases without using this field. Adding explicit knowledge of this will give us a more accurate "source" link in PRs though, because the existing logic only covers the changelogs themselves. |
🎉 This issue has been resolved in version 13.180.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hmm, this doesn't seem to work? Jest added these fields here: jestjs/jest#7649 But we just got a PR where the |
Verified here: renovate-tests/sourcedir1#3 Should be live within the app shortly so updated in your repo within 1-2 hours max |
🎉 This issue has been resolved in version 14.42.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Nice! The link is now updated, but it doesn't work - if you click the link, GitHub gives you 404 The link produced is https://github.com/facebook/jest/packages/jest-environment-node Or maybe https://github.com/facebook/jest/tree/v24.3.1/packages/jest-environment-node to not be coupled to |
I've gone for The reason for not linking to the tag is:
Also to note here: we can't even be sure that |
Yeah, I think so. You say "this dependency went from version x to version y, here's the source code for version y". The tag might be missing though, you're right... I don't have any good ideas for that. Thanks for being super responsive, btw 🙂 |
Right now there is a (subtle) difference between the "source URL" link vs viewing or diffing the source code. For now, the source URL is meant to mean "Here is where the source code for this package is located" as distinct from "Here is the home page of this package", and not necessarily meant as a snapshot in time of that source code. Meanwhile, we also try to link to the diffs in different ways - both via GitHub tags as well as now via Intrinsic's npm diffs. For example here is a jest-circus link: https://diff.intrinsic.com/jest-circus/24.3.0/24.3.1
You're welcome, and your feedback is always appreciated |
🎉 This issue has been resolved in version 14.42.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
You can replace |
@felixfbecker great idea, thanks! |
Not sure if you're already aware of this, but npm just ratified an RFC for specifying the directory in monorepos for packages: https://github.com/npm/rfcs/blob/latest/accepted/0010-monorepo-subdirectory-declaration.md
It already got adopted by packages like React
The text was updated successfully, but these errors were encountered: