Skip to content

Commit 58f59b4

Browse files
committed
feat: remove npm birthday
BREAKING CHANGE: this removes the `npm birthday` command
1 parent dcc3765 commit 58f59b4

File tree

6 files changed

+3
-45
lines changed

6 files changed

+3
-45
lines changed

lib/commands/birthday.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

lib/utils/cmd-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const cmdList = [
140140
'whoami',
141141
]
142142

143-
const plumbing = ['birthday', 'help-search']
143+
const plumbing = ['help-search']
144144
const abbrevs = abbrev(cmdList.concat(Object.keys(aliases)))
145145

146146
module.exports = {

tap-snapshots/test/lib/load-all-commands.js.test.cjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ Options:
6969
Run "npm help bin" for more info
7070
`
7171

72-
exports[`test/lib/load-all-commands.js TAP load each command birthday > must match snapshot 1`] = `
73-
Birthday, deprecated
74-
75-
Usage:
76-
npm birthday
77-
78-
Run "npm help birthday" for more info
79-
`
80-
8172
exports[`test/lib/load-all-commands.js TAP load each command bugs > must match snapshot 1`] = `
8273
Report bugs for a package in a web browser
8374

tap-snapshots/test/lib/utils/cmd-list.js.test.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ Object {
484484
"whoami",
485485
],
486486
"plumbing": Array [
487-
"birthday",
488487
"help-search",
489488
],
490489
}

test/lib/commands/birthday.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

test/lib/npm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,10 @@ t.test('aliases and typos', async t => {
572572
const { npm } = await loadMockNpm(t, { load: false })
573573
await t.rejects(npm.cmd('thisisnotacommand'), { code: 'EUNKNOWNCOMMAND' })
574574
await t.rejects(npm.cmd(''), { code: 'EUNKNOWNCOMMAND' })
575-
await t.rejects(npm.cmd('birt'), { code: 'EUNKNOWNCOMMAND' })
575+
await t.rejects(npm.cmd('birthday'), { code: 'EUNKNOWNCOMMAND' })
576576
await t.resolves(npm.cmd('it'), { name: 'install-test' })
577577
await t.resolves(npm.cmd('installTe'), { name: 'install-test' })
578-
await t.resolves(npm.cmd('birthday'), { name: 'birthday' })
578+
await t.resolves(npm.cmd('access'), { name: 'access' })
579579
})
580580

581581
t.test('explicit workspace rejection', async t => {

0 commit comments

Comments
 (0)