@npmcli/config 10.2.0 → 10.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -847,7 +847,7 @@ const definitions = {
|
|
|
847
847
|
type: Boolean,
|
|
848
848
|
envExport: false,
|
|
849
849
|
description: `
|
|
850
|
-
If true, npm will not exit with an error code when \`run
|
|
850
|
+
If true, npm will not exit with an error code when \`run\` is
|
|
851
851
|
invoked for a script that isn't defined in the \`scripts\` section of
|
|
852
852
|
\`package.json\`. This option can be used when it's desirable to
|
|
853
853
|
optionally run a script when it's present and fail if the script fails.
|
|
@@ -864,7 +864,7 @@ const definitions = {
|
|
|
864
864
|
|
|
865
865
|
Note that commands explicitly intended to run a particular script, such
|
|
866
866
|
as \`npm start\`, \`npm stop\`, \`npm restart\`, \`npm test\`, and \`npm
|
|
867
|
-
run
|
|
867
|
+
run\` will still run their intended script if \`ignore-scripts\` is
|
|
868
868
|
set, but they will *not* run any pre- or post-scripts.
|
|
869
869
|
`,
|
|
870
870
|
flatten,
|
|
@@ -971,6 +971,14 @@ const definitions = {
|
|
|
971
971
|
version number, if not already set in package.json.
|
|
972
972
|
`,
|
|
973
973
|
}),
|
|
974
|
+
'init-private': new Definition('init-private', {
|
|
975
|
+
default: false,
|
|
976
|
+
type: Boolean,
|
|
977
|
+
description: `
|
|
978
|
+
The value \`npm init\` should use by default for the package's private flag.
|
|
979
|
+
`,
|
|
980
|
+
flatten,
|
|
981
|
+
}),
|
|
974
982
|
// these "aliases" are historically supported in .npmrc files, unfortunately
|
|
975
983
|
// They should be removed in a future npm version.
|
|
976
984
|
'init.author.email': new Definition('init.author.email', {
|
|
@@ -1695,6 +1703,7 @@ const definitions = {
|
|
|
1695
1703
|
default: false,
|
|
1696
1704
|
type: Boolean,
|
|
1697
1705
|
short: 'D',
|
|
1706
|
+
exclusive: ['save-optional', 'save-peer', 'save-prod'],
|
|
1698
1707
|
description: `
|
|
1699
1708
|
Save installed packages to a package.json file as \`devDependencies\`.
|
|
1700
1709
|
`,
|
|
@@ -1726,6 +1735,7 @@ const definitions = {
|
|
|
1726
1735
|
default: false,
|
|
1727
1736
|
type: Boolean,
|
|
1728
1737
|
short: 'O',
|
|
1738
|
+
exclusive: ['save-dev', 'save-peer', 'save-prod'],
|
|
1729
1739
|
description: `
|
|
1730
1740
|
Save installed packages to a package.json file as
|
|
1731
1741
|
\`optionalDependencies\`.
|
|
@@ -1754,6 +1764,7 @@ const definitions = {
|
|
|
1754
1764
|
'save-peer': new Definition('save-peer', {
|
|
1755
1765
|
default: false,
|
|
1756
1766
|
type: Boolean,
|
|
1767
|
+
exclusive: ['save-dev', 'save-optional', 'save-prod'],
|
|
1757
1768
|
description: `
|
|
1758
1769
|
Save installed packages to a package.json file as \`peerDependencies\`
|
|
1759
1770
|
`,
|
|
@@ -1799,6 +1810,7 @@ const definitions = {
|
|
|
1799
1810
|
default: false,
|
|
1800
1811
|
type: Boolean,
|
|
1801
1812
|
short: 'P',
|
|
1813
|
+
exclusive: ['save-dev', 'save-optional', 'save-peer'],
|
|
1802
1814
|
description: `
|
|
1803
1815
|
Save installed packages into \`dependencies\` specifically. This is
|
|
1804
1816
|
useful if a package already exists in \`devDependencies\` or
|