diff --git a/docs/content/commands/npm-set-script.md b/docs/content/commands/npm-set-script.md index 0fc267f760c81..8695b43f14423 100644 --- a/docs/content/commands/npm-set-script.md +++ b/docs/content/commands/npm-set-script.md @@ -7,6 +7,8 @@ description: Set tasks in the scripts section of package.json ### Synopsis An npm command that lets you create a task in the `scripts` section of the `package.json`. +Deprecated. + diff --git a/lib/commands/birthday.js b/lib/commands/birthday.js index c7b5b31c54a62..3a36401cb8347 100644 --- a/lib/commands/birthday.js +++ b/lib/commands/birthday.js @@ -1,12 +1,14 @@ const BaseCommand = require('../base-command.js') +const log = require('../utils/log-shim') class Birthday extends BaseCommand { static name = 'birthday' - static description = 'Birthday' + static description = 'Birthday, deprecated' static ignoreImplicitWorkspace = true static isShellout = true async exec () { + log.warn('birthday', 'birthday is deprecated, and will be removed in a future version.') this.npm.config.set('yes', true) return this.npm.exec('exec', ['@npmcli/npm-birthday']) } diff --git a/lib/commands/set-script.js b/lib/commands/set-script.js index a6b7c3a50cdaf..f2ff9e47b8e6a 100644 --- a/lib/commands/set-script.js +++ b/lib/commands/set-script.js @@ -5,7 +5,7 @@ const log = require('../utils/log-shim') const BaseCommand = require('../base-command.js') class SetScript extends BaseCommand { - static description = 'Set tasks in the scripts section of package.json' + static description = 'Set tasks in the scripts section of package.json, deprecated' static params = ['workspace', 'workspaces', 'include-workspace-root'] static name = 'set-script' static usage = ['[