@teambit/checkout 1.0.107 → 1.0.108
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/checkout-cmd.ts +261 -0
- package/checkout-version.ts +240 -0
- package/checkout.aspect.ts +5 -0
- package/checkout.main.runtime.ts +514 -0
- package/dist/checkout-cmd.js +3 -3
- package/dist/checkout-cmd.js.map +1 -1
- package/dist/checkout-version.d.ts +4 -4
- package/dist/checkout-version.js +1 -1
- package/dist/checkout-version.js.map +1 -1
- package/dist/checkout.main.runtime.d.ts +3 -3
- package/dist/checkout.main.runtime.js +11 -15
- package/dist/checkout.main.runtime.js.map +1 -1
- package/index.ts +21 -0
- package/package.json +16 -25
- package/revert-cmd.ts +45 -0
- package/tsconfig.json +16 -21
- package/types/asset.d.ts +15 -3
- /package/dist/{preview-1703590665075.js → preview-1703647408454.js} +0 -0
package/package.json
CHANGED
|
@@ -1,43 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/checkout",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/checkout",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "checkout",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.108"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"p-map-series": "2.1.0",
|
|
15
|
-
"core-js": "^3.0.0",
|
|
16
|
-
"@babel/runtime": "7.20.0",
|
|
17
15
|
"@teambit/bit-error": "0.0.404",
|
|
18
16
|
"@teambit/component-id": "1.2.0",
|
|
19
17
|
"@teambit/harmony": "0.4.6",
|
|
20
|
-
"@teambit/cli": "0.0.
|
|
21
|
-
"@teambit/merging": "1.0.
|
|
22
|
-
"@teambit/component-writer": "1.0.
|
|
23
|
-
"@teambit/importer": "1.0.
|
|
24
|
-
"@teambit/logger": "0.0.
|
|
25
|
-
"@teambit/remove": "1.0.
|
|
26
|
-
"@teambit/workspace": "1.0.
|
|
18
|
+
"@teambit/cli": "0.0.840",
|
|
19
|
+
"@teambit/merging": "1.0.108",
|
|
20
|
+
"@teambit/component-writer": "1.0.108",
|
|
21
|
+
"@teambit/importer": "1.0.108",
|
|
22
|
+
"@teambit/logger": "0.0.933",
|
|
23
|
+
"@teambit/remove": "1.0.108",
|
|
24
|
+
"@teambit/workspace": "1.0.108"
|
|
27
25
|
},
|
|
28
26
|
"devDependencies": {
|
|
29
27
|
"@types/lodash": "4.14.165",
|
|
30
28
|
"@types/mocha": "9.1.0",
|
|
31
|
-
"@types/
|
|
32
|
-
"@types/
|
|
33
|
-
"@
|
|
34
|
-
"@types/jest": "^26.0.0",
|
|
35
|
-
"@types/testing-library__jest-dom": "5.9.5"
|
|
29
|
+
"@types/jest": "^29.2.2",
|
|
30
|
+
"@types/testing-library__jest-dom": "^5.9.5",
|
|
31
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.13"
|
|
36
32
|
},
|
|
37
33
|
"peerDependencies": {
|
|
38
|
-
"@teambit/legacy": "1.0.624"
|
|
39
|
-
"react": "^16.8.0 || ^17.0.0",
|
|
40
|
-
"react-dom": "^16.8.0 || ^17.0.0"
|
|
34
|
+
"@teambit/legacy": "1.0.624"
|
|
41
35
|
},
|
|
42
36
|
"license": "Apache-2.0",
|
|
43
37
|
"optionalDependencies": {},
|
|
@@ -51,7 +45,7 @@
|
|
|
51
45
|
},
|
|
52
46
|
"private": false,
|
|
53
47
|
"engines": {
|
|
54
|
-
"node": ">=
|
|
48
|
+
"node": ">=16.0.0"
|
|
55
49
|
},
|
|
56
50
|
"repository": {
|
|
57
51
|
"type": "git",
|
|
@@ -60,12 +54,9 @@
|
|
|
60
54
|
"keywords": [
|
|
61
55
|
"bit",
|
|
62
56
|
"bit-aspect",
|
|
57
|
+
"bit-core-aspect",
|
|
63
58
|
"components",
|
|
64
59
|
"collaboration",
|
|
65
|
-
"web"
|
|
66
|
-
"react",
|
|
67
|
-
"react-components",
|
|
68
|
-
"angular",
|
|
69
|
-
"angular-components"
|
|
60
|
+
"web"
|
|
70
61
|
]
|
|
71
62
|
}
|
package/revert-cmd.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
|
+
import { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
3
|
+
import { CheckoutMain } from './checkout.main.runtime';
|
|
4
|
+
import { CheckoutCmd } from './checkout-cmd';
|
|
5
|
+
|
|
6
|
+
export class RevertCmd implements Command {
|
|
7
|
+
name = 'revert <component-pattern> <to>';
|
|
8
|
+
arguments = [
|
|
9
|
+
{
|
|
10
|
+
name: 'component-pattern',
|
|
11
|
+
description: COMPONENT_PATTERN_HELP,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'to',
|
|
15
|
+
description: "permitted values: [main, specific-version]. 'main' - head version on main.",
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
description = 'replace the current component files by the specified version, leave the version intact';
|
|
19
|
+
group = 'development';
|
|
20
|
+
alias = '';
|
|
21
|
+
options = [
|
|
22
|
+
['v', 'verbose', 'showing verbose output for inspection'],
|
|
23
|
+
['x', 'skip-dependency-installation', 'do not install packages of the imported components'],
|
|
24
|
+
] as CommandOptions;
|
|
25
|
+
loader = true;
|
|
26
|
+
|
|
27
|
+
constructor(private checkout: CheckoutMain) {}
|
|
28
|
+
|
|
29
|
+
async report(
|
|
30
|
+
[componentPattern, to]: [string, string],
|
|
31
|
+
{
|
|
32
|
+
verbose = false,
|
|
33
|
+
skipDependencyInstallation = false,
|
|
34
|
+
}: {
|
|
35
|
+
verbose?: boolean;
|
|
36
|
+
skipDependencyInstallation?: boolean;
|
|
37
|
+
}
|
|
38
|
+
) {
|
|
39
|
+
return new CheckoutCmd(this.checkout).report([to, componentPattern], {
|
|
40
|
+
verbose,
|
|
41
|
+
skipDependencyInstallation,
|
|
42
|
+
revert: true,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"lib": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"DOM.Iterable",
|
|
8
|
-
"ScriptHost"
|
|
4
|
+
"esnext",
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.Iterable"
|
|
9
7
|
],
|
|
10
|
-
"target": "
|
|
11
|
-
"module": "
|
|
12
|
-
"jsx": "react",
|
|
13
|
-
"allowJs": true,
|
|
14
|
-
"composite": true,
|
|
8
|
+
"target": "es2020",
|
|
9
|
+
"module": "es2020",
|
|
10
|
+
"jsx": "react-jsx",
|
|
15
11
|
"declaration": true,
|
|
16
12
|
"sourceMap": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
13
|
"experimentalDecorators": true,
|
|
19
|
-
"
|
|
14
|
+
"skipLibCheck": true,
|
|
20
15
|
"moduleResolution": "node",
|
|
21
16
|
"esModuleInterop": true,
|
|
22
|
-
"rootDir": ".",
|
|
23
17
|
"resolveJsonModule": true,
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"strictPropertyInitialization": false,
|
|
28
|
-
"strict": true,
|
|
29
|
-
"noImplicitAny": false,
|
|
30
|
-
"preserveConstEnums": true
|
|
18
|
+
"allowJs": true,
|
|
19
|
+
"outDir": "dist",
|
|
20
|
+
"emitDeclarationOnly": true
|
|
31
21
|
},
|
|
32
22
|
"exclude": [
|
|
23
|
+
"artifacts",
|
|
24
|
+
"public",
|
|
33
25
|
"dist",
|
|
26
|
+
"node_modules",
|
|
27
|
+
"package.json",
|
|
34
28
|
"esm.mjs",
|
|
35
|
-
"
|
|
29
|
+
"**/*.cjs",
|
|
30
|
+
"./dist"
|
|
36
31
|
],
|
|
37
32
|
"include": [
|
|
38
33
|
"**/*",
|
package/types/asset.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ declare module '*.png' {
|
|
|
5
5
|
declare module '*.svg' {
|
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
7
|
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
|
8
|
+
export const ReactComponent: FunctionComponent<
|
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
|
10
|
+
>;
|
|
9
11
|
const src: string;
|
|
10
12
|
export default src;
|
|
11
13
|
}
|
|
12
|
-
|
|
13
|
-
// @TODO Gilad
|
|
14
14
|
declare module '*.jpg' {
|
|
15
15
|
const value: any;
|
|
16
16
|
export = value;
|
|
@@ -27,3 +27,15 @@ declare module '*.bmp' {
|
|
|
27
27
|
const value: any;
|
|
28
28
|
export = value;
|
|
29
29
|
}
|
|
30
|
+
declare module '*.otf' {
|
|
31
|
+
const value: any;
|
|
32
|
+
export = value;
|
|
33
|
+
}
|
|
34
|
+
declare module '*.woff' {
|
|
35
|
+
const value: any;
|
|
36
|
+
export = value;
|
|
37
|
+
}
|
|
38
|
+
declare module '*.woff2' {
|
|
39
|
+
const value: any;
|
|
40
|
+
export = value;
|
|
41
|
+
}
|
|
File without changes
|