proxy-agents icon indicating copy to clipboard operation
proxy-agents copied to clipboard

Change repository URL to package specific URL

Open MarkAshraf96 opened this issue 1 year ago • 3 comments

closes #335

MarkAshraf96 avatar Oct 01 '24 08:10 MarkAshraf96

⚠️ No Changeset found

Latest commit: 252ef3528c3c10110bf4b8b669efc520b83de2ce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Oct 01 '24 08:10 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
proxy-agents ✅ Ready (Inspect) Visit Preview Oct 1, 2024 8:15am

vercel[bot] avatar Oct 01 '24 08:10 vercel[bot]

Some bigger monorepos, they prefer to have the URL indicating towards the package, specially if the packages are maintained separately.

But also maybe I can then modify the pull request to do it with repository.directory field.

MarkAshraf96 avatar Dec 04 '24 09:12 MarkAshraf96

Closing this because the npm docs say that it's already specified the correct way:

If the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives:

{
  "repository": {
    "type": "git",
    "url": "https://github.com/facebook/react.git",
    "directory": "packages/react-dom"
  }
}

TooTallNate avatar Oct 05 '25 05:10 TooTallNate