Uh oh!
There was an error while loading. Please reload this page.
Simplify repository element in npm's project.json to use https URL - #1127
Conversation
| "repository" : { | ||
| "type" : "git", | ||
| "url": "ssh://git@{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}<em>HOSTNAME</em>{% endif %}/<em>OWNER</em>/<em>REPOSITORY</em>.git", | ||
| "directory": "packages/name" |
There was a problem hiding this comment.
It explains the "directory" value in the previous paragraph
There was a problem hiding this comment.
Good catch! I don't think we need to document the directory value here (it isn't used by GitHub Packages).
toddself
commented
Nov 6, 2020
This is different than how Ideally maybe we should say to use |
Uh oh!
There was an error while loading. Please reload this page.
…ystem/configuring-npm-for-use-with-github-packages.md
Interesting, I didn't know that. I tend to I guess If I'm adding it by hand, I much prefer the |
janiceilene
commented
Nov 6, 2020
👋 @jcansdale@toddself, let me know when this is ready for a writer review! |
Thinking more about this. If a user does I think the following section: ... is most relevant for users who are adding the What do you think? |
toddself
commented
Nov 16, 2020
@jcansdale i think that makes total sense! |
jcansdale
commented
Nov 16, 2020
@janiceilene I think we're ready for a writer review. 👍 |
This PR is stale because it has been open 7 days with no activity and will be automatically closed in 3 days. To keep this PR open, update the PR by adding a comment or pushing a commit. |
jcansdale
commented
Nov 25, 2020
Hi @janiceilene, I've just marked this as not-stale. It's ready for a writer review. 🙂 |
This PR is stale because it has been open 7 days with no activity and will be automatically closed in 3 days. To keep this PR open, update the PR by adding a comment or pushing a commit. |
runleonarun
commented
Dec 2, 2020
We will review this as soon as we can! |
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. |
Co-authored-by: Lana Brindley <github@lanabrindley.com>
Why:
The
repositoryelement in thepackage.jsonfile can be dramatically simplified from:..to just:
This will be less error prone because it can be easily copy/pasted from GitHub repository URLs.
We could simplify it further to just
"repository" : "OWNER/REPOSITORY",, because npm treats GitHub as it's default Git repository host. This would break symmetry with GHES, so maybe thehttpsform is preferable?See here for
"repository" : "OWNER/REPOSITORY",form:https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository:~:text=%22repository%22%3A%20%22npm%2Fnpm%22
What's being changed:
Check off the following: