Skip to content

Commit 829cedf

Browse files
committed
doc: add preferDev and update preferGlobal
1 parent 86f5bdb commit 829cedf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/files/package.json.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,12 +742,16 @@ The host architecture is determined by `process.arch`
742742

743743
## preferGlobal
744744

745-
**DEPRECATED**
745+
Inform that this package is usually installed globally.
746746

747747
This option used to trigger an npm warning, but it will no longer warn. It is
748748
purely there for informational purposes. It is now recommended that you install
749749
any binaries as local devDependencies wherever possible.
750750

751+
## preferDev
752+
753+
Inform that this package is usually installed in `devDependencies`.
754+
751755
## private
752756

753757
If you set `"private": true` in your package.json, then npm will refuse

0 commit comments

Comments
 (0)