npx power-select-deprecation-codemod camelcase-actions path/of/files/ or/some**/*glob.hbs
# or
yarn global add power-select-deprecation-codemod
power-select-deprecation-codemod camelcase-actions path/of/files/ or/some**/*glob.hbs
basic
Input (basic.input.hbs):
{{power-select onchange=(action "foo") onclose=(action this.bar) onopen=(action (mut this.manager))}}
{{#power-select onchange=(action "foo") onclose=(action this.bar) onopen=(action (mut this.manager))}}
{{some-other-component onchange=(action "foo")}}
{{/power-select}}
<PowerSelect onchange={{this.someValue}} @onclose={{action this.bar}} @onopen={{action (mut this.manager)}} />
<PowerSelect @onotherAction={{this.dontchange}} onchange={{this.someValue}} @onclose={{action this.bar}} @onopen={{action (mut this.manager)}}>
<SomeOtherComponent @onchange={{action "foo"}} />
</PowerSelect>
Output (basic.output.hbs):
{{power-select onChange=(action "foo") onClose=(action this.bar) onOpen=(action (mut this.manager))}}
{{#power-select onChange=(action "foo") onClose=(action this.bar) onOpen=(action (mut this.manager))}}
{{some-other-component onchange=(action "foo")}}
{{/power-select}}
<PowerSelect onchange={{this.someValue}} @onClose={{action this.bar}} @onOpen={{action (mut this.manager)}} />
<PowerSelect @onotherAction={{this.dontchange}} onchange={{this.someValue}} @onClose={{action this.bar}} @onOpen={{action (mut this.manager)}}>
<SomeOtherComponent @onchange={{action "foo"}} />
</PowerSelect>