@carbon/upgrade 10.17.0 → 11.1.0-rc.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/upgrade",
3
3
  "description": "A tool for upgrading Carbon versions",
4
- "version": "10.17.0",
4
+ "version": "11.1.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
7
7
  "carbon-upgrade": "./bin/carbon-upgrade.js"
@@ -40,11 +40,12 @@
40
40
  "change-case": "^4.1.2",
41
41
  "esbuild": "^0.14.10",
42
42
  "execa": "^5.1.1",
43
- "fast-glob": "^3.2.7",
43
+ "fast-glob": "^3.2.11",
44
44
  "fs-extra": "^10.0.0",
45
45
  "inquirer": "^8.1.0",
46
46
  "is-git-clean": "^1.1.0",
47
- "jest-diff": "^27.4.6",
47
+ "jest-diff": "^28.1.0",
48
+ "jscodeshift": "^0.13.1",
48
49
  "lodash.clonedeep": "^4.5.0",
49
50
  "lodash.merge": "^4.6.2",
50
51
  "memfs": "^3.4.0",
@@ -54,8 +55,5 @@
54
55
  "semver": "^7.3.5",
55
56
  "yargs": "^17.0.1"
56
57
  },
57
- "dependencies": {
58
- "jscodeshift": "^0.13.1"
59
- },
60
- "gitHead": "e76c42ab78cbee043db643597b7b5d79bd387c9b"
58
+ "gitHead": "a44075aa04612c5ddaf73953ca7ce14d1882a02c"
61
59
  }
@@ -1,4 +1,4 @@
1
- import { Add } from '@carbon/icons-react/next';
1
+ import { Add } from '@carbon/icons-react';
2
2
 
3
3
  const icons = {
4
4
  Add16: Add,
@@ -5,7 +5,7 @@ import {
5
5
  DownArrow,
6
6
  Search as SearchIcon,
7
7
  Zone as CustomZone,
8
- } from '@carbon/icons-react/next';
8
+ } from '@carbon/icons-react';
9
9
  import { Search } from 'test';
10
10
 
11
11
  function RendersIconDirectly() {
@@ -1,4 +1,4 @@
1
- import { Add, Bee, Chevron as chevron } from '@carbon/icons-react/next';
1
+ import { Add, Bee, Chevron as chevron } from '@carbon/icons-react';
2
2
 
3
3
  const mapped = {
4
4
  default: Add,
@@ -40,7 +40,7 @@ function transform(fileInfo, api, options) {
40
40
  // For now, these icons are available under @carbon/icons-react/next
41
41
  // TODO: remove in v11
42
42
  matches.forEach((path) => {
43
- path.get('source').get('value').replace('@carbon/icons-react/next');
43
+ path.get('source').get('value').replace('@carbon/icons-react');
44
44
  });
45
45
 
46
46
  // Otherwise, we will get our import to icons and update the imported icons to
@@ -15,9 +15,7 @@
15
15
  * import { Button } from "@carbon/react";
16
16
  */
17
17
 
18
- export const parser = 'babel';
19
-
20
- export default function transformer(file, api) {
18
+ function transformer(file, api) {
21
19
  const j = api.jscodeshift;
22
20
 
23
21
  return j(file.source)
@@ -31,3 +29,5 @@ export default function transformer(file, api) {
31
29
  })
32
30
  .toSource();
33
31
  }
32
+
33
+ module.exports = transformer;