diff --git a/tap-snapshots/test/lib/docs.js.test.cjs b/tap-snapshots/test/lib/docs.js.test.cjs index 5815c272f2035..d2b6673f38a67 100644 --- a/tap-snapshots/test/lib/docs.js.test.cjs +++ b/tap-snapshots/test/lib/docs.js.test.cjs @@ -1612,12 +1612,15 @@ See also the \`ca\` config. If you ask npm to install a package and don't tell it a specific version, then it will install the specified tag. -Also the tag that is added to the package@version specified by the \`npm tag\` -command, if no explicit tag is given. +It is the tag added to the package@version specified in the \`npm dist-tag +add\` command, if no explicit tag is given. When used by the \`npm diff\` command, this is the tag used to fetch the tarball that will be compared with the local files by default. +If used in the \`npm publish\` command, this is the tag that will be added to +the package submitted to the registry. + #### \`tag-version-prefix\` diff --git a/workspaces/config/lib/definitions/definitions.js b/workspaces/config/lib/definitions/definitions.js index 2978aa4b55dac..4baab11e85ece 100644 --- a/workspaces/config/lib/definitions/definitions.js +++ b/workspaces/config/lib/definitions/definitions.js @@ -2012,11 +2012,14 @@ const definitions = { If you ask npm to install a package and don't tell it a specific version, then it will install the specified tag. - Also the tag that is added to the package@version specified by the \`npm - tag\` command, if no explicit tag is given. + It is the tag added to the package@version specified in the + \`npm dist-tag add\` command, if no explicit tag is given. When used by the \`npm diff\` command, this is the tag used to fetch the tarball that will be compared with the local files by default. + + If used in the \`npm publish\` command, this is the tag that will be + added to the package submitted to the registry. `, flatten (key, obj, flatOptions) { flatOptions.defaultTag = obj[key]