@instructure/ui-codemods 8.22.1-snapshot.21 → 8.22.1-snapshot.24
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 +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ All available codemods can also be executed using the [instui-cli](#instui-cli)
|
|
|
34
34
|
This codemod helps you update your project by renaming `props` that have had names changed (e.g., `onReady` => `onOpen`).
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updatePropNames.
|
|
37
|
+
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updatePropNames.ts <path> --config=node_modules/@instructure/instui-config/codemod-configs/v<version number ex. 5 or 6>/propNames.config.json
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Updating Package Imports
|
|
@@ -42,7 +42,7 @@ jscodeshift -t node_modules/@instructure/ui-codemods/lib/updatePropNames.js <pat
|
|
|
42
42
|
This codemod helps you update your project by renaming `imports` that have changed (e.g., `instructure-ui` => `@instructure/<package name>`).
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateImports.
|
|
45
|
+
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateImports.ts <path> --config=node_modules/@instructure/instui-config/codemod-configs/v<version number ex. 5 or 6>/imports.config.js
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
### Updating more complex props to the InstUI v8 syntax
|
|
@@ -50,13 +50,13 @@ jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateImports.js <path>
|
|
|
50
50
|
This codemod upgrades more complex changes like Button, also outputs any manual changes needed to the console. Run this in a InstUI v7 codebase only. This command has an optional fileName parameter, supplying this will append to the given file the warnings.
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateV7Props.
|
|
53
|
+
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateV7Props.ts <path> -fileName updateV7PropsWarnings.txt
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### Codemod for breaking changes after updating the dependencies to V8
|
|
57
57
|
|
|
58
58
|
```sh
|
|
59
|
-
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateV8Breaking.
|
|
59
|
+
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateV8Breaking.ts <path>
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
This codemod updates breaking changes after a v8 upgrade. Run this in a project after you have upgraded your dependencies to InstUI v8.
|
|
@@ -64,7 +64,7 @@ This codemod updates breaking changes after a v8 upgrade. Run this in a project
|
|
|
64
64
|
### Codemod for adding a wrapper to ReactDOM.render()
|
|
65
65
|
|
|
66
66
|
```sh
|
|
67
|
-
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateV8ReactDOM.
|
|
67
|
+
jscodeshift -t node_modules/@instructure/ui-codemods/lib/updateV8ReactDOM.ts <path> -fileName updateV8ReactDOM.txt
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
This codemod updates ReactDOM.render calls with a given wrapper, for example:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-codemods",
|
|
3
|
-
"version": "8.22.1-snapshot.
|
|
3
|
+
"version": "8.22.1-snapshot.24+e5a2b72a6",
|
|
4
4
|
"description": "Codemod scripts to help upgrade Instructure UI libraries.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@instructure/ui-babel-preset": "8.22.1-snapshot.
|
|
20
|
+
"@instructure/ui-babel-preset": "8.22.1-snapshot.24+e5a2b72a6",
|
|
21
21
|
"@types/jscodeshift": "^0.11.3",
|
|
22
22
|
"@types/prettier": "^2",
|
|
23
23
|
"jest": "^24.9.0"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "e5a2b72a61a761440403c8c6d15fce852b59854c"
|
|
34
34
|
}
|