@atlaskit/codemod-cli 0.34.5 → 0.34.7
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/CHANGELOG.md +13 -0
- package/dist/cjs/presets/tag-to-newTag-migration/codemods/tag-to-newTag-migration.js +2 -0
- package/dist/cjs/presets/tag-to-newTag-migration/tag-to-newTag-migration.js +1 -1
- package/dist/cjs/sinceRef.js +2 -0
- package/dist/es2019/presets/tag-to-newTag-migration/codemods/tag-to-newTag-migration.js +1 -0
- package/dist/es2019/presets/tag-to-newTag-migration/tag-to-newTag-migration.js +2 -0
- package/dist/es2019/sinceRef.js +1 -0
- package/dist/esm/presets/tag-to-newTag-migration/codemods/tag-to-newTag-migration.js +1 -0
- package/dist/esm/presets/tag-to-newTag-migration/tag-to-newTag-migration.js +2 -0
- package/dist/esm/sinceRef.js +1 -0
- package/dist/types/main.d.ts +1 -1
- package/dist/types/presets/migrate-deprecated-icon/utils/mock.d.ts +75 -0
- package/dist/types/presets/migrate-to-new-buttons/utils/add-comment-for-custom-theme-buttons.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/add-comment-for-overlay-prop.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/generate-link-element.d.ts +2 -2
- package/dist/types/presets/migrate-to-new-buttons/utils/generate-new-button-element.d.ts +3 -3
- package/dist/types/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts +1 -2
- package/dist/types/presets/migrate-to-new-buttons/utils/move-icon-value-from-link-button-to-link-children.d.ts +1 -1
- package/dist/types/presets/migrate-to-new-buttons/utils/rename-default-button-to-legacy-button.d.ts +1 -1
- package/dist/types/presets/theme-remove-deprecated-mixins/types.d.ts +2 -0
- package/dist/types-ts4.5/main.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-deprecated-icon/utils/mock.d.ts +75 -0
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/add-comment-for-custom-theme-buttons.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/add-comment-for-overlay-prop.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/generate-link-element.d.ts +2 -2
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/generate-new-button-element.d.ts +3 -3
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts +1 -2
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/move-icon-value-from-link-button-to-link-children.d.ts +1 -1
- package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/rename-default-button-to-legacy-button.d.ts +1 -1
- package/dist/types-ts4.5/presets/theme-remove-deprecated-mixins/types.d.ts +2 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/codemod-cli
|
|
2
2
|
|
|
3
|
+
## 0.34.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5367a27d5fe5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5367a27d5fe5a) -
|
|
8
|
+
Internal refactoring
|
|
9
|
+
|
|
10
|
+
## 0.34.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 0.34.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = transformer;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _utils = require("@hypermod/utils");
|
|
10
|
+
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
11
|
+
|
|
10
12
|
var TAG_ENTRY_POINT = '@atlaskit/tag';
|
|
11
13
|
var TAG_REMOVABLE_ENTRY_POINT = '@atlaskit/tag/removable-tag';
|
|
12
14
|
var TAG_SIMPLE_ENTRY_POINT = '@atlaskit/tag/simple-tag';
|
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _tagToNewTagMigration = _interopRequireDefault(require("./codemods/tag-to-newTag-migration"));
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
14
14
|
function transformer(_x, _x2) {
|
|
15
15
|
return _transformer.apply(this, arguments);
|
|
16
16
|
}
|
package/dist/cjs/sinceRef.js
CHANGED
|
@@ -9,6 +9,8 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _simpleGit = _interopRequireDefault(require("simple-git"));
|
|
11
11
|
var _types = require("./types");
|
|
12
|
+
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
13
|
+
|
|
12
14
|
var packageRegex = /"(@(?:atlaskit|atlassian|atlassiansox)\/.*)": "(.*)"/;
|
|
13
15
|
var parseDiffLine = function parseDiffLine(line) {
|
|
14
16
|
var type = line.startsWith('-') ? 'deleted' : line.startsWith('+') ? 'added' : null;
|
package/dist/es2019/sinceRef.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
2
3
|
import { getImportDeclaration } from '@hypermod/utils';
|
|
3
4
|
var TAG_ENTRY_POINT = '@atlaskit/tag';
|
|
4
5
|
var TAG_REMOVABLE_ENTRY_POINT = '@atlaskit/tag/removable-tag';
|
|
@@ -3,6 +3,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
7
|
+
|
|
6
8
|
import tagToNewTagMigrationTransformer from './codemods/tag-to-newTag-migration';
|
|
7
9
|
export default function transformer(_x, _x2) {
|
|
8
10
|
return _transformer.apply(this, arguments);
|
package/dist/esm/sinceRef.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
3
4
|
import simpleGit from 'simple-git';
|
|
4
5
|
import { ValidationError } from './types';
|
|
5
6
|
var packageRegex = /"(@(?:atlaskit|atlassian|atlassiansox)\/.*)": "(.*)"/;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const mockMetadata: {
|
|
2
|
+
coreIconMetadata: {
|
|
3
|
+
capture: {
|
|
4
|
+
keywords: string[];
|
|
5
|
+
componentName: string;
|
|
6
|
+
package: string;
|
|
7
|
+
oldName: string[];
|
|
8
|
+
replacement: {
|
|
9
|
+
name: string;
|
|
10
|
+
location: string;
|
|
11
|
+
};
|
|
12
|
+
categorization: string;
|
|
13
|
+
usage: string;
|
|
14
|
+
team: string;
|
|
15
|
+
status: string;
|
|
16
|
+
};
|
|
17
|
+
'chart-matrix': {
|
|
18
|
+
keywords: string[];
|
|
19
|
+
componentName: string;
|
|
20
|
+
package: string;
|
|
21
|
+
replacement: {
|
|
22
|
+
name: string;
|
|
23
|
+
location: string;
|
|
24
|
+
};
|
|
25
|
+
categorization: string;
|
|
26
|
+
usage: string;
|
|
27
|
+
team: string;
|
|
28
|
+
status: string;
|
|
29
|
+
};
|
|
30
|
+
close: {
|
|
31
|
+
keywords: string[];
|
|
32
|
+
componentName: string;
|
|
33
|
+
package: string;
|
|
34
|
+
oldName: string[];
|
|
35
|
+
replacement: {
|
|
36
|
+
name: string;
|
|
37
|
+
location: string;
|
|
38
|
+
};
|
|
39
|
+
categorization: string;
|
|
40
|
+
usage: string;
|
|
41
|
+
team: string;
|
|
42
|
+
status: string;
|
|
43
|
+
};
|
|
44
|
+
error: {
|
|
45
|
+
keywords: string[];
|
|
46
|
+
componentName: string;
|
|
47
|
+
package: string;
|
|
48
|
+
oldName: string[];
|
|
49
|
+
replacement: {
|
|
50
|
+
name: string;
|
|
51
|
+
location: string;
|
|
52
|
+
};
|
|
53
|
+
categorization: string;
|
|
54
|
+
usage: string;
|
|
55
|
+
team: string;
|
|
56
|
+
status: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const mockDeprecatedIcons: {
|
|
61
|
+
deprecatedCore: {
|
|
62
|
+
'@atlaskit/icon/core/capture': {
|
|
63
|
+
message: string;
|
|
64
|
+
};
|
|
65
|
+
'@atlaskit/icon/core/chart-matrix': {
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
'@atlaskit/icon/core/close': {
|
|
69
|
+
message: string;
|
|
70
|
+
};
|
|
71
|
+
'@atlaskit/icon/core/error': {
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
package/dist/types/presets/migrate-to-new-buttons/utils/add-comment-for-custom-theme-buttons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API[
|
|
2
|
+
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API['jscodeshift']) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const modifyLinkAttributes: (element: JSXElement, j: API[
|
|
3
|
-
export declare const generateLinkComponent: (element: JSXElement, j: API[
|
|
2
|
+
export declare const modifyLinkAttributes: (element: JSXElement, j: API['jscodeshift']) => void;
|
|
3
|
+
export declare const generateLinkComponent: (element: JSXElement, j: API['jscodeshift']) => JSXElement | undefined;
|
|
@@ -15,6 +15,6 @@ export declare const getIconElement: (iconAttr: JSXAttribute) => JSXElement | nu
|
|
|
15
15
|
* @param j
|
|
16
16
|
* @param iconRenamed
|
|
17
17
|
*/
|
|
18
|
-
export declare const handleIconAttributes: (element: JSXElement, j: API[
|
|
19
|
-
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API[
|
|
20
|
-
export declare const modifyButtonAttributes: (element: JSXElement, j: API[
|
|
18
|
+
export declare const handleIconAttributes: (element: JSXElement, j: API['jscodeshift'], iconRenamed?: boolean) => void;
|
|
19
|
+
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API['jscodeshift']) => JSXElement;
|
|
20
|
+
export declare const modifyButtonAttributes: (element: JSXElement, j: API['jscodeshift'], hasSpacingNone: boolean) => void;
|
package/dist/types/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { API, ASTPath } from 'jscodeshift';
|
|
2
|
-
import { type JSXElement } from 'jscodeshift';
|
|
1
|
+
import type { API, ASTPath, JSXElement } from 'jscodeshift';
|
|
3
2
|
export declare const migrateFitContainerIconButton: (element: ASTPath<JSXElement>, j: API["jscodeshift"]) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type ASTPath, type JSXElement, type JSXExpressionContainer } from 'jscodeshift';
|
|
2
|
-
declare const moveIcon: (j: API[
|
|
2
|
+
declare const moveIcon: (j: API['jscodeshift'], path: ASTPath<JSXElement>, iconNode: JSXExpressionContainer | undefined | null, beforeOrAfter: 'iconBefore' | 'iconAfter') => void;
|
|
3
3
|
export default moveIcon;
|
package/dist/types/presets/migrate-to-new-buttons/utils/rename-default-button-to-legacy-button.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, ImportDeclaration, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const mockMetadata: {
|
|
2
|
+
coreIconMetadata: {
|
|
3
|
+
capture: {
|
|
4
|
+
keywords: string[];
|
|
5
|
+
componentName: string;
|
|
6
|
+
package: string;
|
|
7
|
+
oldName: string[];
|
|
8
|
+
replacement: {
|
|
9
|
+
name: string;
|
|
10
|
+
location: string;
|
|
11
|
+
};
|
|
12
|
+
categorization: string;
|
|
13
|
+
usage: string;
|
|
14
|
+
team: string;
|
|
15
|
+
status: string;
|
|
16
|
+
};
|
|
17
|
+
'chart-matrix': {
|
|
18
|
+
keywords: string[];
|
|
19
|
+
componentName: string;
|
|
20
|
+
package: string;
|
|
21
|
+
replacement: {
|
|
22
|
+
name: string;
|
|
23
|
+
location: string;
|
|
24
|
+
};
|
|
25
|
+
categorization: string;
|
|
26
|
+
usage: string;
|
|
27
|
+
team: string;
|
|
28
|
+
status: string;
|
|
29
|
+
};
|
|
30
|
+
close: {
|
|
31
|
+
keywords: string[];
|
|
32
|
+
componentName: string;
|
|
33
|
+
package: string;
|
|
34
|
+
oldName: string[];
|
|
35
|
+
replacement: {
|
|
36
|
+
name: string;
|
|
37
|
+
location: string;
|
|
38
|
+
};
|
|
39
|
+
categorization: string;
|
|
40
|
+
usage: string;
|
|
41
|
+
team: string;
|
|
42
|
+
status: string;
|
|
43
|
+
};
|
|
44
|
+
error: {
|
|
45
|
+
keywords: string[];
|
|
46
|
+
componentName: string;
|
|
47
|
+
package: string;
|
|
48
|
+
oldName: string[];
|
|
49
|
+
replacement: {
|
|
50
|
+
name: string;
|
|
51
|
+
location: string;
|
|
52
|
+
};
|
|
53
|
+
categorization: string;
|
|
54
|
+
usage: string;
|
|
55
|
+
team: string;
|
|
56
|
+
status: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const mockDeprecatedIcons: {
|
|
61
|
+
deprecatedCore: {
|
|
62
|
+
'@atlaskit/icon/core/capture': {
|
|
63
|
+
message: string;
|
|
64
|
+
};
|
|
65
|
+
'@atlaskit/icon/core/chart-matrix': {
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
'@atlaskit/icon/core/close': {
|
|
69
|
+
message: string;
|
|
70
|
+
};
|
|
71
|
+
'@atlaskit/icon/core/error': {
|
|
72
|
+
message: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API[
|
|
2
|
+
export declare const addCommentForCustomThemeButtons: (fileSource: Collection<any>, j: API['jscodeshift']) => void;
|
package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/add-comment-for-overlay-prop.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const addCommentForOverlayProp: (oldButtons: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const modifyLinkAttributes: (element: JSXElement, j: API[
|
|
3
|
-
export declare const generateLinkComponent: (element: JSXElement, j: API[
|
|
2
|
+
export declare const modifyLinkAttributes: (element: JSXElement, j: API['jscodeshift']) => void;
|
|
3
|
+
export declare const generateLinkComponent: (element: JSXElement, j: API['jscodeshift']) => JSXElement | undefined;
|
package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/generate-new-button-element.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export declare const getIconElement: (iconAttr: JSXAttribute) => JSXElement | nu
|
|
|
15
15
|
* @param j
|
|
16
16
|
* @param iconRenamed
|
|
17
17
|
*/
|
|
18
|
-
export declare const handleIconAttributes: (element: JSXElement, j: API[
|
|
19
|
-
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API[
|
|
20
|
-
export declare const modifyButtonAttributes: (element: JSXElement, j: API[
|
|
18
|
+
export declare const handleIconAttributes: (element: JSXElement, j: API['jscodeshift'], iconRenamed?: boolean) => void;
|
|
19
|
+
export declare const generateNewElement: (variant: (typeof NEW_BUTTON_VARIANTS)[keyof typeof NEW_BUTTON_VARIANTS], element: JSXElement, j: API['jscodeshift']) => JSXElement;
|
|
20
|
+
export declare const modifyButtonAttributes: (element: JSXElement, j: API['jscodeshift'], hasSpacingNone: boolean) => void;
|
package/dist/types-ts4.5/presets/migrate-to-new-buttons/utils/migrate-fit-container-icon-button.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import type { API, ASTPath } from 'jscodeshift';
|
|
2
|
-
import { type JSXElement } from 'jscodeshift';
|
|
1
|
+
import type { API, ASTPath, JSXElement } from 'jscodeshift';
|
|
3
2
|
export declare const migrateFitContainerIconButton: (element: ASTPath<JSXElement>, j: API["jscodeshift"]) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type API, type ASTPath, type JSXElement, type JSXExpressionContainer } from 'jscodeshift';
|
|
2
|
-
declare const moveIcon: (j: API[
|
|
2
|
+
declare const moveIcon: (j: API['jscodeshift'], path: ASTPath<JSXElement>, iconNode: JSXExpressionContainer | undefined | null, beforeOrAfter: 'iconBefore' | 'iconAfter') => void;
|
|
3
3
|
export default moveIcon;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { API, Collection, ImportDeclaration, JSXElement } from 'jscodeshift';
|
|
2
|
-
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API[
|
|
2
|
+
export declare const renameDefaultButtonToLegacyButtonImport: (oldButtonImport: Collection<ImportDeclaration>, oldButtonElements: Collection<JSXElement>, j: API['jscodeshift']) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/codemod-cli",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.7",
|
|
4
4
|
"description": "A cli for distributing codemods for atlassian-frontend components and services",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"atlaskit:src": "src/index.
|
|
21
|
+
"atlaskit:src": "src/index.tsx",
|
|
22
22
|
"atlassian": {
|
|
23
23
|
"team": "Design System Team"
|
|
24
24
|
},
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"bin": "./bin/codemod-cli.js",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
32
|
-
"@atlaskit/icon": "^
|
|
33
|
-
"@atlaskit/icon-lab": "^5.
|
|
32
|
+
"@atlaskit/icon": "^32.0.0",
|
|
33
|
+
"@atlaskit/icon-lab": "^5.17.0",
|
|
34
34
|
"@atlaskit/tokens": "^11.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@codeshift/utils": "^0.2.4",
|