@teambit/eject 1.0.425 → 1.0.427
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_workspace_eject-preview.js +1 -1
- package/artifacts/schema.json +66 -66
- package/dist/eject-cmd.js.map +1 -1
- package/dist/eject.main.runtime.js.map +1 -1
- package/dist/{preview-1728184966899.js → preview-1728271406903.js} +2 -2
- package/package.json +8 -8
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.workspace/eject@1.0.
|
3
|
+
<testsuite name="teambit.workspace/eject@1.0.427" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.workspace/eject-preview"]=t():e["teambit.workspace/eject-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.workspace/eject-preview"]=t():e["teambit.workspace/eject-preview"]=t()}(self,(()=>(()=>{"use strict";var e={90981:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.427",homepage:"https://bit.cloud/teambit/workspace/eject",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/eject.svg"}));a.__bit_component=n,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>u,compositions_metadata:()=>b,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>m});var i=o(90981);o(41594);const a=MdxJsReact,p=TeambitMdxUiMdxScopeContext;var c=["components"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d.apply(null,arguments)}var l={},s="wrapper";function m(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,a.mdx)(s,d({},l,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(p.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,a.mdx)("p",null,"One of the common scenarios of using ",(0,a.mdx)("inlineCode",{parentName:"p"},"bit eject")," is to make a quick change to an external (component) dependency. The component needs to be imported first and once it's changed and exported, there is no need to keep it in the current workspace. Without ",(0,a.mdx)("inlineCode",{parentName:"p"},"eject"),", the next steps would be: 1) remove the component from the workspace by ",(0,a.mdx)("inlineCode",{parentName:"p"},"bit remove")," and 2) installing the component by ",(0,a.mdx)("inlineCode",{parentName:"p"},"bit install"),"."),(0,a.mdx)("p",null,(0,a.mdx)("inlineCode",{parentName:"p"},"bit eject")," combines the commands above to one command."),(0,a.mdx)("h2",null,"Eject process"),(0,a.mdx)("p",null,"The following steps are done during the ",(0,a.mdx)("inlineCode",{parentName:"p"},"eject")," process."),(0,a.mdx)("ol",null,(0,a.mdx)("li",{parentName:"ol"},"remove the component's data from node-modules so then it won't interfere with the package installation."),(0,a.mdx)("li",{parentName:"ol"},"remove the component from the .bitmap file."),(0,a.mdx)("li",{parentName:"ol"},"install the component as a package by the package manager and add the package to the ",(0,a.mdx)("inlineCode",{parentName:"li"},"workspace.json")," file."),(0,a.mdx)("li",{parentName:"ol"},"depends on the ",(0,a.mdx)("inlineCode",{parentName:"li"},"--keep-files")," flag, deletes the component files from the workspace."))))}m.isMDXComponent=!0;const u=[i],f=[r],b={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
|
package/artifacts/schema.json
CHANGED
@@ -46,16 +46,16 @@
|
|
46
46
|
"__schema": "ParameterSchema",
|
47
47
|
"location": {
|
48
48
|
"filePath": "eject.main.runtime.ts",
|
49
|
-
"line":
|
50
|
-
"character":
|
49
|
+
"line": 12,
|
50
|
+
"character": 5
|
51
51
|
},
|
52
52
|
"name": "workspace",
|
53
53
|
"type": {
|
54
54
|
"__schema": "TypeRefSchema",
|
55
55
|
"location": {
|
56
56
|
"filePath": "eject.main.runtime.ts",
|
57
|
-
"line":
|
58
|
-
"character":
|
57
|
+
"line": 12,
|
58
|
+
"character": 24
|
59
59
|
},
|
60
60
|
"name": "Workspace",
|
61
61
|
"componentId": {
|
@@ -70,16 +70,16 @@
|
|
70
70
|
"__schema": "ParameterSchema",
|
71
71
|
"location": {
|
72
72
|
"filePath": "eject.main.runtime.ts",
|
73
|
-
"line":
|
74
|
-
"character":
|
73
|
+
"line": 13,
|
74
|
+
"character": 5
|
75
75
|
},
|
76
76
|
"name": "install",
|
77
77
|
"type": {
|
78
78
|
"__schema": "TypeRefSchema",
|
79
79
|
"location": {
|
80
80
|
"filePath": "eject.main.runtime.ts",
|
81
|
-
"line":
|
82
|
-
"character":
|
81
|
+
"line": 13,
|
82
|
+
"character": 22
|
83
83
|
},
|
84
84
|
"name": "InstallMain",
|
85
85
|
"componentId": {
|
@@ -94,16 +94,16 @@
|
|
94
94
|
"__schema": "ParameterSchema",
|
95
95
|
"location": {
|
96
96
|
"filePath": "eject.main.runtime.ts",
|
97
|
-
"line":
|
98
|
-
"character":
|
97
|
+
"line": 14,
|
98
|
+
"character": 5
|
99
99
|
},
|
100
100
|
"name": "logger",
|
101
101
|
"type": {
|
102
102
|
"__schema": "TypeRefSchema",
|
103
103
|
"location": {
|
104
104
|
"filePath": "eject.main.runtime.ts",
|
105
|
-
"line":
|
106
|
-
"character":
|
105
|
+
"line": 14,
|
106
|
+
"character": 21
|
107
107
|
},
|
108
108
|
"name": "Logger",
|
109
109
|
"componentId": {
|
@@ -130,7 +130,7 @@
|
|
130
130
|
"__schema": "FunctionLikeSchema",
|
131
131
|
"location": {
|
132
132
|
"filePath": "eject.main.runtime.ts",
|
133
|
-
"line":
|
133
|
+
"line": 16,
|
134
134
|
"character": 3
|
135
135
|
},
|
136
136
|
"signature": "(method) EjectMain.eject(componentIds: ComponentID[], ejectOptions?: EjectOptions): Promise<EjectResults>",
|
@@ -140,7 +140,7 @@
|
|
140
140
|
"__schema": "ParameterSchema",
|
141
141
|
"location": {
|
142
142
|
"filePath": "eject.main.runtime.ts",
|
143
|
-
"line":
|
143
|
+
"line": 16,
|
144
144
|
"character": 15
|
145
145
|
},
|
146
146
|
"name": "componentIds",
|
@@ -148,14 +148,14 @@
|
|
148
148
|
"__schema": "TypeArraySchema",
|
149
149
|
"location": {
|
150
150
|
"filePath": "eject.main.runtime.ts",
|
151
|
-
"line":
|
151
|
+
"line": 16,
|
152
152
|
"character": 29
|
153
153
|
},
|
154
154
|
"type": {
|
155
155
|
"__schema": "TypeRefSchema",
|
156
156
|
"location": {
|
157
157
|
"filePath": "eject.main.runtime.ts",
|
158
|
-
"line":
|
158
|
+
"line": 16,
|
159
159
|
"character": 29
|
160
160
|
},
|
161
161
|
"name": "ComponentID",
|
@@ -173,7 +173,7 @@
|
|
173
173
|
"__schema": "ParameterSchema",
|
174
174
|
"location": {
|
175
175
|
"filePath": "eject.main.runtime.ts",
|
176
|
-
"line":
|
176
|
+
"line": 16,
|
177
177
|
"character": 44
|
178
178
|
},
|
179
179
|
"name": "ejectOptions",
|
@@ -181,7 +181,7 @@
|
|
181
181
|
"__schema": "TypeRefSchema",
|
182
182
|
"location": {
|
183
183
|
"filePath": "eject.main.runtime.ts",
|
184
|
-
"line":
|
184
|
+
"line": 16,
|
185
185
|
"character": 58
|
186
186
|
},
|
187
187
|
"name": "EjectOptions",
|
@@ -196,7 +196,7 @@
|
|
196
196
|
"__schema": "TypeRefSchema",
|
197
197
|
"location": {
|
198
198
|
"filePath": "eject.main.runtime.ts",
|
199
|
-
"line":
|
199
|
+
"line": 16,
|
200
200
|
"character": 78
|
201
201
|
},
|
202
202
|
"name": "Promise",
|
@@ -205,7 +205,7 @@
|
|
205
205
|
"__schema": "TypeRefSchema",
|
206
206
|
"location": {
|
207
207
|
"filePath": "eject.main.runtime.ts",
|
208
|
-
"line":
|
208
|
+
"line": 16,
|
209
209
|
"character": 86
|
210
210
|
},
|
211
211
|
"name": "EjectResults"
|
@@ -220,7 +220,7 @@
|
|
220
220
|
"__schema": "VariableLikeSchema",
|
221
221
|
"location": {
|
222
222
|
"filePath": "eject.main.runtime.ts",
|
223
|
-
"line":
|
223
|
+
"line": 28,
|
224
224
|
"character": 3
|
225
225
|
},
|
226
226
|
"signature": "(property) EjectMain.runtime: RuntimeDefinition",
|
@@ -229,7 +229,7 @@
|
|
229
229
|
"__schema": "InferenceTypeSchema",
|
230
230
|
"location": {
|
231
231
|
"filePath": "eject.main.runtime.ts",
|
232
|
-
"line":
|
232
|
+
"line": 28,
|
233
233
|
"character": 3
|
234
234
|
},
|
235
235
|
"type": "RuntimeDefinition"
|
@@ -241,7 +241,7 @@
|
|
241
241
|
"__schema": "VariableLikeSchema",
|
242
242
|
"location": {
|
243
243
|
"filePath": "eject.main.runtime.ts",
|
244
|
-
"line":
|
244
|
+
"line": 30,
|
245
245
|
"character": 3
|
246
246
|
},
|
247
247
|
"signature": "(property) EjectMain.dependencies: Aspect[]",
|
@@ -250,7 +250,7 @@
|
|
250
250
|
"__schema": "InferenceTypeSchema",
|
251
251
|
"location": {
|
252
252
|
"filePath": "eject.main.runtime.ts",
|
253
|
-
"line":
|
253
|
+
"line": 30,
|
254
254
|
"character": 3
|
255
255
|
},
|
256
256
|
"type": "Aspect[]"
|
@@ -262,7 +262,7 @@
|
|
262
262
|
"__schema": "FunctionLikeSchema",
|
263
263
|
"location": {
|
264
264
|
"filePath": "eject.main.runtime.ts",
|
265
|
-
"line":
|
265
|
+
"line": 32,
|
266
266
|
"character": 3
|
267
267
|
},
|
268
268
|
"signature": "(method) EjectMain.provider([cli, workspace, loggerMain, install]: [CLIMain, Workspace, LoggerMain, InstallMain]): Promise<EjectMain>",
|
@@ -272,7 +272,7 @@
|
|
272
272
|
"__schema": "ParameterSchema",
|
273
273
|
"location": {
|
274
274
|
"filePath": "eject.main.runtime.ts",
|
275
|
-
"line":
|
275
|
+
"line": 32,
|
276
276
|
"character": 25
|
277
277
|
},
|
278
278
|
"name": "[ cli, workspace, loggerMain, install ]",
|
@@ -280,7 +280,7 @@
|
|
280
280
|
"__schema": "TupleTypeSchema",
|
281
281
|
"location": {
|
282
282
|
"filePath": "eject.main.runtime.ts",
|
283
|
-
"line":
|
283
|
+
"line": 32,
|
284
284
|
"character": 64
|
285
285
|
},
|
286
286
|
"elements": [
|
@@ -288,7 +288,7 @@
|
|
288
288
|
"__schema": "TypeRefSchema",
|
289
289
|
"location": {
|
290
290
|
"filePath": "eject.main.runtime.ts",
|
291
|
-
"line":
|
291
|
+
"line": 32,
|
292
292
|
"character": 65
|
293
293
|
},
|
294
294
|
"name": "CLIMain",
|
@@ -301,7 +301,7 @@
|
|
301
301
|
"__schema": "TypeRefSchema",
|
302
302
|
"location": {
|
303
303
|
"filePath": "eject.main.runtime.ts",
|
304
|
-
"line":
|
304
|
+
"line": 32,
|
305
305
|
"character": 74
|
306
306
|
},
|
307
307
|
"name": "Workspace",
|
@@ -314,7 +314,7 @@
|
|
314
314
|
"__schema": "TypeRefSchema",
|
315
315
|
"location": {
|
316
316
|
"filePath": "eject.main.runtime.ts",
|
317
|
-
"line":
|
317
|
+
"line": 32,
|
318
318
|
"character": 85
|
319
319
|
},
|
320
320
|
"name": "LoggerMain",
|
@@ -327,7 +327,7 @@
|
|
327
327
|
"__schema": "TypeRefSchema",
|
328
328
|
"location": {
|
329
329
|
"filePath": "eject.main.runtime.ts",
|
330
|
-
"line":
|
330
|
+
"line": 32,
|
331
331
|
"character": 97
|
332
332
|
},
|
333
333
|
"name": "InstallMain",
|
@@ -346,7 +346,7 @@
|
|
346
346
|
"__schema": "InferenceTypeSchema",
|
347
347
|
"location": {
|
348
348
|
"filePath": "eject.main.runtime.ts",
|
349
|
-
"line":
|
349
|
+
"line": 32,
|
350
350
|
"character": 3
|
351
351
|
},
|
352
352
|
"type": "Promise<EjectMain>"
|
@@ -594,16 +594,16 @@
|
|
594
594
|
"__schema": "ParameterSchema",
|
595
595
|
"location": {
|
596
596
|
"filePath": "eject.main.runtime.ts",
|
597
|
-
"line":
|
598
|
-
"character":
|
597
|
+
"line": 12,
|
598
|
+
"character": 5
|
599
599
|
},
|
600
600
|
"name": "workspace",
|
601
601
|
"type": {
|
602
602
|
"__schema": "TypeRefSchema",
|
603
603
|
"location": {
|
604
604
|
"filePath": "eject.main.runtime.ts",
|
605
|
-
"line":
|
606
|
-
"character":
|
605
|
+
"line": 12,
|
606
|
+
"character": 24
|
607
607
|
},
|
608
608
|
"name": "Workspace",
|
609
609
|
"componentId": {
|
@@ -618,16 +618,16 @@
|
|
618
618
|
"__schema": "ParameterSchema",
|
619
619
|
"location": {
|
620
620
|
"filePath": "eject.main.runtime.ts",
|
621
|
-
"line":
|
622
|
-
"character":
|
621
|
+
"line": 13,
|
622
|
+
"character": 5
|
623
623
|
},
|
624
624
|
"name": "install",
|
625
625
|
"type": {
|
626
626
|
"__schema": "TypeRefSchema",
|
627
627
|
"location": {
|
628
628
|
"filePath": "eject.main.runtime.ts",
|
629
|
-
"line":
|
630
|
-
"character":
|
629
|
+
"line": 13,
|
630
|
+
"character": 22
|
631
631
|
},
|
632
632
|
"name": "InstallMain",
|
633
633
|
"componentId": {
|
@@ -642,16 +642,16 @@
|
|
642
642
|
"__schema": "ParameterSchema",
|
643
643
|
"location": {
|
644
644
|
"filePath": "eject.main.runtime.ts",
|
645
|
-
"line":
|
646
|
-
"character":
|
645
|
+
"line": 14,
|
646
|
+
"character": 5
|
647
647
|
},
|
648
648
|
"name": "logger",
|
649
649
|
"type": {
|
650
650
|
"__schema": "TypeRefSchema",
|
651
651
|
"location": {
|
652
652
|
"filePath": "eject.main.runtime.ts",
|
653
|
-
"line":
|
654
|
-
"character":
|
653
|
+
"line": 14,
|
654
|
+
"character": 21
|
655
655
|
},
|
656
656
|
"name": "Logger",
|
657
657
|
"componentId": {
|
@@ -678,7 +678,7 @@
|
|
678
678
|
"__schema": "FunctionLikeSchema",
|
679
679
|
"location": {
|
680
680
|
"filePath": "eject.main.runtime.ts",
|
681
|
-
"line":
|
681
|
+
"line": 16,
|
682
682
|
"character": 3
|
683
683
|
},
|
684
684
|
"signature": "(method) EjectMain.eject(componentIds: ComponentID[], ejectOptions?: EjectOptions): Promise<EjectResults>",
|
@@ -688,7 +688,7 @@
|
|
688
688
|
"__schema": "ParameterSchema",
|
689
689
|
"location": {
|
690
690
|
"filePath": "eject.main.runtime.ts",
|
691
|
-
"line":
|
691
|
+
"line": 16,
|
692
692
|
"character": 15
|
693
693
|
},
|
694
694
|
"name": "componentIds",
|
@@ -696,14 +696,14 @@
|
|
696
696
|
"__schema": "TypeArraySchema",
|
697
697
|
"location": {
|
698
698
|
"filePath": "eject.main.runtime.ts",
|
699
|
-
"line":
|
699
|
+
"line": 16,
|
700
700
|
"character": 29
|
701
701
|
},
|
702
702
|
"type": {
|
703
703
|
"__schema": "TypeRefSchema",
|
704
704
|
"location": {
|
705
705
|
"filePath": "eject.main.runtime.ts",
|
706
|
-
"line":
|
706
|
+
"line": 16,
|
707
707
|
"character": 29
|
708
708
|
},
|
709
709
|
"name": "ComponentID",
|
@@ -721,7 +721,7 @@
|
|
721
721
|
"__schema": "ParameterSchema",
|
722
722
|
"location": {
|
723
723
|
"filePath": "eject.main.runtime.ts",
|
724
|
-
"line":
|
724
|
+
"line": 16,
|
725
725
|
"character": 44
|
726
726
|
},
|
727
727
|
"name": "ejectOptions",
|
@@ -729,7 +729,7 @@
|
|
729
729
|
"__schema": "TypeRefSchema",
|
730
730
|
"location": {
|
731
731
|
"filePath": "eject.main.runtime.ts",
|
732
|
-
"line":
|
732
|
+
"line": 16,
|
733
733
|
"character": 58
|
734
734
|
},
|
735
735
|
"name": "EjectOptions",
|
@@ -744,7 +744,7 @@
|
|
744
744
|
"__schema": "TypeRefSchema",
|
745
745
|
"location": {
|
746
746
|
"filePath": "eject.main.runtime.ts",
|
747
|
-
"line":
|
747
|
+
"line": 16,
|
748
748
|
"character": 78
|
749
749
|
},
|
750
750
|
"name": "Promise",
|
@@ -753,7 +753,7 @@
|
|
753
753
|
"__schema": "TypeRefSchema",
|
754
754
|
"location": {
|
755
755
|
"filePath": "eject.main.runtime.ts",
|
756
|
-
"line":
|
756
|
+
"line": 16,
|
757
757
|
"character": 86
|
758
758
|
},
|
759
759
|
"name": "EjectResults"
|
@@ -768,7 +768,7 @@
|
|
768
768
|
"__schema": "VariableLikeSchema",
|
769
769
|
"location": {
|
770
770
|
"filePath": "eject.main.runtime.ts",
|
771
|
-
"line":
|
771
|
+
"line": 28,
|
772
772
|
"character": 3
|
773
773
|
},
|
774
774
|
"signature": "(property) EjectMain.runtime: RuntimeDefinition",
|
@@ -777,7 +777,7 @@
|
|
777
777
|
"__schema": "InferenceTypeSchema",
|
778
778
|
"location": {
|
779
779
|
"filePath": "eject.main.runtime.ts",
|
780
|
-
"line":
|
780
|
+
"line": 28,
|
781
781
|
"character": 3
|
782
782
|
},
|
783
783
|
"type": "RuntimeDefinition"
|
@@ -789,7 +789,7 @@
|
|
789
789
|
"__schema": "VariableLikeSchema",
|
790
790
|
"location": {
|
791
791
|
"filePath": "eject.main.runtime.ts",
|
792
|
-
"line":
|
792
|
+
"line": 30,
|
793
793
|
"character": 3
|
794
794
|
},
|
795
795
|
"signature": "(property) EjectMain.dependencies: Aspect[]",
|
@@ -798,7 +798,7 @@
|
|
798
798
|
"__schema": "InferenceTypeSchema",
|
799
799
|
"location": {
|
800
800
|
"filePath": "eject.main.runtime.ts",
|
801
|
-
"line":
|
801
|
+
"line": 30,
|
802
802
|
"character": 3
|
803
803
|
},
|
804
804
|
"type": "Aspect[]"
|
@@ -810,7 +810,7 @@
|
|
810
810
|
"__schema": "FunctionLikeSchema",
|
811
811
|
"location": {
|
812
812
|
"filePath": "eject.main.runtime.ts",
|
813
|
-
"line":
|
813
|
+
"line": 32,
|
814
814
|
"character": 3
|
815
815
|
},
|
816
816
|
"signature": "(method) EjectMain.provider([cli, workspace, loggerMain, install]: [CLIMain, Workspace, LoggerMain, InstallMain]): Promise<EjectMain>",
|
@@ -820,7 +820,7 @@
|
|
820
820
|
"__schema": "ParameterSchema",
|
821
821
|
"location": {
|
822
822
|
"filePath": "eject.main.runtime.ts",
|
823
|
-
"line":
|
823
|
+
"line": 32,
|
824
824
|
"character": 25
|
825
825
|
},
|
826
826
|
"name": "[ cli, workspace, loggerMain, install ]",
|
@@ -828,7 +828,7 @@
|
|
828
828
|
"__schema": "TupleTypeSchema",
|
829
829
|
"location": {
|
830
830
|
"filePath": "eject.main.runtime.ts",
|
831
|
-
"line":
|
831
|
+
"line": 32,
|
832
832
|
"character": 64
|
833
833
|
},
|
834
834
|
"elements": [
|
@@ -836,7 +836,7 @@
|
|
836
836
|
"__schema": "TypeRefSchema",
|
837
837
|
"location": {
|
838
838
|
"filePath": "eject.main.runtime.ts",
|
839
|
-
"line":
|
839
|
+
"line": 32,
|
840
840
|
"character": 65
|
841
841
|
},
|
842
842
|
"name": "CLIMain",
|
@@ -849,7 +849,7 @@
|
|
849
849
|
"__schema": "TypeRefSchema",
|
850
850
|
"location": {
|
851
851
|
"filePath": "eject.main.runtime.ts",
|
852
|
-
"line":
|
852
|
+
"line": 32,
|
853
853
|
"character": 74
|
854
854
|
},
|
855
855
|
"name": "Workspace",
|
@@ -862,7 +862,7 @@
|
|
862
862
|
"__schema": "TypeRefSchema",
|
863
863
|
"location": {
|
864
864
|
"filePath": "eject.main.runtime.ts",
|
865
|
-
"line":
|
865
|
+
"line": 32,
|
866
866
|
"character": 85
|
867
867
|
},
|
868
868
|
"name": "LoggerMain",
|
@@ -875,7 +875,7 @@
|
|
875
875
|
"__schema": "TypeRefSchema",
|
876
876
|
"location": {
|
877
877
|
"filePath": "eject.main.runtime.ts",
|
878
|
-
"line":
|
878
|
+
"line": 32,
|
879
879
|
"character": 97
|
880
880
|
},
|
881
881
|
"name": "InstallMain",
|
@@ -894,7 +894,7 @@
|
|
894
894
|
"__schema": "InferenceTypeSchema",
|
895
895
|
"location": {
|
896
896
|
"filePath": "eject.main.runtime.ts",
|
897
|
-
"line":
|
897
|
+
"line": 32,
|
898
898
|
"character": 3
|
899
899
|
},
|
900
900
|
"type": "Promise<EjectMain>"
|
@@ -914,7 +914,7 @@
|
|
914
914
|
"__schema": "UnImplementedSchema",
|
915
915
|
"location": {
|
916
916
|
"filePath": "eject.main.runtime.ts",
|
917
|
-
"line":
|
917
|
+
"line": 41,
|
918
918
|
"character": 1
|
919
919
|
},
|
920
920
|
"name": "EjectAspect.addRuntime(EjectMain);",
|
@@ -1873,7 +1873,7 @@
|
|
1873
1873
|
"componentId": {
|
1874
1874
|
"scope": "teambit.workspace",
|
1875
1875
|
"name": "eject",
|
1876
|
-
"version": "1.0.
|
1876
|
+
"version": "1.0.427"
|
1877
1877
|
},
|
1878
1878
|
"taggedModuleExports": []
|
1879
1879
|
}
|
package/dist/eject-cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_constants","data","require","_ejectTemplate","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EjectCmd","constructor","ejectMain","workspace","name","description","COMPONENT_PATTERN_HELP","report","pattern","force","json","keepFiles","skipDependencyInstallation","componentIds","idsByPattern","ejectResults","eject","JSON","stringify","ejectTemplate","exports"],"sources":["eject-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { Workspace } from '@teambit/workspace';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { ejectTemplate } from './eject-template';\nimport { EjectMain } from './eject.main.runtime';\n\nexport class EjectCmd implements Command {\n name = 'eject <component-pattern>';\n description = 'remove component from the workspace and install it instead as a regular npm package.';\n extendedDescription = 'By default the component files will be removed from the workspace';\n helpUrl = 'reference/components/exporting-components#ejecting-components';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n alias = 'E';\n options = [\n [\n 'f',\n 'force',\n 'ignore local changes/versions. eject component/s even when they are staged or modified. Note: unexported tags/snaps will be lost',\n ],\n ['x', 'skip-dependency-installation', 'do not auto-install dependencies'],\n ['j', 'json', 'print the results in JSON format'],\n ['', 'keep-files', 'keep the component files in the workspace intact'],\n ] as CommandOptions;\n loader = true;\n group = 'development';\n\n constructor(private ejectMain: EjectMain
|
1
|
+
{"version":3,"names":["_constants","data","require","_ejectTemplate","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EjectCmd","constructor","ejectMain","workspace","name","description","COMPONENT_PATTERN_HELP","report","pattern","force","json","keepFiles","skipDependencyInstallation","componentIds","idsByPattern","ejectResults","eject","JSON","stringify","ejectTemplate","exports"],"sources":["eject-cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { Workspace } from '@teambit/workspace';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport { ejectTemplate } from './eject-template';\nimport { EjectMain } from './eject.main.runtime';\n\nexport class EjectCmd implements Command {\n name = 'eject <component-pattern>';\n description = 'remove component from the workspace and install it instead as a regular npm package.';\n extendedDescription = 'By default the component files will be removed from the workspace';\n helpUrl = 'reference/components/exporting-components#ejecting-components';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n alias = 'E';\n options = [\n [\n 'f',\n 'force',\n 'ignore local changes/versions. eject component/s even when they are staged or modified. Note: unexported tags/snaps will be lost',\n ],\n ['x', 'skip-dependency-installation', 'do not auto-install dependencies'],\n ['j', 'json', 'print the results in JSON format'],\n ['', 'keep-files', 'keep the component files in the workspace intact'],\n ] as CommandOptions;\n loader = true;\n group = 'development';\n\n constructor(\n private ejectMain: EjectMain,\n private workspace: Workspace\n ) {}\n\n async report(\n [pattern]: [string],\n {\n force = false,\n json = false,\n keepFiles = false,\n skipDependencyInstallation,\n }: {\n force: boolean;\n json: boolean;\n keepFiles: boolean;\n skipDependencyInstallation?: boolean;\n }\n ): Promise<string> {\n const componentIds = await this.workspace.idsByPattern(pattern);\n const ejectResults = await this.ejectMain.eject(componentIds, { force, keepFiles, skipDependencyInstallation });\n if (json) return JSON.stringify(ejectResults, null, 2);\n return ejectTemplate(ejectResults);\n }\n}\n"],"mappings":";;;;;;AAEA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,eAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,cAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAiD,SAAAG,gBA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,CAAC,EACjD,CAAC,EAAE,EAAE,YAAY,EAAE,kDAAkD,CAAC,CACvE;IAAAA,eAAA,iBACQ,IAAI;IAAAA,eAAA,gBACL,aAAa;EAKlB;EAEH,MAAM0B,MAAMA,CACV,CAACC,OAAO,CAAW,EACnB;IACEC,KAAK,GAAG,KAAK;IACbC,IAAI,GAAG,KAAK;IACZC,SAAS,GAAG,KAAK;IACjBC;EAMF,CAAC,EACgB;IACjB,MAAMC,YAAY,GAAG,MAAM,IAAI,CAACV,SAAS,CAACW,YAAY,CAACN,OAAO,CAAC;IAC/D,MAAMO,YAAY,GAAG,MAAM,IAAI,CAACb,SAAS,CAACc,KAAK,CAACH,YAAY,EAAE;MAAEJ,KAAK;MAAEE,SAAS;MAAEC;IAA2B,CAAC,CAAC;IAC/G,IAAIF,IAAI,EAAE,OAAOO,IAAI,CAACC,SAAS,CAACH,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACtD,OAAO,IAAAI,8BAAa,EAACJ,YAAY,CAAC;EACpC;AACF;AAACK,OAAA,CAAApB,QAAA,GAAAA,QAAA","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_logger","_workspace","_install","_ejectCmd","_eject","_componentsEjector","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EjectMain","constructor","workspace","install","logger","eject","componentIds","ejectOptions","OutsideWorkspaceError","componentEjector","ComponentsEjector","provider","cli","loggerMain","createLogger","EjectAspect","id","ejectMain","register","EjectCmd","exports","MainRuntime","CLIAspect","WorkspaceAspect","LoggerAspect","InstallAspect","addRuntime"],"sources":["eject.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentID } from '@teambit/component-id';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { EjectCmd } from './eject-cmd';\nimport { EjectAspect } from './eject.aspect';\nimport { ComponentsEjector, EjectOptions, EjectResults } from './components-ejector';\n\nexport class EjectMain {\n constructor(private workspace: Workspace
|
1
|
+
{"version":3,"names":["_cli","data","require","_logger","_workspace","_install","_ejectCmd","_eject","_componentsEjector","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","EjectMain","constructor","workspace","install","logger","eject","componentIds","ejectOptions","OutsideWorkspaceError","componentEjector","ComponentsEjector","provider","cli","loggerMain","createLogger","EjectAspect","id","ejectMain","register","EjectCmd","exports","MainRuntime","CLIAspect","WorkspaceAspect","LoggerAspect","InstallAspect","addRuntime"],"sources":["eject.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentID } from '@teambit/component-id';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { EjectCmd } from './eject-cmd';\nimport { EjectAspect } from './eject.aspect';\nimport { ComponentsEjector, EjectOptions, EjectResults } from './components-ejector';\n\nexport class EjectMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private logger: Logger\n ) {}\n async eject(componentIds: ComponentID[], ejectOptions: EjectOptions = {}): Promise<EjectResults> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const componentEjector = new ComponentsEjector(\n this.workspace,\n this.install,\n this.logger,\n componentIds,\n ejectOptions\n );\n return componentEjector.eject();\n }\n\n static runtime = MainRuntime;\n\n static dependencies = [CLIAspect, WorkspaceAspect, LoggerAspect, InstallAspect];\n\n static async provider([cli, workspace, loggerMain, install]: [CLIMain, Workspace, LoggerMain, InstallMain]) {\n const logger = loggerMain.createLogger(EjectAspect.id);\n const ejectMain = new EjectMain(workspace, install, logger);\n cli.register(new EjectCmd(ejectMain, workspace));\n\n return ejectMain;\n }\n}\n\nEjectAspect.addRuntime(EjectMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,QAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,OAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,mBAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,kBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAqF,SAAAQ,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,U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S,GAAG,IAAIjB,SAAS,CAACE,SAAS,EAAEC,OAAO,EAAEC,MAAM,CAAC;IAC3DQ,GAAG,CAACM,QAAQ,CAAC,KAAIC,oBAAQ,EAACF,SAAS,EAAEf,SAAS,CAAC,CAAC;IAEhD,OAAOe,SAAS;EAClB;AACF;AAACG,OAAA,CAAApB,SAAA,GAAAA,SAAA;AAAAnB,eAAA,CA7BYmB,SAAS,aAkBHqB,kBAAW;AAAAxC,eAAA,CAlBjBmB,SAAS,kBAoBE,CAACsB,gBAAS,EAAEC,4BAAe,EAAEC,sBAAY,EAAEC,wBAAa,CAAC;AAWjFV,oBAAW,CAACW,UAAU,CAAC1B,SAAS,CAAC","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.427/dist/eject.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.427/dist/eject.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/eject",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.427",
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/eject",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.workspace",
|
8
8
|
"name": "eject",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.427"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"@teambit/component-id": "1.2.2",
|
14
14
|
"@teambit/harmony": "0.4.6",
|
15
|
-
"@teambit/component.sources": "0.0.
|
16
|
-
"@teambit/install": "1.0.
|
17
|
-
"@teambit/logger": "0.0.
|
15
|
+
"@teambit/component.sources": "0.0.34",
|
16
|
+
"@teambit/install": "1.0.427",
|
17
|
+
"@teambit/logger": "0.0.1097",
|
18
18
|
"@teambit/pkg.modules.component-package-name": "0.0.5",
|
19
|
-
"@teambit/remove": "1.0.
|
20
|
-
"@teambit/workspace": "1.0.
|
21
|
-
"@teambit/cli": "0.0.
|
19
|
+
"@teambit/remove": "1.0.427",
|
20
|
+
"@teambit/workspace": "1.0.427",
|
21
|
+
"@teambit/cli": "0.0.1004"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
24
|
"@types/mocha": "9.1.0",
|