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
Runs transforms for the specified comma separated list of packages, optionally include a version for each package to run all transforms since that version
Copy file name to clipboardExpand all lines: website/docs/authoring.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,14 @@ Do not use this method if:
34
34
## 2. Add codeshift to an existing package
35
35
36
36
For existing npm packages (like react), you have the option to expose codemods directly from the package by simply creating a `codeshift.config.js` at either the root, `/src` or `/codemods` directory.
37
-
Given that the config and codemod files are then published and available on NPM, `codeshift-cli` will be able to find and run codemods using the `--package` flag.
37
+
Given that the config and codemod files are then published and available on NPM, `codeshift` will be able to find and run codemods using the `--package` flag.
38
38
39
39
Use this method if you want:
40
40
41
41
- To get up and running with an existing package with very little overhead
42
42
- Control over where and how your codeshift package is hosted
43
43
- Control over tooling, dependencies and techstack
44
-
- To remove a previously created jscodeshift cli wrapper and instead use the generic codeshift-cli
44
+
- To remove a previously created `jscodeshift` cli wrapper and instead use the generic `codeshift`cli
Copy file name to clipboardExpand all lines: website/docs/configuration.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ module.exports = {
24
24
};
25
25
```
26
26
27
-
These files should always be in the root directory of your package to ensure `codeshift-cli` has access to it.
27
+
These files should always be in the root directory of your package to ensure `codeshift` has access to it.
28
28
It does so by pulling your package directly from NPM and searching the root directory, which by extension means you should always ensure that the config and the transform files are not ignored by npm.
29
29
30
30
Config files can be written in either JavaScript or TypeScript, depending on your preference.
0 commit comments