diff options
author | Gar <gar+gh@danger.computer> | 2022-09-08 19:51:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 19:51:57 +0300 |
commit | 926f0adbd71949c905932a241a245b78c85ef643 (patch) | |
tree | 3aaf0ee7a1a349d06d372f9503a3eb7fdbe17390 /tap-snapshots/test | |
parent | 2a8c2fcd124ce7d4b23a6c26552d097c6501ac74 (diff) |
feat: remove `npm set-script` (#5456)
BREAKING CHANGE: this removes `npm set-script`
Folks should use `npm pkg set` to set the `scripts` field in their
`package.json`
Closes https://github.com/npm/statusboard/issues/449
Diffstat (limited to 'tap-snapshots/test')
-rw-r--r-- | tap-snapshots/test/lib/commands/completion.js.test.cjs | 1 | ||||
-rw-r--r-- | tap-snapshots/test/lib/load-all-commands.js.test.cjs | 13 | ||||
-rw-r--r-- | tap-snapshots/test/lib/npm.js.test.cjs | 35 | ||||
-rw-r--r-- | tap-snapshots/test/lib/utils/cmd-list.js.test.cjs | 8 |
4 files changed, 12 insertions, 45 deletions
diff --git a/tap-snapshots/test/lib/commands/completion.js.test.cjs b/tap-snapshots/test/lib/commands/completion.js.test.cjs index 6bd7901e2..fb4c53a02 100644 --- a/tap-snapshots/test/lib/commands/completion.js.test.cjs +++ b/tap-snapshots/test/lib/commands/completion.js.test.cjs @@ -94,7 +94,6 @@ Array [ run-script search set - set-script shrinkwrap star stars 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 ad7acd359..251aa0ec6 100644 --- a/tap-snapshots/test/lib/load-all-commands.js.test.cjs +++ b/tap-snapshots/test/lib/load-all-commands.js.test.cjs @@ -790,19 +790,6 @@ npm set <key>=<value> [<key>=<value> ...] (See \`npm config\`) 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, deprecated - -Usage: -npm set-script [<script>] [<command>] - -Options: -[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] -[-ws|--workspaces] [--include-workspace-root] - -Run "npm help set-script" for more info -` - exports[`test/lib/load-all-commands.js TAP load each command shrinkwrap > must match snapshot 1`] = ` Lock down dependency versions for publication diff --git a/tap-snapshots/test/lib/npm.js.test.cjs b/tap-snapshots/test/lib/npm.js.test.cjs index a728654a5..68adb5551 100644 --- a/tap-snapshots/test/lib/npm.js.test.cjs +++ b/tap-snapshots/test/lib/npm.js.test.cjs @@ -27,9 +27,9 @@ All commands: hook, init, install, install-ci-test, install-test, link, ll, login, logout, ls, org, outdated, owner, pack, ping, pkg, prefix, profile, prune, publish, query, rebuild, repo, - restart, root, run-script, search, set, set-script, - shrinkwrap, star, stars, start, stop, team, test, token, - uninstall, unpublish, unstar, update, version, view, whoami + restart, root, run-script, search, set, shrinkwrap, star, + stars, start, stop, team, test, token, uninstall, unpublish, + unstar, update, version, view, whoami Specify configs in the ini-formatted file: /some/config/file/.npmrc @@ -63,9 +63,9 @@ All commands: hook, init, install, install-ci-test, install-test, link, ll, login, logout, ls, org, outdated, owner, pack, ping, pkg, prefix, profile, prune, publish, query, rebuild, repo, - restart, root, run-script, search, set, set-script, - shrinkwrap, star, stars, start, stop, team, test, token, - uninstall, unpublish, unstar, update, version, view, whoami + restart, root, run-script, search, set, shrinkwrap, star, + stars, start, stop, team, test, token, uninstall, unpublish, + unstar, update, version, view, whoami Specify configs in the ini-formatted file: /some/config/file/.npmrc @@ -99,9 +99,9 @@ All commands: hook, init, install, install-ci-test, install-test, link, ll, login, logout, ls, org, outdated, owner, pack, ping, pkg, prefix, profile, prune, publish, query, rebuild, repo, - restart, root, run-script, search, set, set-script, - shrinkwrap, star, stars, start, stop, team, test, token, - uninstall, unpublish, unstar, update, version, view, whoami + restart, root, run-script, search, set, shrinkwrap, star, + stars, start, stop, team, test, token, uninstall, unpublish, + unstar, update, version, view, whoami Specify configs in the ini-formatted file: /some/config/file/.npmrc @@ -135,9 +135,9 @@ All commands: hook, init, install, install-ci-test, install-test, link, ll, login, logout, ls, org, outdated, owner, pack, ping, pkg, prefix, profile, prune, publish, query, rebuild, repo, - restart, root, run-script, search, set, set-script, - shrinkwrap, star, stars, start, stop, team, test, token, - uninstall, unpublish, unstar, update, version, view, whoami + restart, root, run-script, search, set, shrinkwrap, star, + stars, start, stop, team, test, token, uninstall, unpublish, + unstar, update, version, view, whoami Specify configs in the ini-formatted file: /some/config/file/.npmrc @@ -829,17 +829,6 @@ All commands: Run "npm help set" for more info - set-script Set tasks in the scripts section of package.json, deprecated - - Usage: - npm set-script [<script>] [<command>] - - Options: - [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] - [-ws|--workspaces] [--include-workspace-root] - - Run "npm help set-script" for more info - shrinkwrap Lock down dependency versions for publication Usage: diff --git a/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs b/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs index e88cf67fa..062f9fefd 100644 --- a/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs +++ b/tap-snapshots/test/lib/utils/cmd-list.js.test.cjs @@ -260,13 +260,6 @@ Object { "searc": "search", "search": "search", "set": "set", - "set-": "set-script", - "set-s": "set-script", - "set-sc": "set-script", - "set-scr": "set-script", - "set-scri": "set-script", - "set-scrip": "set-script", - "set-script": "set-script", "sho": "show", "show": "show", "shr": "shrinkwrap", @@ -464,7 +457,6 @@ Object { "run-script", "search", "set", - "set-script", "shrinkwrap", "star", "stars", |