diff options
author | Gar <gar+gh@danger.computer> | 2021-11-10 23:02:11 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-11-11 01:31:51 +0300 |
commit | 5cf6068037af608c3254fba1035f238a944ddc64 (patch) | |
tree | 9347af6f5a6699209fcf602e390800b1fdb74939 /lib/commands | |
parent | cd6d3a90d4bbf3793834830b4c77fc8eb0846596 (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/commands')
-rw-r--r-- | lib/commands/birthday.js | 4 |
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']) } } |