cli: rename add-deps to package fix
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/cli': patch
|
||||
---
|
||||
|
||||
Added an experimental `add-deps` command which adds missing monorepo dependencies to the target package.`
|
||||
Added an experimental `package fix` command which applies automated fixes to the target package. The initial fix that is available is to add missing monorepo dependencies to the target package.
|
||||
|
||||
@@ -125,6 +125,12 @@ export function registerScriptCommand(program: CommanderStatic) {
|
||||
.description('Run tests, forwarding args to Jest, defaulting to watch mode')
|
||||
.action(lazy(() => import('./testCommand').then(m => m.default)));
|
||||
|
||||
command
|
||||
.command('fix', { hidden: true })
|
||||
.description('Applies automated fixes to the package. [EXPERIMENTAL]')
|
||||
.option('--deps', 'Only fix monorepo dependencies in package.json')
|
||||
.action(lazy(() => import('./fix').then(m => m.command)));
|
||||
|
||||
command
|
||||
.command('clean')
|
||||
.description('Delete cache directories')
|
||||
@@ -386,13 +392,6 @@ export function registerCommands(program: CommanderStatic) {
|
||||
.description('Check Backstage package versioning')
|
||||
.action(lazy(() => import('./versions/lint').then(m => m.default)));
|
||||
|
||||
program
|
||||
.command('add-deps', { hidden: true })
|
||||
.description(
|
||||
'Add missing monorepo dependencies to package.json [EXPERIMENTAL]',
|
||||
)
|
||||
.action(lazy(() => import('./add-deps').then(m => m.command)));
|
||||
|
||||
// TODO(Rugvip): Deprecate in favor of package variant
|
||||
program
|
||||
.command('prepack')
|
||||
|
||||
Reference in New Issue
Block a user