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 59819df
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`](/commands/npm-install)

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:pkg@1.0.0"
}
}
```
Expand Down

0 comments on commit 59819df

Please # to comment.