We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df5b3ab commit 163414aCopy full SHA for 163414a
.changeset/thick-hounds-wonder.md
@@ -0,0 +1,5 @@
1
+---
2
+"aws-sdk-js-codemod": patch
3
4
+
5
+Convert version callback to arrow function
src/utils/getJsCodeshiftParser.ts
@@ -141,13 +141,12 @@ export const getJsCodeshiftParser = () =>
141
version: {
142
display_index: 17,
143
help: "print version and exit",
144
- callback: function () {
145
- return [
+ callback: () =>
+ [
146
`aws-sdk-js-codemod: ${version}`,
147
`- jscodeshift: ${requirePackage("jscodeshift").version}`,
148
`- recast: ${requirePackage("recast").version}\n`,
149
- ].join("\n");
150
- },
+ ].join("\n"),
151
},
152
stdin: {
153
display_index: 14,
0 commit comments