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

docs: update docs for npmrc and package-json #7743

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

milaninfy
Copy link
Contributor

Updating Docs for
npmrc

  • Updated example config, instead of prefix which can not be changed for project, instead added cache which can be used for all three config types project, user and global

package-json

  • added alias example in package-json docs, which can be used to define alias for a package

fixes: #6839, #7188

@milaninfy milaninfy requested a review from a team as a code owner August 21, 2024 14:51
@@ -617,6 +617,7 @@ See [semver](https://github.com/npm/node-semver#versions) for more details about
* `tag` A specific version tagged and published as `tag` See [`npm
dist-tag`](/commands/npm-dist-tag)
* `path/path/path` See [Local Paths](#local-paths) below
* `npm:@scope/pkg@version` Custom alias for a pacakge See [`npm install`](/commands/npm-install)
Copy link
Member

Choose a reason for hiding this comment

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

Do you think /using-npm/package-spec#aliases would be a better place to link? https://docs.npmjs.com/cli/v10/using-npm/package-spec#aliases

Copy link
Contributor Author

Choose a reason for hiding this comment

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

certainly yes

@wraithgar wraithgar merged commit e674987 into npm:latest Aug 21, 2024
8 checks passed
@github-actions github-actions bot mentioned this pull request Aug 21, 2024
@milaninfy milaninfy deleted the mm/docs-npmrc branch August 26, 2024 19:25
@@ -634,7 +635,8 @@ For example, these are all valid:
"two": "2.x",
"thr": "3.3.x",
"lat": "latest",
"dyl": "file:../dyl"

This comment was marked as spam.

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.

[DOCS] alias dependency in package.json
3 participants