@instructure/ui-codemods 8.22.1-snapshot.22 → 8.22.1-snapshot.23

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. 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.js <path> --config=node_modules/@instructure/instui-config/codemod-configs/v<version number ex. 5 or 6>/propNames.config.json
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.js <path> --config=node_modules/@instructure/instui-config/codemod-configs/v<version number ex. 5 or 6>/imports.config.js
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.js <path> -fileName updateV7PropsWarnings.txt
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.js <path>
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.js <path> -fileName updateV8ReactDOM.txt
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.22+a6613e9ef",
3
+ "version": "8.22.1-snapshot.23+23720451b",
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.22+a6613e9ef",
20
+ "@instructure/ui-babel-preset": "8.22.1-snapshot.23+23720451b",
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": "a6613e9efbf60b08ad06883e70c1f400b033e838"
33
+ "gitHead": "23720451b9e91fc1ba0b31b4f22fff32669a4d59"
34
34
  }