ember-deprecate-tryinvoke-codemod
v1.0.4
Published
An Ember codemod to deprecate tryInvoke and replace it with optional chaining
Downloads
9
Readme
ember-deprecate-tryinvoke-codemod
An Ember codemod to deprecate tryInvoke
util and replace the usage with optional chaining. See RFC 673 deprecate tryInvoke
Usage
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
Local Usage
node ./bin/cli.js ember-deprecate-tryinvoke-codemod path/of/files/ or/some**/*glob.js
Transforms
Contributing
Installation
- clone the repo
- change into the repo directory
yarn
Running tests
yarn test
Update Documentation
yarn update-docs