Skip to content

Commit 59819df

Browse files
author
Milan Meva
committed
docs: add alias example in package-json docs
1 parent ed1607b commit 59819df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/lib/content/configuring-npm/package-json.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ See [semver](https://github.com/npm/node-semver#versions) for more details about
617617
* `tag` A specific version tagged and published as `tag` See [`npm
618618
dist-tag`](/commands/npm-dist-tag)
619619
* `path/path/path` See [Local Paths](#local-paths) below
620+
* `npm:@scope/pkg@version` Custom alias for a pacakge See [`npm install`](/commands/npm-install)
620621

621622
For example, these are all valid:
622623

@@ -634,7 +635,8 @@ For example, these are all valid:
634635
"two": "2.x",
635636
"thr": "3.3.x",
636637
"lat": "latest",
637-
"dyl": "file:../dyl"
638+
"dyl": "file:../dyl",
639+
"kpg": "npm:[email protected]"
638640
}
639641
}
640642
```

0 commit comments

Comments
 (0)