Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ Save installed packages to a package.json file as `peerDependencies`

#### `save-prefix`

* Default: "^"
* Default: No Prefix ("")
* Type: String

Configure how versions of packages installed to a package.json file via
Expand Down
3 changes: 2 additions & 1 deletion lib/utils/config/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,8 @@ define('save-peer', {
})

define('save-prefix', {
default: '^',
default: '',
defaultDescription: 'No Prefix (Empty String)',
type: String,
description: `
Configure how versions of packages installed to a package.json file via
Expand Down
4 changes: 2 additions & 2 deletions tap-snapshots/test/lib/commands/config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ exports[`test/lib/commands/config.js TAP config list --json > output matches sna
"save-exact": false,
"save-optional": false,
"save-peer": false,
"save-prefix": "^",
"save-prefix": "",
"save-prod": false,
"scope": "",
"script-shell": null,
Expand Down Expand Up @@ -276,7 +276,7 @@ save-dev = false
save-exact = false
save-optional = false
save-peer = false
save-prefix = "^"
save-prefix = ""
save-prod = false
scope = ""
script-shell = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ Save installed packages to a package.json file as \`peerDependencies\`
exports[`test/lib/utils/config/definitions.js TAP > config description for save-prefix 1`] = `
#### \`save-prefix\`

* Default: "^"
* Default: No Prefix (Empty String)
* Type: String

Configure how versions of packages installed to a package.json file via
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ Save installed packages to a package.json file as \`peerDependencies\`

#### \`save-prefix\`

* Default: "^"
* Default: No Prefix (Empty String)
* Type: String

Configure how versions of packages installed to a package.json file via
Expand Down