-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: this removes `npm set-script` Folks should use `npm pkg set` to set the `scripts` field in their `package.json` Closes npm/statusboard#449
- Loading branch information
Showing
9 changed files
with
33 additions
and
351 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,6 @@ const cmdList = [ | |
'run-script', | ||
'search', | ||
'set', | ||
'set-script', | ||
'shrinkwrap', | ||
'star', | ||
'stars', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
{CWD}/smoke-tests/test/tap-testdir-index/.npmrc | ||
|
@@ -597,21 +597,7 @@ exports[`test/index.js TAP npm pkg > should print package.json contents 1`] = ` | |
` | ||
|
||
exports[`test/index.js TAP npm prefix > should have expected prefix output 1`] = ` | ||
{CWD}/smoke-tests/test/tap-testdir-index/project | ||
` | ||
|
||
exports[`test/index.js TAP npm run-script > should have expected run-script output 1`] = ` | ||
> [email protected] hello | ||
> echo Hello | ||
Hello | ||
` | ||
|
||
exports[`test/index.js TAP npm set-script > should have expected script added package.json result 1`] = ` | ||
exports[`test/index.js TAP npm pkg set scripts > should have expected script added package.json result 1`] = ` | ||
{ | ||
"name": "project", | ||
"version": "1.0.0", | ||
|
@@ -634,7 +620,21 @@ exports[`test/index.js TAP npm set-script > should have expected script added pa | |
` | ||
|
||
exports[`test/index.js TAP npm set-script > should have expected set-script output 1`] = ` | ||
exports[`test/index.js TAP npm pkg set scripts > should have expected set-script output 1`] = ` | ||
` | ||
|
||
exports[`test/index.js TAP npm prefix > should have expected prefix output 1`] = ` | ||
{CWD}/smoke-tests/test/tap-testdir-index/project | ||
` | ||
|
||
exports[`test/index.js TAP npm run-script > should have expected run-script output 1`] = ` | ||
> [email protected] hello | ||
> echo Hello | ||
Hello | ||
` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,6 @@ Array [ | |
run-script | ||
search | ||
set | ||
set-script | ||
shrinkwrap | ||
star | ||
stars | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.