We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ddb5eb commit 2ea4a15Copy full SHA for 2ea4a15
1 file changed
README.md
@@ -57,6 +57,25 @@ can update your project's README and your transforms README via:
57
codemod-cli update-docs
58
```
59
60
+### File Types
61
+
62
+By default the bin script that is generated for your `codemod-cli` project will run against `.js` and `.ts` files.
63
+If you'd like to change that (e.g. to run against `.hbs` or `.jsx` files) you can tweak your projects `bin/cli.js` script
64
+to add `--extensions=hbs,jsx`:
65
66
+```js
67
+#!/usr/bin/env node
68
+'use strict';
69
70
+require('codemod-cli').runTransform(
71
+ __dirname,
72
+ process.argv[2] /* transform name */,
73
+ process.argv.slice(3) /* paths or globs */
74
75
+ '--extensions=hbs,jsx'
76
+)
77
+```
78
79
Contributing
80
------------------------------------------------------------------------------
81
0 commit comments