You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -599,7 +599,7 @@ It's recommended that you set up your codemod project to all debugging via the V
599
599
{
600
600
"type": "promptString",
601
601
"id": "transformFile",
602
-
"description": "evcodeshift transform file",
602
+
"description": "jscodeshift transform file",
603
603
"default": "transform.js"
604
604
}
605
605
]
@@ -608,14 +608,14 @@ It's recommended that you set up your codemod project to all debugging via the V
608
608
609
609
Once this has been added to the configuration
610
610
611
-
1. Install evcodeshift as a package if you haven't done so already by running the command **npm install --save evcodeshift**. The debug configuration will not work otherwise.
612
-
2. Once the evcodeshift local package has been installed, go to the VSCode file tree and select the file on which you want to run the transform. For example, if you wanted to run codemod transforms of foo.js file, you would click on the entry for foo.js file in your project tree.
611
+
1. Install jscodeshift as a package if you haven't done so already by running the command **npm install --save jscodeshift**. The debug configuration will not work otherwise.
612
+
2. Once the jscodeshift local package has been installed, go to the VSCode file tree and select the file on which you want to run the transform. For example, if you wanted to run codemod transforms of foo.js file, you would click on the entry for foo.js file in your project tree.
613
613
3. Select "Debug Transform" from the debugging menu's options menu.
614
614
4. Click the **"Start Debugging"** button on the VSCode debugger.
615
-
5. You will be then prompted for the name of evcodeshift transform file. Enter in the name of the transform file to use. If no name is given it will default to **transform.js**
615
+
5. You will be then prompted for the name of jscodeshift transform file. Enter in the name of the transform file to use. If no name is given it will default to **transform.js**
616
616
6. Select the parser to use from the presented selection list of parsers. The transform will otherwise default to using the **babel** parser.
617
617
7. The transform will then be run, stopping at any breakpoints that have been set.
618
-
8. If there are no errors and the transform is complete, then the results of the transform will be printed in the VSCode debugging console. The file with the contents that have been transformed will not be changed, as the debug configuration makes use the evcodeshift**--dry** option.
618
+
8. If there are no errors and the transform is complete, then the results of the transform will be printed in the VSCode debugging console. The file with the contents that have been transformed will not be changed, as the debug configuration makes use the jscodeshift**--dry** option.
0 commit comments