ember-native-class-codemod
ember-native-class-codemod copied to clipboard
--classic-decorator cli option isn't respected
Running this codemod with --classic-decorator=false
still replaces objects with classes wrapped with the @classic
decorator:
npx ember-native-class-codemod http://intercom.test/app-store --type=route --classic-decorator=false app/routes

Manually inverting the default works as expected.
I’ve put together a potential fix for this here https://github.com/ember-codemods/ember-native-class-codemod/pull/212
Any update on this? we have a lot of stuff and there's a lot of classic decorator annotations that aren't really needed with no way to prevent them.
This has not been solved yet. A workaround is using an empty string, which resolves to false
npx ember-native-class-codemod http://localhost:4200 --decorators=true --classic-decorator='' app/...