@teambit/install 0.0.1
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/__snapshots__/pick-outdated-pkgs.spec.ts.snap +171 -0
- package/dist/__snapshots__/pick-outdated-pkgs.spec.js.snap +171 -0
- package/dist/__snapshots__/pick-outdated-pkgs.spec.ts.snap +171 -0
- package/dist/exceptions/dependency-type-not-supported-in-policy.d.ts +4 -0
- package/dist/exceptions/dependency-type-not-supported-in-policy.js +27 -0
- package/dist/exceptions/dependency-type-not-supported-in-policy.js.map +1 -0
- package/dist/exceptions/index.d.ts +1 -0
- package/dist/exceptions/index.js +23 -0
- package/dist/exceptions/index.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/install.aspect.d.ts +2 -0
- package/dist/install.aspect.js +24 -0
- package/dist/install.aspect.js.map +1 -0
- package/dist/install.cmd.d.ts +46 -0
- package/dist/install.cmd.js +86 -0
- package/dist/install.cmd.js.map +1 -0
- package/dist/install.main.runtime.d.ts +76 -0
- package/dist/install.main.runtime.js +580 -0
- package/dist/install.main.runtime.js.map +1 -0
- package/dist/link/component-list-links.d.ts +7 -0
- package/dist/link/component-list-links.js +98 -0
- package/dist/link/component-list-links.js.map +1 -0
- package/dist/link/core-aspects-links.d.ts +7 -0
- package/dist/link/core-aspects-links.js +95 -0
- package/dist/link/core-aspects-links.js.map +1 -0
- package/dist/link/get-package-name-from-target.d.ts +1 -0
- package/dist/link/get-package-name-from-target.js +16 -0
- package/dist/link/get-package-name-from-target.js.map +1 -0
- package/dist/link/index.d.ts +1 -0
- package/dist/link/index.js +23 -0
- package/dist/link/index.js.map +1 -0
- package/dist/link/link-row.d.ts +12 -0
- package/dist/link/link-row.js +38 -0
- package/dist/link/link-row.js.map +1 -0
- package/dist/link/link-to-dir.d.ts +2 -0
- package/dist/link/link-to-dir.js +45 -0
- package/dist/link/link-to-dir.js.map +1 -0
- package/dist/link/link.cmd.d.ts +46 -0
- package/dist/link/link.cmd.js +177 -0
- package/dist/link/link.cmd.js.map +1 -0
- package/dist/link/nested-deps-in-nm-links.d.ts +7 -0
- package/dist/link/nested-deps-in-nm-links.js +74 -0
- package/dist/link/nested-deps-in-nm-links.js.map +1 -0
- package/dist/link/rewire-row.d.ts +6 -0
- package/dist/link/rewire-row.js +31 -0
- package/dist/link/rewire-row.js.map +1 -0
- package/dist/pick-outdated-pkgs.d.ts +16 -0
- package/dist/pick-outdated-pkgs.js +308 -0
- package/dist/pick-outdated-pkgs.js.map +1 -0
- package/dist/pick-outdated-pkgs.spec.d.ts +1 -0
- package/dist/pick-outdated-pkgs.spec.js +121 -0
- package/dist/pick-outdated-pkgs.spec.js.map +1 -0
- package/dist/uninstall.cmd.d.ts +12 -0
- package/dist/uninstall.cmd.js +43 -0
- package/dist/uninstall.cmd.js.map +1 -0
- package/dist/update.cmd.d.ts +16 -0
- package/dist/update.cmd.js +43 -0
- package/dist/update.cmd.js.map +1 -0
- package/exceptions/dependency-type-not-supported-in-policy.ts +7 -0
- package/exceptions/index.ts +1 -0
- package/install.cmd.tsx +74 -0
- package/link/component-list-links.ts +50 -0
- package/link/core-aspects-links.ts +50 -0
- package/link/get-package-name-from-target.ts +5 -0
- package/link/index.ts +1 -0
- package/link/link-row.ts +20 -0
- package/link/link-to-dir.ts +13 -0
- package/link/link.cmd.ts +102 -0
- package/link/nested-deps-in-nm-links.ts +47 -0
- package/link/rewire-row.ts +17 -0
- package/package-tar/teambit-install-0.0.1.tgz +0 -0
- package/package.json +59 -0
- package/preview-1662608124038.js +5 -0
- package/tsconfig.json +40 -0
- package/types/asset.d.ts +29 -0
- package/types/style.d.ts +42 -0
- package/uninstall.cmd.tsx +18 -0
- package/update.cmd.tsx +24 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency 1`] = `
|
4
|
+
Array [
|
5
|
+
Object {
|
6
|
+
"choices": Array [
|
7
|
+
Object {
|
8
|
+
"message": "foo [90m(runtime)[39m * ❯ [91m[1m2.0.0[22m[39m because of comp1 and 1 other components ",
|
9
|
+
"name": "foo",
|
10
|
+
"value": Object {
|
11
|
+
"currentRange": "1.0.0",
|
12
|
+
"dependentComponents": Array [
|
13
|
+
"comp1",
|
14
|
+
"comp2",
|
15
|
+
],
|
16
|
+
"hasDifferentRanges": true,
|
17
|
+
"latestRange": "2.0.0",
|
18
|
+
"name": "foo",
|
19
|
+
"source": "rootPolicy",
|
20
|
+
"targetField": "dependencies",
|
21
|
+
},
|
22
|
+
},
|
23
|
+
],
|
24
|
+
"message": "[36mRoot policies[39m",
|
25
|
+
},
|
26
|
+
]
|
27
|
+
`;
|
28
|
+
|
29
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency and display the current range when all components use the same range 1`] = `
|
30
|
+
Array [
|
31
|
+
Object {
|
32
|
+
"choices": Array [
|
33
|
+
Object {
|
34
|
+
"message": "foo [90m(runtime)[39m ^1.2.3 ❯ [91m[1m2.0.0[22m[39m because of comp1 and 1 other components ",
|
35
|
+
"name": "foo",
|
36
|
+
"value": Object {
|
37
|
+
"currentRange": "^1.2.3",
|
38
|
+
"dependentComponents": Array [
|
39
|
+
"comp1",
|
40
|
+
"comp2",
|
41
|
+
],
|
42
|
+
"latestRange": "2.0.0",
|
43
|
+
"name": "foo",
|
44
|
+
"source": "rootPolicy",
|
45
|
+
"targetField": "dependencies",
|
46
|
+
},
|
47
|
+
},
|
48
|
+
],
|
49
|
+
"message": "[36mRoot policies[39m",
|
50
|
+
},
|
51
|
+
]
|
52
|
+
`;
|
53
|
+
|
54
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency and use * as current range when can't compare ranges 1`] = `
|
55
|
+
Array [
|
56
|
+
Object {
|
57
|
+
"choices": Array [
|
58
|
+
Object {
|
59
|
+
"message": "foo [90m(runtime)[39m * ❯ [91m[1m2.0.0[22m[39m because of comp1 and 1 other components ",
|
60
|
+
"name": "foo",
|
61
|
+
"value": Object {
|
62
|
+
"currentRange": "*",
|
63
|
+
"dependentComponents": Array [
|
64
|
+
"comp1",
|
65
|
+
"comp2",
|
66
|
+
],
|
67
|
+
"hasDifferentRanges": true,
|
68
|
+
"latestRange": "2.0.0",
|
69
|
+
"name": "foo",
|
70
|
+
"source": "rootPolicy",
|
71
|
+
"targetField": "dependencies",
|
72
|
+
},
|
73
|
+
},
|
74
|
+
],
|
75
|
+
"message": "[36mRoot policies[39m",
|
76
|
+
},
|
77
|
+
]
|
78
|
+
`;
|
79
|
+
|
80
|
+
exports[`makeOutdatedPkgChoices should render choices in correct order 1`] = `
|
81
|
+
Array [
|
82
|
+
Object {
|
83
|
+
"choices": Array [
|
84
|
+
Object {
|
85
|
+
"message": "foo [90m(runtime)[39m 1.0.0 ❯ [91m[1m2.0.0[22m[39m ",
|
86
|
+
"name": "foo",
|
87
|
+
"value": Object {
|
88
|
+
"currentRange": "1.0.0",
|
89
|
+
"latestRange": "2.0.0",
|
90
|
+
"name": "foo",
|
91
|
+
"source": "rootPolicy",
|
92
|
+
"targetField": "dependencies",
|
93
|
+
},
|
94
|
+
},
|
95
|
+
Object {
|
96
|
+
"message": "qar [90m(runtime)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
97
|
+
"name": "qar",
|
98
|
+
"value": Object {
|
99
|
+
"currentRange": "1.0.0",
|
100
|
+
"latestRange": "1.1.0",
|
101
|
+
"name": "qar",
|
102
|
+
"source": "rootPolicy",
|
103
|
+
"targetField": "dependencies",
|
104
|
+
},
|
105
|
+
},
|
106
|
+
Object {
|
107
|
+
"message": "zoo [90m(dev)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
108
|
+
"name": "zoo",
|
109
|
+
"value": Object {
|
110
|
+
"currentRange": "1.0.0",
|
111
|
+
"latestRange": "1.1.0",
|
112
|
+
"name": "zoo",
|
113
|
+
"source": "rootPolicy",
|
114
|
+
"targetField": "devDependencies",
|
115
|
+
},
|
116
|
+
},
|
117
|
+
Object {
|
118
|
+
"message": "bar [90m(peer)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
119
|
+
"name": "bar",
|
120
|
+
"value": Object {
|
121
|
+
"currentRange": "1.0.0",
|
122
|
+
"latestRange": "1.1.0",
|
123
|
+
"name": "bar",
|
124
|
+
"source": "rootPolicy",
|
125
|
+
"targetField": "peerDependencies",
|
126
|
+
},
|
127
|
+
},
|
128
|
+
],
|
129
|
+
"message": "[36mRoot policies[39m",
|
130
|
+
},
|
131
|
+
]
|
132
|
+
`;
|
133
|
+
|
134
|
+
exports[`makeOutdatedPkgChoices should render choices with context information 1`] = `
|
135
|
+
Array [
|
136
|
+
Object {
|
137
|
+
"choices": Array [
|
138
|
+
Object {
|
139
|
+
"message": "foo [90m(runtime)[39m 1.0.0 ❯ [91m[1m2.0.0[22m[39m ",
|
140
|
+
"name": "foo",
|
141
|
+
"value": Object {
|
142
|
+
"componentId": "comp1",
|
143
|
+
"currentRange": "1.0.0",
|
144
|
+
"latestRange": "2.0.0",
|
145
|
+
"name": "foo",
|
146
|
+
"source": "component",
|
147
|
+
"targetField": "dependencies",
|
148
|
+
},
|
149
|
+
},
|
150
|
+
],
|
151
|
+
"message": "[36mcomp1 (component)[39m",
|
152
|
+
},
|
153
|
+
Object {
|
154
|
+
"choices": Array [
|
155
|
+
Object {
|
156
|
+
"message": "bar [90m(peer)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
157
|
+
"name": "bar",
|
158
|
+
"value": Object {
|
159
|
+
"currentRange": "1.0.0",
|
160
|
+
"latestRange": "1.1.0",
|
161
|
+
"name": "bar",
|
162
|
+
"source": "variants",
|
163
|
+
"targetField": "peerDependencies",
|
164
|
+
"variantPattern": "{comp2}",
|
165
|
+
},
|
166
|
+
},
|
167
|
+
],
|
168
|
+
"message": "[36m{comp2} (variant)[39m",
|
169
|
+
},
|
170
|
+
]
|
171
|
+
`;
|
@@ -0,0 +1,171 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency 1`] = `
|
4
|
+
Array [
|
5
|
+
Object {
|
6
|
+
"choices": Array [
|
7
|
+
Object {
|
8
|
+
"message": "foo [90m(runtime)[39m * ❯ 2.0.0 because of comp1 and 1 other components ",
|
9
|
+
"name": "foo",
|
10
|
+
"value": Object {
|
11
|
+
"currentRange": "1.0.0",
|
12
|
+
"dependentComponents": Array [
|
13
|
+
"comp1",
|
14
|
+
"comp2",
|
15
|
+
],
|
16
|
+
"hasDifferentRanges": true,
|
17
|
+
"latestRange": "2.0.0",
|
18
|
+
"name": "foo",
|
19
|
+
"source": "rootPolicy",
|
20
|
+
"targetField": "dependencies",
|
21
|
+
},
|
22
|
+
},
|
23
|
+
],
|
24
|
+
"message": "[36mRoot policies[39m",
|
25
|
+
},
|
26
|
+
]
|
27
|
+
`;
|
28
|
+
|
29
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency and display the current range when all components use the same range 1`] = `
|
30
|
+
Array [
|
31
|
+
Object {
|
32
|
+
"choices": Array [
|
33
|
+
Object {
|
34
|
+
"message": "foo [90m(runtime)[39m ^1.2.3 ❯ 2.0.0 because of comp1 and 1 other components ",
|
35
|
+
"name": "foo",
|
36
|
+
"value": Object {
|
37
|
+
"currentRange": "^1.2.3",
|
38
|
+
"dependentComponents": Array [
|
39
|
+
"comp1",
|
40
|
+
"comp2",
|
41
|
+
],
|
42
|
+
"latestRange": "2.0.0",
|
43
|
+
"name": "foo",
|
44
|
+
"source": "rootPolicy",
|
45
|
+
"targetField": "dependencies",
|
46
|
+
},
|
47
|
+
},
|
48
|
+
],
|
49
|
+
"message": "[36mRoot policies[39m",
|
50
|
+
},
|
51
|
+
]
|
52
|
+
`;
|
53
|
+
|
54
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency and use * as current range when can't compare ranges 1`] = `
|
55
|
+
Array [
|
56
|
+
Object {
|
57
|
+
"choices": Array [
|
58
|
+
Object {
|
59
|
+
"message": "foo [90m(runtime)[39m * ❯ 2.0.0 because of comp1 and 1 other components ",
|
60
|
+
"name": "foo",
|
61
|
+
"value": Object {
|
62
|
+
"currentRange": "*",
|
63
|
+
"dependentComponents": Array [
|
64
|
+
"comp1",
|
65
|
+
"comp2",
|
66
|
+
],
|
67
|
+
"hasDifferentRanges": true,
|
68
|
+
"latestRange": "2.0.0",
|
69
|
+
"name": "foo",
|
70
|
+
"source": "rootPolicy",
|
71
|
+
"targetField": "dependencies",
|
72
|
+
},
|
73
|
+
},
|
74
|
+
],
|
75
|
+
"message": "[36mRoot policies[39m",
|
76
|
+
},
|
77
|
+
]
|
78
|
+
`;
|
79
|
+
|
80
|
+
exports[`makeOutdatedPkgChoices should render choices in correct order 1`] = `
|
81
|
+
Array [
|
82
|
+
Object {
|
83
|
+
"choices": Array [
|
84
|
+
Object {
|
85
|
+
"message": "foo [90m(runtime)[39m 1.0.0 ❯ 2.0.0 ",
|
86
|
+
"name": "foo",
|
87
|
+
"value": Object {
|
88
|
+
"currentRange": "1.0.0",
|
89
|
+
"latestRange": "2.0.0",
|
90
|
+
"name": "foo",
|
91
|
+
"source": "rootPolicy",
|
92
|
+
"targetField": "dependencies",
|
93
|
+
},
|
94
|
+
},
|
95
|
+
Object {
|
96
|
+
"message": "qar [90m(runtime)[39m 1.0.0 ❯ 1.1.0 ",
|
97
|
+
"name": "qar",
|
98
|
+
"value": Object {
|
99
|
+
"currentRange": "1.0.0",
|
100
|
+
"latestRange": "1.1.0",
|
101
|
+
"name": "qar",
|
102
|
+
"source": "rootPolicy",
|
103
|
+
"targetField": "dependencies",
|
104
|
+
},
|
105
|
+
},
|
106
|
+
Object {
|
107
|
+
"message": "zoo [90m(dev)[39m 1.0.0 ❯ 1.1.0 ",
|
108
|
+
"name": "zoo",
|
109
|
+
"value": Object {
|
110
|
+
"currentRange": "1.0.0",
|
111
|
+
"latestRange": "1.1.0",
|
112
|
+
"name": "zoo",
|
113
|
+
"source": "rootPolicy",
|
114
|
+
"targetField": "devDependencies",
|
115
|
+
},
|
116
|
+
},
|
117
|
+
Object {
|
118
|
+
"message": "bar [90m(peer)[39m 1.0.0 ❯ 1.1.0 ",
|
119
|
+
"name": "bar",
|
120
|
+
"value": Object {
|
121
|
+
"currentRange": "1.0.0",
|
122
|
+
"latestRange": "1.1.0",
|
123
|
+
"name": "bar",
|
124
|
+
"source": "rootPolicy",
|
125
|
+
"targetField": "peerDependencies",
|
126
|
+
},
|
127
|
+
},
|
128
|
+
],
|
129
|
+
"message": "[36mRoot policies[39m",
|
130
|
+
},
|
131
|
+
]
|
132
|
+
`;
|
133
|
+
|
134
|
+
exports[`makeOutdatedPkgChoices should render choices with context information 1`] = `
|
135
|
+
Array [
|
136
|
+
Object {
|
137
|
+
"choices": Array [
|
138
|
+
Object {
|
139
|
+
"message": "foo [90m(runtime)[39m 1.0.0 ❯ 2.0.0 ",
|
140
|
+
"name": "foo",
|
141
|
+
"value": Object {
|
142
|
+
"componentId": "comp1",
|
143
|
+
"currentRange": "1.0.0",
|
144
|
+
"latestRange": "2.0.0",
|
145
|
+
"name": "foo",
|
146
|
+
"source": "component",
|
147
|
+
"targetField": "dependencies",
|
148
|
+
},
|
149
|
+
},
|
150
|
+
],
|
151
|
+
"message": "[36mcomp1 (component)[39m",
|
152
|
+
},
|
153
|
+
Object {
|
154
|
+
"choices": Array [
|
155
|
+
Object {
|
156
|
+
"message": "bar [90m(peer)[39m 1.0.0 ❯ 1.1.0 ",
|
157
|
+
"name": "bar",
|
158
|
+
"value": Object {
|
159
|
+
"currentRange": "1.0.0",
|
160
|
+
"latestRange": "1.1.0",
|
161
|
+
"name": "bar",
|
162
|
+
"source": "variants",
|
163
|
+
"targetField": "peerDependencies",
|
164
|
+
"variantPattern": "{comp2}",
|
165
|
+
},
|
166
|
+
},
|
167
|
+
],
|
168
|
+
"message": "[36m{comp2} (variant)[39m",
|
169
|
+
},
|
170
|
+
]
|
171
|
+
`;
|
@@ -0,0 +1,171 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency 1`] = `
|
4
|
+
Array [
|
5
|
+
Object {
|
6
|
+
"choices": Array [
|
7
|
+
Object {
|
8
|
+
"message": "foo [90m(runtime)[39m * ❯ [91m[1m2.0.0[22m[39m because of comp1 and 1 other components ",
|
9
|
+
"name": "foo",
|
10
|
+
"value": Object {
|
11
|
+
"currentRange": "1.0.0",
|
12
|
+
"dependentComponents": Array [
|
13
|
+
"comp1",
|
14
|
+
"comp2",
|
15
|
+
],
|
16
|
+
"hasDifferentRanges": true,
|
17
|
+
"latestRange": "2.0.0",
|
18
|
+
"name": "foo",
|
19
|
+
"source": "rootPolicy",
|
20
|
+
"targetField": "dependencies",
|
21
|
+
},
|
22
|
+
},
|
23
|
+
],
|
24
|
+
"message": "[36mRoot policies[39m",
|
25
|
+
},
|
26
|
+
]
|
27
|
+
`;
|
28
|
+
|
29
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency and display the current range when all components use the same range 1`] = `
|
30
|
+
Array [
|
31
|
+
Object {
|
32
|
+
"choices": Array [
|
33
|
+
Object {
|
34
|
+
"message": "foo [90m(runtime)[39m ^1.2.3 ❯ [91m[1m2.0.0[22m[39m because of comp1 and 1 other components ",
|
35
|
+
"name": "foo",
|
36
|
+
"value": Object {
|
37
|
+
"currentRange": "^1.2.3",
|
38
|
+
"dependentComponents": Array [
|
39
|
+
"comp1",
|
40
|
+
"comp2",
|
41
|
+
],
|
42
|
+
"latestRange": "2.0.0",
|
43
|
+
"name": "foo",
|
44
|
+
"source": "rootPolicy",
|
45
|
+
"targetField": "dependencies",
|
46
|
+
},
|
47
|
+
},
|
48
|
+
],
|
49
|
+
"message": "[36mRoot policies[39m",
|
50
|
+
},
|
51
|
+
]
|
52
|
+
`;
|
53
|
+
|
54
|
+
exports[`makeOutdatedPkgChoices should group component model updates of the same dependency and use * as current range when can't compare ranges 1`] = `
|
55
|
+
Array [
|
56
|
+
Object {
|
57
|
+
"choices": Array [
|
58
|
+
Object {
|
59
|
+
"message": "foo [90m(runtime)[39m * ❯ [91m[1m2.0.0[22m[39m because of comp1 and 1 other components ",
|
60
|
+
"name": "foo",
|
61
|
+
"value": Object {
|
62
|
+
"currentRange": "*",
|
63
|
+
"dependentComponents": Array [
|
64
|
+
"comp1",
|
65
|
+
"comp2",
|
66
|
+
],
|
67
|
+
"hasDifferentRanges": true,
|
68
|
+
"latestRange": "2.0.0",
|
69
|
+
"name": "foo",
|
70
|
+
"source": "rootPolicy",
|
71
|
+
"targetField": "dependencies",
|
72
|
+
},
|
73
|
+
},
|
74
|
+
],
|
75
|
+
"message": "[36mRoot policies[39m",
|
76
|
+
},
|
77
|
+
]
|
78
|
+
`;
|
79
|
+
|
80
|
+
exports[`makeOutdatedPkgChoices should render choices in correct order 1`] = `
|
81
|
+
Array [
|
82
|
+
Object {
|
83
|
+
"choices": Array [
|
84
|
+
Object {
|
85
|
+
"message": "foo [90m(runtime)[39m 1.0.0 ❯ [91m[1m2.0.0[22m[39m ",
|
86
|
+
"name": "foo",
|
87
|
+
"value": Object {
|
88
|
+
"currentRange": "1.0.0",
|
89
|
+
"latestRange": "2.0.0",
|
90
|
+
"name": "foo",
|
91
|
+
"source": "rootPolicy",
|
92
|
+
"targetField": "dependencies",
|
93
|
+
},
|
94
|
+
},
|
95
|
+
Object {
|
96
|
+
"message": "qar [90m(runtime)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
97
|
+
"name": "qar",
|
98
|
+
"value": Object {
|
99
|
+
"currentRange": "1.0.0",
|
100
|
+
"latestRange": "1.1.0",
|
101
|
+
"name": "qar",
|
102
|
+
"source": "rootPolicy",
|
103
|
+
"targetField": "dependencies",
|
104
|
+
},
|
105
|
+
},
|
106
|
+
Object {
|
107
|
+
"message": "zoo [90m(dev)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
108
|
+
"name": "zoo",
|
109
|
+
"value": Object {
|
110
|
+
"currentRange": "1.0.0",
|
111
|
+
"latestRange": "1.1.0",
|
112
|
+
"name": "zoo",
|
113
|
+
"source": "rootPolicy",
|
114
|
+
"targetField": "devDependencies",
|
115
|
+
},
|
116
|
+
},
|
117
|
+
Object {
|
118
|
+
"message": "bar [90m(peer)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
119
|
+
"name": "bar",
|
120
|
+
"value": Object {
|
121
|
+
"currentRange": "1.0.0",
|
122
|
+
"latestRange": "1.1.0",
|
123
|
+
"name": "bar",
|
124
|
+
"source": "rootPolicy",
|
125
|
+
"targetField": "peerDependencies",
|
126
|
+
},
|
127
|
+
},
|
128
|
+
],
|
129
|
+
"message": "[36mRoot policies[39m",
|
130
|
+
},
|
131
|
+
]
|
132
|
+
`;
|
133
|
+
|
134
|
+
exports[`makeOutdatedPkgChoices should render choices with context information 1`] = `
|
135
|
+
Array [
|
136
|
+
Object {
|
137
|
+
"choices": Array [
|
138
|
+
Object {
|
139
|
+
"message": "foo [90m(runtime)[39m 1.0.0 ❯ [91m[1m2.0.0[22m[39m ",
|
140
|
+
"name": "foo",
|
141
|
+
"value": Object {
|
142
|
+
"componentId": "comp1",
|
143
|
+
"currentRange": "1.0.0",
|
144
|
+
"latestRange": "2.0.0",
|
145
|
+
"name": "foo",
|
146
|
+
"source": "component",
|
147
|
+
"targetField": "dependencies",
|
148
|
+
},
|
149
|
+
},
|
150
|
+
],
|
151
|
+
"message": "[36mcomp1 (component)[39m",
|
152
|
+
},
|
153
|
+
Object {
|
154
|
+
"choices": Array [
|
155
|
+
Object {
|
156
|
+
"message": "bar [90m(peer)[39m 1.0.0 ❯ 1.[92m[1m1.0[22m[39m ",
|
157
|
+
"name": "bar",
|
158
|
+
"value": Object {
|
159
|
+
"currentRange": "1.0.0",
|
160
|
+
"latestRange": "1.1.0",
|
161
|
+
"name": "bar",
|
162
|
+
"source": "variants",
|
163
|
+
"targetField": "peerDependencies",
|
164
|
+
"variantPattern": "{comp2}",
|
165
|
+
},
|
166
|
+
},
|
167
|
+
],
|
168
|
+
"message": "[36m{comp2} (variant)[39m",
|
169
|
+
},
|
170
|
+
]
|
171
|
+
`;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.DependencyTypeNotSupportedInPolicy = void 0;
|
7
|
+
|
8
|
+
function _bitError() {
|
9
|
+
const data = require("@teambit/bit-error");
|
10
|
+
|
11
|
+
_bitError = function () {
|
12
|
+
return data;
|
13
|
+
};
|
14
|
+
|
15
|
+
return data;
|
16
|
+
}
|
17
|
+
|
18
|
+
class DependencyTypeNotSupportedInPolicy extends _bitError().BitError {
|
19
|
+
constructor(type) {
|
20
|
+
super(`the workspace policy does not support ${type} dependencies`);
|
21
|
+
}
|
22
|
+
|
23
|
+
}
|
24
|
+
|
25
|
+
exports.DependencyTypeNotSupportedInPolicy = DependencyTypeNotSupportedInPolicy;
|
26
|
+
|
27
|
+
//# sourceMappingURL=dependency-type-not-supported-in-policy.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["DependencyTypeNotSupportedInPolicy","BitError","constructor","type"],"sources":["dependency-type-not-supported-in-policy.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\n\nexport class DependencyTypeNotSupportedInPolicy extends BitError {\n constructor(type: string) {\n super(`the workspace policy does not support ${type} dependencies`);\n }\n}\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,kCAAN,SAAiDC,oBAAjD,CAA0D;EAC/DC,WAAW,CAACC,IAAD,EAAe;IACxB,MAAO,yCAAwCA,IAAK,eAApD;EACD;;AAH8D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DependencyTypeNotSupportedInPolicy } from './dependency-type-not-supported-in-policy';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "DependencyTypeNotSupportedInPolicy", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _dependencyTypeNotSupportedInPolicy().DependencyTypeNotSupportedInPolicy;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
|
13
|
+
function _dependencyTypeNotSupportedInPolicy() {
|
14
|
+
const data = require("./dependency-type-not-supported-in-policy");
|
15
|
+
|
16
|
+
_dependencyTypeNotSupportedInPolicy = function () {
|
17
|
+
return data;
|
18
|
+
};
|
19
|
+
|
20
|
+
return data;
|
21
|
+
}
|
22
|
+
|
23
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { DependencyTypeNotSupportedInPolicy } from './dependency-type-not-supported-in-policy';\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "InstallAspect", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function () {
|
9
|
+
return _install().InstallAspect;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
exports.default = void 0;
|
13
|
+
|
14
|
+
function _install() {
|
15
|
+
const data = require("./install.aspect");
|
16
|
+
|
17
|
+
_install = function () {
|
18
|
+
return data;
|
19
|
+
};
|
20
|
+
|
21
|
+
return data;
|
22
|
+
}
|
23
|
+
|
24
|
+
var _default = _install().InstallAspect;
|
25
|
+
|
26
|
+
exports.default = _default;
|
27
|
+
|
28
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["InstallAspect"],"sources":["index.ts"],"sourcesContent":["import { InstallAspect } from './install.aspect';\n\nexport type { InstallMain } from './install.main.runtime';\nexport default InstallAspect;\nexport { InstallAspect };\n"],"mappings":";;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;eAGeA,wB"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.InstallAspect = void 0;
|
7
|
+
|
8
|
+
function _harmony() {
|
9
|
+
const data = require("@teambit/harmony");
|
10
|
+
|
11
|
+
_harmony = function () {
|
12
|
+
return data;
|
13
|
+
};
|
14
|
+
|
15
|
+
return data;
|
16
|
+
}
|
17
|
+
|
18
|
+
const InstallAspect = _harmony().Aspect.create({
|
19
|
+
id: 'teambit.bit/install'
|
20
|
+
});
|
21
|
+
|
22
|
+
exports.InstallAspect = InstallAspect;
|
23
|
+
|
24
|
+
//# sourceMappingURL=install.aspect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["InstallAspect","Aspect","create","id"],"sources":["install.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const InstallAspect = Aspect.create({\n id: 'teambit.bit/install',\n});\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,aAAa,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EACzCC,EAAE,EAAE;AADqC,CAAd,CAAtB"}
|