From fafd9e10e1fccbe032066f210f68da8f3ae14b7b Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 2 Dec 2025 21:00:48 +0100 Subject: [PATCH] cli: fix yargs usage Signed-off-by: Patrik Oldsberg --- .changeset/salty-camels-wash.md | 5 +++++ packages/cli/src/modules/config/index.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/salty-camels-wash.md diff --git a/.changeset/salty-camels-wash.md b/.changeset/salty-camels-wash.md new file mode 100644 index 0000000000..56600db540 --- /dev/null +++ b/.changeset/salty-camels-wash.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Fixed internal usage of `yargs`. diff --git a/packages/cli/src/modules/config/index.ts b/packages/cli/src/modules/config/index.ts index d62dbd4d26..3eabf5e9fc 100644 --- a/packages/cli/src/modules/config/index.ts +++ b/packages/cli/src/modules/config/index.ts @@ -62,7 +62,7 @@ export default createCliPlugin({ path: ['config:print'], description: 'Print the app configuration for the current package', execute: async ({ args, info }) => { - const argv = await yargs + const argv = await yargs() .options({ package: { type: 'string' }, lax: { type: 'boolean' }, @@ -82,7 +82,7 @@ export default createCliPlugin({ description: 'Validate that the given configuration loads and matches schema', execute: async ({ args }) => { - const argv = await yargs + const argv = await yargs() .options({ package: { type: 'string' }, lax: { type: 'boolean' }, @@ -105,7 +105,7 @@ export default createCliPlugin({ path: ['config:schema'], description: 'Print the JSON schema for the given configuration', execute: async ({ args }) => { - const argv = await yargs + const argv = await yargs() .options({ package: { type: 'string' }, format: { type: 'string' }, @@ -122,7 +122,7 @@ export default createCliPlugin({ path: ['config', 'schema'], description: 'Print the JSON schema for the given configuration', execute: async ({ args }) => { - const argv = await yargs + const argv = await yargs() .options({ package: { type: 'string' }, format: { type: 'string' },