Remove unnecessary deprecation warnings for camelCase flags

type-flag natively supports both camelCase and kebab-case for all
flags, so no deprecation warnings or normalization are needed for
casing variants. Only the --alwaysYarnPack alias (a genuinely
different name) still requires normalization in buildWorkspace.

Also inlined flagDefs at each call site and updated the changeset
to reflect that both flag forms work transparently.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-06 14:52:11 +01:00
parent 8da1817584
commit c28e6a7b1c
5 changed files with 114 additions and 149 deletions
+1 -9
View File
@@ -2,12 +2,4 @@
'@backstage/cli': patch
---
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`
- `--successCacheDir``--success-cache-dir`
- `--alwaysPack``--always-pack`
- `--alwaysYarnPack``--always-pack` (hidden legacy alias preserved)
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.
Migrated remaining CLI command handlers from `commander` to `cleye` for argument parsing. CLI flags are now displayed in kebab-case in help output (e.g. `--success-cache` instead of `--successCache`), but both forms are accepted transparently — no changes needed in existing scripts or CI configurations.