Make sure to have jscodeshift
installed globally.
$ yarn global add jscodeshift
$ npm -g install jscodeshift
$ jscodeshift -t @commercetools-frontend/transforms/v10/icon-theme-to-color.js src/
Useful options:
-d
: dry-run-p
: print the output for comparison (use it together with-d
)
Renames the prop theme
to color
for all UI-Kit icons.
Renames the prop elementType
to as
for all Text components.
$ jscodeshift -t @commercetools-frontend/transforms/v10/icon-theme-to-color.js <path>