From 829cedf874f8dc2ef6d623f94a0dd24c0e51d302 Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Sat, 19 Jan 2019 16:28:53 +0100 Subject: [PATCH 1/2] doc: add preferDev and update preferGlobal --- doc/files/package.json.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/files/package.json.md b/doc/files/package.json.md index 95e77d34c5f9f..a5c5bac5d42e9 100644 --- a/doc/files/package.json.md +++ b/doc/files/package.json.md @@ -742,12 +742,16 @@ The host architecture is determined by `process.arch` ## preferGlobal -**DEPRECATED** +Inform that this package is usually installed globally. This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install any binaries as local devDependencies wherever possible. +## preferDev + +Inform that this package is usually installed in `devDependencies`. + ## private If you set `"private": true` in your package.json, then npm will refuse From 6f69cde1cdc96d6d784e7ce32aa7961fe730e6a1 Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Fri, 22 Feb 2019 00:30:17 +0100 Subject: [PATCH 2/2] doc: re-deprecate preferGlobal --- doc/files/package.json.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/files/package.json.md b/doc/files/package.json.md index a5c5bac5d42e9..d889c9e59e1cc 100644 --- a/doc/files/package.json.md +++ b/doc/files/package.json.md @@ -742,7 +742,7 @@ The host architecture is determined by `process.arch` ## preferGlobal -Inform that this package is usually installed globally. +**DEPRECATED** This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install