@mui/codemod 5.2.2 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,7 +39,7 @@ Examples:
39
39
  npx @mui/codemod v5.0.0/preset-safe src --parser=flow
40
40
  ```
41
41
 
42
- #### jscodeshift options
42
+ ### jscodeshift options
43
43
 
44
44
  To pass more options directly to jscodeshift, use `--jscodeshift="..."`. For example:
45
45
 
@@ -49,7 +49,7 @@ npx @mui/codemod --jscodeshift="--run-in-band --verbose=2"
49
49
 
50
50
  See all available options [here](https://github.com/facebook/jscodeshift#usage-cli).
51
51
 
52
- #### Recast Options
52
+ ### Recast Options
53
53
 
54
54
  Options to [recast](https://github.com/benjamn/recast)'s printer can be provided
55
55
  through jscodeshift's `printOptions` command line argument
@@ -1247,13 +1247,13 @@ npx @mui/codemod v1.0.0/color-imports <path>
1247
1247
 
1248
1248
  <!-- #default-branch-switch -->
1249
1249
 
1250
- ```
1250
+ ```sh
1251
1251
  npx @mui/codemod v1.0.0/color-imports <path> -- --importPath='mui/styles/colors' --targetPath='mui/colors'
1252
1252
  ```
1253
1253
 
1254
1254
  #### `svg-icon-imports`
1255
1255
 
1256
- Updates the `svg-icons` import paths from `material-ui/svg-icons/<category>/<icon-name>` to `@material-ui/icons/<IconName>`, to use the new [`@material-ui/icons`](https://github.com/mui-org/material-ui/tree/next/packages/mui-material-icons) package.
1256
+ Updates the `svg-icons` import paths from `material-ui/svg-icons/<category>/<icon-name>` to `@material-ui/icons/<IconName>`, to use the new `@material-ui/icons` package.
1257
1257
  The diff should look like this:
1258
1258
 
1259
1259
  ```diff
@@ -21,7 +21,6 @@ function pascalize(iconName) {
21
21
  * Update all `svg-icons` import references to use `@material-ui/icons` package.
22
22
  * Find and replace string literal AST nodes to ensure all svg-icon paths get updated, regardless
23
23
  * of being in an import declaration, or a require() call, etc.
24
- * https://github.com/mui-org/material-ui/tree/next/packages/@material-ui/icons
25
24
  * @param {jscodeshift_api_object} j
26
25
  * @param {jscodeshift_ast_object} root
27
26
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/codemod",
3
- "version": "5.2.2",
3
+ "version": "5.3.0",
4
4
  "bin": "./codemod.js",
5
5
  "private": false,
6
6
  "author": "MUI Team",
@@ -30,12 +30,12 @@
30
30
  "url": "https://opencollective.com/mui"
31
31
  },
32
32
  "dependencies": {
33
- "@babel/core": "^7.16.0",
34
- "@babel/runtime": "^7.16.3",
35
- "@babel/traverse": "^7.16.3",
36
- "jscodeshift": "^0.13.0",
33
+ "@babel/core": "^7.16.7",
34
+ "@babel/runtime": "^7.16.7",
35
+ "@babel/traverse": "^7.16.8",
36
+ "jscodeshift": "^0.13.1",
37
37
  "jscodeshift-add-imports": "^1.0.10",
38
- "yargs": "^17.3.0"
38
+ "yargs": "^17.3.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/jscodeshift": "0.11.3"