Skip to content

Commit 6444c99

Browse files
committed
docs: document --cpu, --os, --libc
1 parent 5872b12 commit 6444c99

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

docs/cli/add.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,15 @@ This will run `esbuild`'s postinstall script and also add it to the `onlyBuiltDe
263263
### --filter <package_selector\>
264264

265265
[Read more about filtering.](../filtering.md)
266+
267+
import CpuFlag from '../settings/_cpuFlag.mdx'
268+
269+
<CpuFlag />
270+
271+
import OsFlag from '../settings/_osFlag.mdx'
272+
273+
<OsFlag />
274+
275+
import LibcFlag from '../settings/_libcFlag.mdx'
276+
277+
<LibcFlag />

docs/cli/install.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,15 @@ dependencies.
180180
### --resolution-only
181181

182182
Re-runs resolution: useful for printing out peer dependency issues.
183+
184+
import CpuFlag from '../settings/_cpuFlag.mdx'
185+
186+
<CpuFlag />
187+
188+
import OsFlag from '../settings/_osFlag.mdx'
189+
190+
<OsFlag />
191+
192+
import LibcFlag from '../settings/_libcFlag.mdx'
193+
194+
<LibcFlag />

docs/settings/_cpuFlag.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### --cpu=&lt;name\>
2+
3+
Added in: v10.14.0
4+
5+
Override CPU architecture of native modules to install. Acceptable values are same as `cpu` field of `package.json`, which comes from `process.arch`.

docs/settings/_libcFlag.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### --libc=&lt;name\>
2+
3+
Added in: v10.14.0
4+
5+
Override libc of native modules to install. Acceptable values are same as `libc` field of `package.json`.
6+

docs/settings/_osFlag.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### --os=&lt;name\>
2+
3+
Added in: v10.14.0
4+
5+
Override OS of native modules to install. Acceptable values are same as `os` field of `package.json`, which comes from `process.platform`.

0 commit comments

Comments
 (0)