Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-11-10 23:02:11 +0300
committerGar <gar+gh@danger.computer>2021-11-11 01:31:51 +0300
commit5cf6068037af608c3254fba1035f238a944ddc64 (patch)
tree9347af6f5a6699209fcf602e390800b1fdb74939 /lib
parentcd6d3a90d4bbf3793834830b4c77fc8eb0846596 (diff)
fix: clean up birthday command
Clean up tests too PR-URL: https://github.com/npm/cli/pull/4033 Credit: @wraithgar Close: #4033 Reviewed-by: @lukekarrys
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/birthday.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/commands/birthday.js b/lib/commands/birthday.js
index 4fa0268f8..5dd9331d8 100644
--- a/lib/commands/birthday.js
+++ b/lib/commands/birthday.js
@@ -2,10 +2,8 @@ const BaseCommand = require('../base-command.js')
class Birthday extends BaseCommand {
async exec () {
- this.npm.config.set('package', ['@npmcli/npm-birthday'])
this.npm.config.set('yes', true)
- const exec = await this.npm.cmd('exec')
- return exec.exec(['npm-birthday'])
+ return this.npm.exec('exec', ['@npmcli/npm-birthday'])
}
}