From fae26c5e17439612d3ef16b71e6f3f720e66bd73 Mon Sep 17 00:00:00 2001 From: Milan Meva Date: Fri, 16 Aug 2024 13:14:29 -0400 Subject: [PATCH] docs: add alias example in package-json docs --- docs/lib/content/configuring-npm/package-json.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/lib/content/configuring-npm/package-json.md b/docs/lib/content/configuring-npm/package-json.md index 755071c6f10bd..c7355dddbbda2 100644 --- a/docs/lib/content/configuring-npm/package-json.md +++ b/docs/lib/content/configuring-npm/package-json.md @@ -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: @@ -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" } } ```