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 /smoke-tests/test/index.js | |
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 'smoke-tests/test/index.js')
-rw-r--r-- | smoke-tests/test/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smoke-tests/test/index.js b/smoke-tests/test/index.js index bbb833a57..d9a2a8833 100644 --- a/smoke-tests/test/index.js +++ b/smoke-tests/test/index.js @@ -224,8 +224,8 @@ t.test('npm outdated', async t => { t.matchSnapshot(err.stdout, 'should have expected outdated output') }) -t.test('npm set-script', async t => { - const cmdRes = await exec('set-script', 'hello', 'echo Hello') +t.test('npm pkg set scripts', async t => { + const cmdRes = await exec('pkg', 'set', 'scripts.hello=echo Hello') t.matchSnapshot(cmdRes, 'should have expected set-script output') t.matchSnapshot( |