Skip to content

Commit 5645c51

Browse files
authored
docs: link mentions of config parameters (#5521)
1 parent 19762b4 commit 5645c51

File tree

15 files changed

+65
-52
lines changed

15 files changed

+65
-52
lines changed

docs/content/commands/npm-audit.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ the path `/-/npm/v1/security/advisories/bulk`.
109109

110110
Any packages in the tree that do not have a `version` field in their
111111
package.json file will be ignored. If any `--omit` options are specified
112-
(either via the `--omit` config, or one of the shorthands such as
113-
`--production`, `--only=dev`, and so on), then packages will be omitted
114-
from the submitted payload as appropriate.
112+
(either via the [`--omit` config](/using-npm/config#omit), or one of the
113+
shorthands such as `--production`, `--only=dev`, and so on), then packages will
114+
be omitted from the submitted payload as appropriate.
115115

116116
If the registry responds with an error, or with an invalid response, then
117117
npm will attempt to load advisory data from the `Quick Audit` endpoint.
@@ -188,7 +188,7 @@ vulnerabilities are found _or_ if the remediation is able to successfully
188188
fix all vulnerabilities.
189189

190190
If vulnerabilities were found the exit code will depend on the
191-
`audit-level` configuration setting.
191+
[`audit-level` config](/using-npm/config#audit-level).
192192

193193
### Examples
194194

docs/content/commands/npm-bugs.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ alias: issues
2525
2626
This command tries to guess at the likely location of a package's bug
2727
tracker URL or the `mailto` URL of the support email, and then tries to
28-
open it using the `--browser` config param. If no package name is provided, it
29-
will search for a `package.json` in the current folder and use the `name` property.
28+
open it using the [`--browser` config](/using-npm/config#browser) param. If no
29+
package name is provided, it will search for a `package.json` in the current
30+
folder and use the `name` property.
3031
3132
### Configuration
3233

docs/content/commands/npm-dist-tag.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ alias: dist-tags
2828
Add, remove, and enumerate distribution tags on a package:
2929

3030
* add: Tags the specified version of the package with the specified tag,
31-
or the `--tag` config if not specified. If you have two-factor
32-
authentication on auth-and-writes then you’ll need to include a
31+
or the [`--tag` config](/using-npm/config#tag) if not specified. If you have
32+
two-factor authentication on auth-and-writes then you’ll need to include a
3333
one-time password on the command line with
3434
`--otp <one-time password>`, or at the OTP prompt.
3535

docs/content/commands/npm-docs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ alias: home
2424
### Description
2525
2626
This command tries to guess at the likely location of a package's
27-
documentation URL, and then tries to open it using the `--browser` config
28-
param. You can pass multiple package names at once. If no package name is
29-
provided, it will search for a `package.json` in the current folder and use
30-
the `name` property.
27+
documentation URL, and then tries to open it using the
28+
[`--browser` config](/using-npm/config#browser) param. You can pass multiple
29+
package names at once. If no package name is provided, it will search for a
30+
`package.json` in the current folder and use the `name` property.
3131
3232
### Configuration
3333

docs/content/commands/npm-exec.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ $ npx -c 'eslint && say "hooray, lint passed"'
240240

241241
### Workspaces support
242242

243-
You may use the `workspace` or `workspaces` configs in order to run an
243+
You may use the [`workspace`](/using-npm/config#workspace) or
244+
[`workspaces`](/using-npm/config#workspaces) configs in order to run an
244245
arbitrary command from an npm package (either one installed locally, or fetched
245246
remotely) in the context of the specified workspaces.
246247
If no positional argument or `--call` option is provided, it will open an
@@ -271,9 +272,9 @@ Assuming the workspace configuration is properly set up at the root level
271272
```
272273

273274
You can execute an arbitrary command from a package in the context of each of
274-
the configured workspaces when using the `workspaces` configuration options,
275-
in this example we're using **eslint** to lint any js file found within each
276-
workspace folder:
275+
the configured workspaces when using the
276+
[`workspaces` config options](/using-npm/config#workspace), in this example
277+
we're using **eslint** to lint any js file found within each workspace folder:
277278

278279
```
279280
npm exec --ws -- eslint ./*.js

docs/content/commands/npm-fund.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ This command retrieves information on how to fund the dependencies of a
2525
given project. If no package name is provided, it will list all
2626
dependencies that are looking for funding in a tree structure, listing
2727
the type of funding and the url to visit. If a package name is provided
28-
then it tries to open its funding url using the `--browser` config
29-
param; if there are multiple funding sources for the package, the user
30-
will be instructed to pass the `--which` option to disambiguate.
28+
then it tries to open its funding url using the
29+
[`--browser` config](/using-npm/config#browser) param; if there are multiple
30+
funding sources for the package, the user will be instructed to pass the
31+
`--which` option to disambiguate.
3132

3233
The list will avoid duplicated entries and will stack all packages that
3334
share the same url as a single entry. Thus, the list does not have the
@@ -38,7 +39,8 @@ same shape of the output from `npm ls`.
3839
### Workspaces support
3940

4041
It's possible to filter the results to only include a single workspace
41-
and its dependencies using the `workspace` config option.
42+
and its dependencies using the
43+
[`workspace` config](/using-npm/config#workspace) option.
4244

4345
#### Example:
4446

docs/content/commands/npm-pkg.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ Returned values are always in **json** format.
153153
### Workspaces support
154154
155155
You can set/get/delete items across your configured workspaces by using the
156-
`workspace` or `workspaces` config options.
156+
[`workspace`](/using-npm/config#workspace) or
157+
[`workspaces`](/using-npm/config#workspaces) config options.
157158
158159
For example, setting a `funding` value across all configured workspaces
159160
of a project:

docs/content/commands/npm-repo.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ npm repo [<pkgname> [<pkgname> ...]]
2222
### Description
2323
2424
This command tries to guess at the likely location of a package's
25-
repository URL, and then tries to open it using the `--browser` config
26-
param. If no package name is provided, it will search for a `package.json`
27-
in the current folder and use the `repository` property.
25+
repository URL, and then tries to open it using the
26+
[`--browser` config](/using-npm/config#browser) param. If no package name is
27+
provided, it will search for a `package.json` in the current folder and use the
28+
`repository` property.
2829
2930
### Configuration
3031

docs/content/commands/npm-run-script.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ The actual shell your script is run within is platform dependent. By default,
6868
on Unix-like systems it is the `/bin/sh` command, on Windows it is
6969
`cmd.exe`.
7070
The actual shell referred to by `/bin/sh` also depends on the system.
71-
You can customize the shell with the `script-shell` configuration.
71+
You can customize the shell with the
72+
[`script-shell` config](/using-npm/config#script-shell).
7273

7374
Scripts are run from the root of the package folder, regardless of what the
7475
current working directory is when `npm run` is called. If you want your
@@ -85,7 +86,8 @@ forgotten.
8586

8687
### Workspaces support
8788

88-
You may use the `workspace` or `workspaces` configs in order to run an
89+
You may use the [`workspace`](/using-npm/config#workspace) or
90+
[`workspaces`](/using-npm/config#workspaces) configs in order to run an
8991
arbitrary command from a package's `"scripts"` object in the context of the
9092
specified workspaces. If no `"command"` is provided, it will list the available
9193
scripts for each of these configured workspaces.
@@ -114,7 +116,8 @@ Assuming the workspace configuration is properly set up at the root level
114116
```
115117

116118
And that each of the configured workspaces has a configured `test` script,
117-
we can run tests in all of them using the `workspaces` config:
119+
we can run tests in all of them using the
120+
[`workspaces` config](/using-npm/config#workspaces):
118121

119122
```
120123
npm test --workspaces

docs/content/commands/npm-update.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ aliases: up, upgrade, udpate
2424
### Description
2525

2626
This command will update all the packages listed to the latest version
27-
(specified by the `tag` config), respecting the semver constraints of
28-
both your package and its dependencies (if they also require the same
29-
package).
27+
(specified by the [`tag` config](/using-npm/config#tag)), respecting the semver
28+
constraints of both your package and its dependencies (if they also require the
29+
same package).
3030

3131
It will also install missing packages.
3232

0 commit comments

Comments
 (0)