Skip to content

Commit 7cf5a0b

Browse files
committed
feat: remove npm birthday
BREAKING CHANGE: this removes the `npm birthday` command
1 parent 926f0ad commit 7cf5a0b

File tree

6 files changed

+3
-45
lines changed

6 files changed

+3
-45
lines changed

lib/commands/birthday.js

-17
This file was deleted.

lib/utils/cmd-list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const cmdList = [
138138
'whoami',
139139
]
140140

141-
const plumbing = ['birthday', 'help-search']
141+
const plumbing = ['help-search']
142142
const abbrevs = abbrev(cmdList.concat(Object.keys(aliases)))
143143

144144
module.exports = {

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

-9
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ Options:
5757
Run "npm help audit" for more info
5858
`
5959

60-
exports[`test/lib/load-all-commands.js TAP load each command birthday > must match snapshot 1`] = `
61-
Birthday, deprecated
62-
63-
Usage:
64-
npm birthday
65-
66-
Run "npm help birthday" for more info
67-
`
68-
6960
exports[`test/lib/load-all-commands.js TAP load each command bugs > must match snapshot 1`] = `
7061
Report bugs for a package in a web browser
7162

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

-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ Object {
474474
"whoami",
475475
],
476476
"plumbing": Array [
477-
"birthday",
478477
"help-search",
479478
],
480479
}

test/lib/commands/birthday.js

-15
This file was deleted.

test/lib/npm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,10 @@ t.test('aliases and typos', async t => {
574574
const { npm } = await loadMockNpm(t, { load: false })
575575
await t.rejects(npm.cmd('thisisnotacommand'), { code: 'EUNKNOWNCOMMAND' })
576576
await t.rejects(npm.cmd(''), { code: 'EUNKNOWNCOMMAND' })
577-
await t.rejects(npm.cmd('birt'), { code: 'EUNKNOWNCOMMAND' })
577+
await t.rejects(npm.cmd('birthday'), { code: 'EUNKNOWNCOMMAND' })
578578
await t.resolves(npm.cmd('it'), { name: 'install-test' })
579579
await t.resolves(npm.cmd('installTe'), { name: 'install-test' })
580-
await t.resolves(npm.cmd('birthday'), { name: 'birthday' })
580+
await t.resolves(npm.cmd('access'), { name: 'access' })
581581
})
582582

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

0 commit comments

Comments
 (0)