diff options
author | Nathan Fritz <fritzy@github.com> | 2022-05-10 20:00:36 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-05-19 01:13:47 +0300 |
commit | 8898710220a3d84b0a9ea2a6d9cf880e50b94c9e (patch) | |
tree | 73f78c5c87498417ebdc2014481b7155006c1100 /tap-snapshots/test | |
parent | 8a49e3ab6499c6196c5d7a0f6dad3b345944b992 (diff) |
feat: deprecated set-script, birthday, --global, and --local
Diffstat (limited to 'tap-snapshots/test')
4 files changed, 42 insertions, 20 deletions
diff --git a/tap-snapshots/test/lib/load-all-commands.js.test.cjs b/tap-snapshots/test/lib/load-all-commands.js.test.cjs index 20915cdd8..2029289d1 100644 --- a/tap-snapshots/test/lib/load-all-commands.js.test.cjs +++ b/tap-snapshots/test/lib/load-all-commands.js.test.cjs @@ -69,7 +69,7 @@ Run "npm help bin" for more info ` exports[`test/lib/load-all-commands.js TAP load each command birthday > must match snapshot 1`] = ` -Birthday +Birthday, deprecated Usage: npm birthday @@ -802,7 +802,7 @@ Run "npm help set" for more info ` exports[`test/lib/load-all-commands.js TAP load each command set-script > must match snapshot 1`] = ` -Set tasks in the scripts section of package.json +Set tasks in the scripts section of package.json, deprecated Usage: npm set-script [<script>] [<command>] diff --git a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs index c31a6b7dc..b12dccdb7 100644 --- a/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/definitions.js.test.cjs @@ -731,6 +731,8 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for globa * Default: false * Type: Boolean +* DEPRECATED: \`--global\`, \`--local\` are deprecated. Use \`--location=global\` + instead. Operates in "global" mode, so that packages are installed into the \`prefix\` folder instead of the current working directory. See @@ -1077,6 +1079,15 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for locat * Type: "global", "user", or "project" When passed to \`npm config\` this refers to which config file to use. + +When set to "global" mode, packages are installed into the \`prefix\` folder +instead of the current working directory. See +[folders](/configuring-npm/folders) for more on the differences in behavior. + +* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead + of the current working directory. +* bin files are linked to \`{prefix}/bin\` +* man pages are linked to \`{prefix}/share/man\` ` exports[`test/lib/utils/config/definitions.js TAP > config description for lockfile-version 1`] = ` diff --git a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs index 0ec2ca17a..cacbe96a7 100644 --- a/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs +++ b/tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs @@ -560,23 +560,6 @@ results in no commit being made at all. <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> -#### \`global\` - -* Default: false -* Type: Boolean - -Operates in "global" mode, so that packages are installed into the \`prefix\` -folder instead of the current working directory. See -[folders](/configuring-npm/folders) for more on the differences in behavior. - -* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead - of the current working directory. -* bin files are linked to \`{prefix}/bin\` -* man pages are linked to \`{prefix}/share/man\` - -<!-- automatically generated, do not edit manually --> -<!-- see lib/utils/config/definitions.js --> - #### \`global-style\` * Default: false @@ -874,6 +857,15 @@ npm registry. Must be IPv4 in versions of Node prior to 0.12. When passed to \`npm config\` this refers to which config file to use. +When set to "global" mode, packages are installed into the \`prefix\` folder +instead of the current working directory. See +[folders](/configuring-npm/folders) for more on the differences in behavior. + +* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead + of the current working directory. +* bin files are linked to \`{prefix}/bin\` +* man pages are linked to \`{prefix}/share/man\` + <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> @@ -1814,6 +1806,25 @@ Alias for \`--include=dev\`. <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> +#### \`global\` + +* Default: false +* Type: Boolean +* DEPRECATED: \`--global\`, \`--local\` are deprecated. Use \`--location=global\` + instead. + +Operates in "global" mode, so that packages are installed into the \`prefix\` +folder instead of the current working directory. See +[folders](/configuring-npm/folders) for more on the differences in behavior. + +* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead + of the current working directory. +* bin files are linked to \`{prefix}/bin\` +* man pages are linked to \`{prefix}/share/man\` + +<!-- automatically generated, do not edit manually --> +<!-- see lib/utils/config/definitions.js --> + #### \`init.author.email\` * Default: "" diff --git a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs index 3487378a2..22fad5c77 100644 --- a/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs +++ b/tap-snapshots/test/lib/utils/npm-usage.js.test.cjs @@ -840,7 +840,7 @@ All commands: Run "npm help set" for more info - set-script Set tasks in the scripts section of package.json + set-script Set tasks in the scripts section of package.json, deprecated Usage: npm set-script [<script>] [<command>] |