Skip to content

Commit

Permalink
doc: add preferDev and update preferGlobal
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Jan 29, 2019
1 parent 671cad1 commit 71659ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/files/package.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,16 @@ The host architecture is determined by `process.arch`

This comment has been minimized.

Copy link
@UryAlexander

UryAlexander Feb 18, 2019

"os" : [ "!win32" ]

The host operating system is determined by process.platform
It is allowed to both blacklist, and whitelist, although there isn't any
good reason to do this.

cpu

If your code only runs on certain cpu architectures,
you can specify which ones.
"cpu" : [ "x64", "ia32" ]
Like the os option, you can also blacklist architectures:
"cpu" : [ "!arm", "!mips" ]
The host architecture is determined by process.arch

## preferGlobal

**DEPRECATED**
Inform that this package is usually installed globally.

This comment has been minimized.

Copy link
@UryAlexander

UryAlexander Feb 18, 2019

$PREFIX/lib/node_modules


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
Expand Down

0 comments on commit 71659ee

Please sign in to comment.