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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user