Skip to content

Commit

Permalink
docs: add alias example in package-json docs
Browse files Browse the repository at this point in the history
  • Loading branch information
milaninfy committed Aug 21, 2024
1 parent ed1607b commit fae26c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/lib/content/configuring-npm/package-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`](/using-npm/package-spec#aliases)

For example, these are all valid:

Expand All @@ -634,7 +635,8 @@ For example, these are all valid:
"two": "2.x",
"thr": "3.3.x",
"lat": "latest",
"dyl": "file:../dyl"
"dyl": "file:../dyl",
"kpg": "npm:[email protected]"
}
}
```
Expand Down

0 comments on commit fae26c5

Please sign in to comment.