summaryrefslogtreecommitdiff
path: root/deps/npm/lib/commands/birthday.js
blob: cdd6db628690591a998bef3d4270f82ecb886f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const BaseCommand = require('../base-command.js')
const log = require('../utils/log-shim')

class Birthday extends BaseCommand {
  static name = 'birthday'
  static description = 'Birthday, deprecated'
  static ignoreImplicitWorkspace = true
  static isShellout = true

  async exec () {
    this.npm.config.set('yes', true)
    log.warn('birthday', 'birthday is deprecated and will be removed in a future release')
    return this.npm.exec('exec', ['@npmcli/npm-birthday'])
  }
}

module.exports = Birthday