cli: rename add-deps to package fix

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-19 10:10:47 +01:00
parent 6ad0c45648
commit 9a86b65359
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -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.
+6 -7
View File
@@ -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')