From 277120b8c44a5f8aa227b6f84264cbd4accdd360 Mon Sep 17 00:00:00 2001 From: Marcus Notheis Date: Fri, 26 Jul 2024 14:33:46 +0200 Subject: [PATCH] fix(codemod): improve replacements for `Text` (#6123) --- docs/MigrationGuide.mdx | 2 +- .../cli/src/scripts/codemod/transforms/v2/codemodConfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/MigrationGuide.mdx b/docs/MigrationGuide.mdx index 1a11226faae..7eb09d85cfc 100644 --- a/docs/MigrationGuide.mdx +++ b/docs/MigrationGuide.mdx @@ -39,7 +39,7 @@ we provide a codemod which tries to transform most of the breaking changes. /> ```shell -npx @ui5/webcomponents-react-cli codemod --transform v2 \ +npx @ui5/webcomponents-react-cli@next codemod --transform v2 \ --src ./path/to/src \ --typescript # only if you use TypeScript in your project, omit if you use JavaScript ``` diff --git a/packages/cli/src/scripts/codemod/transforms/v2/codemodConfig.json b/packages/cli/src/scripts/codemod/transforms/v2/codemodConfig.json index e6d88553b8b..d6ad21becbd 100644 --- a/packages/cli/src/scripts/codemod/transforms/v2/codemodConfig.json +++ b/packages/cli/src/scripts/codemod/transforms/v2/codemodConfig.json @@ -512,7 +512,8 @@ "removedProps": ["navigated", "selected"] }, "Text": { - "comment": "wrapping -> maxLines" + "comment": "wrapping -> maxLines", + "removedProps": ["hyphenated", "emptyIndicator"] }, "TextArea": { "changedProps": {