Add deprecation warnings for old camelCase flag names

Instead of a hard breaking change, the old camelCase flag names
(--baseVersion, --successCache, --successCacheDir, --alwaysPack) still
work via type-flag's built-in camelCase/kebab-case mapping, but now
print a deprecation warning pointing to the new kebab-case spelling.

Downgrades the changeset from minor (breaking) to patch.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-01 16:54:31 +01:00
parent b45ee80104
commit 629e9f5558
6 changed files with 160 additions and 119 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
---
'@backstage/cli': minor
'@backstage/cli': patch
---
**BREAKING**: Migrated remaining CLI command handlers from `commander` to `cleye` for argument parsing. The following CLI flags have been renamed from camelCase to kebab-case to match standard CLI conventions:
Migrated remaining CLI command handlers from `commander` to `cleye` for argument parsing. The following CLI flags have been renamed from camelCase to kebab-case to match standard CLI conventions:
- `--baseVersion``--base-version`
- `--successCache``--success-cache`
@@ -10,4 +10,4 @@
- `--alwaysPack``--always-pack`
- `--alwaysYarnPack``--always-pack` (hidden legacy alias preserved)
If you have scripts or CI configurations that use any of the above flags, update them to the new kebab-case spelling.
The old camelCase flag names still work but will print a deprecation warning. Please update any scripts or CI configurations to use the new kebab-case spelling.