An Ember codemod to deprecate tryInvoke
util and replace the usage with optional chaining. See RFC 673 deprecate tryInvoke
To run a specific codemod from this project, you would run the following:
npx ember-deprecate-tryinvoke-codemod ember-deprecate-tryinvoke-codemod path/of/files/ or/some**/*glob.js
# or
yarn global add ember-deprecate-tryinvoke-codemod
ember-deprecate-tryinvoke-codemod ember-deprecate-tryinvoke-codemod path/of/files/ or/some**/*glob.js
node ./bin/cli.js ember-deprecate-tryinvoke-codemod path/of/files/ or/some**/*glob.js
- clone the repo
- change into the repo directory
yarn
yarn test
yarn update-docs