@atlaskit/codemod-cli 0.10.1 → 0.10.2
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 +6 -0
- package/dist/cjs/main.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +3 -4
- package/report.api.md +61 -13
package/CHANGELOG.md
CHANGED
package/dist/cjs/main.js
CHANGED
|
@@ -387,7 +387,7 @@ function _main() {
|
|
|
387
387
|
case 4:
|
|
388
388
|
_yield$parseArgs = _context5.sent;
|
|
389
389
|
packages = _yield$parseArgs.packages;
|
|
390
|
-
_process$env$_PACKAGE = "0.10.
|
|
390
|
+
_process$env$_PACKAGE = "0.10.2", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
|
|
391
391
|
logger.log(_chalk.default.bgBlue(_chalk.default.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
|
|
392
392
|
|
|
393
393
|
if (packages && packages.length > 0) {
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/main.js
CHANGED
|
@@ -365,7 +365,7 @@ function _main() {
|
|
|
365
365
|
case 4:
|
|
366
366
|
_yield$parseArgs = _context5.sent;
|
|
367
367
|
packages = _yield$parseArgs.packages;
|
|
368
|
-
_process$env$_PACKAGE = "0.10.
|
|
368
|
+
_process$env$_PACKAGE = "0.10.2", _PACKAGE_VERSION_ = _process$env$_PACKAGE === void 0 ? '0.0.0-dev' : _process$env$_PACKAGE;
|
|
369
369
|
logger.log(chalk.bgBlue(chalk.black("\uD83D\uDCDA Atlassian-Frontend codemod library @ ".concat(_PACKAGE_VERSION_, " \uD83D\uDCDA"))));
|
|
370
370
|
|
|
371
371
|
if (packages && packages.length > 0) {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/codemod-cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "A cli for distributing codemods for atlassian-frontend components and services",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,9 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/tokens": "^0.10.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
|
-
"@types/chalk": "^2.2.0",
|
|
30
29
|
"@types/jscodeshift": "^0.11.0",
|
|
31
|
-
"chalk": "^
|
|
30
|
+
"chalk": "^4.1.2",
|
|
32
31
|
"enquirer": "^2.3.4",
|
|
33
32
|
"glob": "^7.1.2",
|
|
34
33
|
"jscodeshift": "^0.13.0",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"@atlaskit/docs": "*",
|
|
44
43
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
45
44
|
"ts-node": "^10.0.0",
|
|
46
|
-
"typescript": "4.
|
|
45
|
+
"typescript": "4.3.5"
|
|
47
46
|
},
|
|
48
47
|
"homepage": "https://atlaskit.atlassian.com/packages/monorepo-tooling/codemod-cli",
|
|
49
48
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/report.api.md
CHANGED
|
@@ -1,10 +1,62 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/codemod-cli"
|
|
1
|
+
## API Report File for "@atlaskit/codemod-cli".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
declare type CliFlags = {
|
|
9
|
+
/**
|
|
10
|
+
* The transform to run
|
|
11
|
+
*/
|
|
12
|
+
transform?: string;
|
|
13
|
+
/**
|
|
14
|
+
* select which transform to run
|
|
15
|
+
*/
|
|
16
|
+
preset?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Comma separated list of packages to run transforms for, @scope/package[@version]. If version is supplied, will only run transforms above that version
|
|
19
|
+
*/
|
|
20
|
+
packages?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Parser to use for parsing the source files
|
|
23
|
+
*/
|
|
24
|
+
parser: 'babel' | 'babylon' | 'flow' | 'ts' | 'tsx';
|
|
25
|
+
/**
|
|
26
|
+
* Transform files with these file extensions (comma separated list)
|
|
27
|
+
*/
|
|
28
|
+
extensions: string;
|
|
29
|
+
/**
|
|
30
|
+
* Ignore files that match a provided glob expression
|
|
31
|
+
*/
|
|
32
|
+
ignorePattern: string;
|
|
33
|
+
/**
|
|
34
|
+
* Determines changed packages since the specified git ref and runs all codemods for them. The ref can be any valid git ref, e.g. a commit hash, HEAD etc.
|
|
35
|
+
*/
|
|
36
|
+
sinceRef?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Return a 1 exit code when errors were found during execution of codemods
|
|
39
|
+
*/
|
|
40
|
+
failOnError?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Filters source paths to package directories that declare a dependency on the package being upgraded
|
|
43
|
+
*/
|
|
44
|
+
filterPaths?: boolean;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** Converts required args to optional if they have a default
|
|
48
|
+
* Example: export type UserFlags = Default<Flags, keyof typeof defaultFlags>;
|
|
49
|
+
*/
|
|
50
|
+
declare type Default<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
51
|
+
|
|
52
|
+
declare const defaultFlags: {
|
|
53
|
+
parser: 'babel';
|
|
54
|
+
extensions: string;
|
|
55
|
+
ignorePattern: string;
|
|
56
|
+
logger: Console;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
declare type Flags_2 = CliFlags & {
|
|
8
60
|
logger: {
|
|
9
61
|
log: (...args: any) => void;
|
|
10
62
|
warn: (...args: any) => void;
|
|
@@ -12,8 +64,7 @@ type Flags_2 = CliFlags & {
|
|
|
12
64
|
};
|
|
13
65
|
export { Flags_2 as Flags };
|
|
14
66
|
|
|
15
|
-
|
|
16
|
-
function main(
|
|
67
|
+
declare function main(
|
|
17
68
|
input: string[],
|
|
18
69
|
userFlags: UserFlags,
|
|
19
70
|
): Promise<{
|
|
@@ -28,14 +79,11 @@ function main(
|
|
|
28
79
|
}>;
|
|
29
80
|
export default main;
|
|
30
81
|
|
|
31
|
-
|
|
32
|
-
export class NoTransformsExistError extends Error {}
|
|
82
|
+
export declare class NoTransformsExistError extends Error {}
|
|
33
83
|
|
|
34
|
-
|
|
35
|
-
export type UserFlags = Default<Flags_2, keyof typeof defaultFlags>;
|
|
84
|
+
export declare type UserFlags = Default<Flags_2, keyof typeof defaultFlags>;
|
|
36
85
|
|
|
37
|
-
|
|
38
|
-
export class ValidationError extends Error {}
|
|
86
|
+
export declare class ValidationError extends Error {}
|
|
39
87
|
|
|
40
|
-
|
|
88
|
+
export {};
|
|
41
89
|
```
|