@teambit/eject 1.0.452 → 1.0.453
Sign up to get free protection for your applications and to get access to all the features.
@@ -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.453" 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={78824:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.453",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(78824);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
@@ -57,7 +57,11 @@
|
|
57
57
|
"line": 12,
|
58
58
|
"character": 24
|
59
59
|
},
|
60
|
-
"name": "Workspace"
|
60
|
+
"name": "Workspace",
|
61
|
+
"componentId": {
|
62
|
+
"scope": "teambit.workspace",
|
63
|
+
"name": "workspace"
|
64
|
+
}
|
61
65
|
},
|
62
66
|
"isOptional": false,
|
63
67
|
"isSpread": false
|
@@ -77,7 +81,11 @@
|
|
77
81
|
"line": 13,
|
78
82
|
"character": 22
|
79
83
|
},
|
80
|
-
"name": "InstallMain"
|
84
|
+
"name": "InstallMain",
|
85
|
+
"componentId": {
|
86
|
+
"scope": "teambit.workspace",
|
87
|
+
"name": "install"
|
88
|
+
}
|
81
89
|
},
|
82
90
|
"isOptional": false,
|
83
91
|
"isSpread": false
|
@@ -97,7 +105,11 @@
|
|
97
105
|
"line": 14,
|
98
106
|
"character": 21
|
99
107
|
},
|
100
|
-
"name": "Logger"
|
108
|
+
"name": "Logger",
|
109
|
+
"componentId": {
|
110
|
+
"scope": "teambit.harmony",
|
111
|
+
"name": "logger"
|
112
|
+
}
|
101
113
|
},
|
102
114
|
"isOptional": false,
|
103
115
|
"isSpread": false
|
@@ -146,7 +158,12 @@
|
|
146
158
|
"line": 16,
|
147
159
|
"character": 29
|
148
160
|
},
|
149
|
-
"name": "ComponentID"
|
161
|
+
"name": "ComponentID",
|
162
|
+
"componentId": {
|
163
|
+
"scope": "teambit.component",
|
164
|
+
"name": "component-id",
|
165
|
+
"version": "1.2.2"
|
166
|
+
}
|
150
167
|
}
|
151
168
|
},
|
152
169
|
"isOptional": false,
|
@@ -167,7 +184,8 @@
|
|
167
184
|
"line": 16,
|
168
185
|
"character": 58
|
169
186
|
},
|
170
|
-
"name": "EjectOptions"
|
187
|
+
"name": "EjectOptions",
|
188
|
+
"internalFilePath": "components-ejector.ts"
|
171
189
|
},
|
172
190
|
"isOptional": true,
|
173
191
|
"defaultValue": "{}",
|
@@ -273,7 +291,11 @@
|
|
273
291
|
"line": 32,
|
274
292
|
"character": 65
|
275
293
|
},
|
276
|
-
"name": "CLIMain"
|
294
|
+
"name": "CLIMain",
|
295
|
+
"componentId": {
|
296
|
+
"scope": "teambit.harmony",
|
297
|
+
"name": "cli"
|
298
|
+
}
|
277
299
|
},
|
278
300
|
{
|
279
301
|
"__schema": "TypeRefSchema",
|
@@ -282,7 +304,11 @@
|
|
282
304
|
"line": 32,
|
283
305
|
"character": 74
|
284
306
|
},
|
285
|
-
"name": "Workspace"
|
307
|
+
"name": "Workspace",
|
308
|
+
"componentId": {
|
309
|
+
"scope": "teambit.workspace",
|
310
|
+
"name": "workspace"
|
311
|
+
}
|
286
312
|
},
|
287
313
|
{
|
288
314
|
"__schema": "TypeRefSchema",
|
@@ -291,7 +317,11 @@
|
|
291
317
|
"line": 32,
|
292
318
|
"character": 85
|
293
319
|
},
|
294
|
-
"name": "LoggerMain"
|
320
|
+
"name": "LoggerMain",
|
321
|
+
"componentId": {
|
322
|
+
"scope": "teambit.harmony",
|
323
|
+
"name": "logger"
|
324
|
+
}
|
295
325
|
},
|
296
326
|
{
|
297
327
|
"__schema": "TypeRefSchema",
|
@@ -300,7 +330,11 @@
|
|
300
330
|
"line": 32,
|
301
331
|
"character": 97
|
302
332
|
},
|
303
|
-
"name": "InstallMain"
|
333
|
+
"name": "InstallMain",
|
334
|
+
"componentId": {
|
335
|
+
"scope": "teambit.workspace",
|
336
|
+
"name": "install"
|
337
|
+
}
|
304
338
|
}
|
305
339
|
]
|
306
340
|
},
|
@@ -571,7 +605,11 @@
|
|
571
605
|
"line": 12,
|
572
606
|
"character": 24
|
573
607
|
},
|
574
|
-
"name": "Workspace"
|
608
|
+
"name": "Workspace",
|
609
|
+
"componentId": {
|
610
|
+
"scope": "teambit.workspace",
|
611
|
+
"name": "workspace"
|
612
|
+
}
|
575
613
|
},
|
576
614
|
"isOptional": false,
|
577
615
|
"isSpread": false
|
@@ -591,7 +629,11 @@
|
|
591
629
|
"line": 13,
|
592
630
|
"character": 22
|
593
631
|
},
|
594
|
-
"name": "InstallMain"
|
632
|
+
"name": "InstallMain",
|
633
|
+
"componentId": {
|
634
|
+
"scope": "teambit.workspace",
|
635
|
+
"name": "install"
|
636
|
+
}
|
595
637
|
},
|
596
638
|
"isOptional": false,
|
597
639
|
"isSpread": false
|
@@ -611,7 +653,11 @@
|
|
611
653
|
"line": 14,
|
612
654
|
"character": 21
|
613
655
|
},
|
614
|
-
"name": "Logger"
|
656
|
+
"name": "Logger",
|
657
|
+
"componentId": {
|
658
|
+
"scope": "teambit.harmony",
|
659
|
+
"name": "logger"
|
660
|
+
}
|
615
661
|
},
|
616
662
|
"isOptional": false,
|
617
663
|
"isSpread": false
|
@@ -660,7 +706,12 @@
|
|
660
706
|
"line": 16,
|
661
707
|
"character": 29
|
662
708
|
},
|
663
|
-
"name": "ComponentID"
|
709
|
+
"name": "ComponentID",
|
710
|
+
"componentId": {
|
711
|
+
"scope": "teambit.component",
|
712
|
+
"name": "component-id",
|
713
|
+
"version": "1.2.2"
|
714
|
+
}
|
664
715
|
}
|
665
716
|
},
|
666
717
|
"isOptional": false,
|
@@ -681,7 +732,8 @@
|
|
681
732
|
"line": 16,
|
682
733
|
"character": 58
|
683
734
|
},
|
684
|
-
"name": "EjectOptions"
|
735
|
+
"name": "EjectOptions",
|
736
|
+
"internalFilePath": "components-ejector.ts"
|
685
737
|
},
|
686
738
|
"isOptional": true,
|
687
739
|
"defaultValue": "{}",
|
@@ -787,7 +839,11 @@
|
|
787
839
|
"line": 32,
|
788
840
|
"character": 65
|
789
841
|
},
|
790
|
-
"name": "CLIMain"
|
842
|
+
"name": "CLIMain",
|
843
|
+
"componentId": {
|
844
|
+
"scope": "teambit.harmony",
|
845
|
+
"name": "cli"
|
846
|
+
}
|
791
847
|
},
|
792
848
|
{
|
793
849
|
"__schema": "TypeRefSchema",
|
@@ -796,7 +852,11 @@
|
|
796
852
|
"line": 32,
|
797
853
|
"character": 74
|
798
854
|
},
|
799
|
-
"name": "Workspace"
|
855
|
+
"name": "Workspace",
|
856
|
+
"componentId": {
|
857
|
+
"scope": "teambit.workspace",
|
858
|
+
"name": "workspace"
|
859
|
+
}
|
800
860
|
},
|
801
861
|
{
|
802
862
|
"__schema": "TypeRefSchema",
|
@@ -805,7 +865,11 @@
|
|
805
865
|
"line": 32,
|
806
866
|
"character": 85
|
807
867
|
},
|
808
|
-
"name": "LoggerMain"
|
868
|
+
"name": "LoggerMain",
|
869
|
+
"componentId": {
|
870
|
+
"scope": "teambit.harmony",
|
871
|
+
"name": "logger"
|
872
|
+
}
|
809
873
|
},
|
810
874
|
{
|
811
875
|
"__schema": "TypeRefSchema",
|
@@ -814,7 +878,11 @@
|
|
814
878
|
"line": 32,
|
815
879
|
"character": 97
|
816
880
|
},
|
817
|
-
"name": "InstallMain"
|
881
|
+
"name": "InstallMain",
|
882
|
+
"componentId": {
|
883
|
+
"scope": "teambit.workspace",
|
884
|
+
"name": "install"
|
885
|
+
}
|
818
886
|
}
|
819
887
|
]
|
820
888
|
},
|
@@ -1087,7 +1155,8 @@
|
|
1087
1155
|
"line": 43,
|
1088
1156
|
"character": 22
|
1089
1157
|
},
|
1090
|
-
"name": "Component"
|
1158
|
+
"name": "Component",
|
1159
|
+
"packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
|
1091
1160
|
}
|
1092
1161
|
},
|
1093
1162
|
"isOptional": true,
|
@@ -1163,7 +1232,8 @@
|
|
1163
1232
|
"line": 45,
|
1164
1233
|
"character": 76
|
1165
1234
|
},
|
1166
|
-
"name": "Component"
|
1235
|
+
"name": "Component",
|
1236
|
+
"packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
|
1167
1237
|
}
|
1168
1238
|
},
|
1169
1239
|
"isOptional": false
|
@@ -1220,7 +1290,11 @@
|
|
1220
1290
|
"line": 48,
|
1221
1291
|
"character": 24
|
1222
1292
|
},
|
1223
|
-
"name": "Workspace"
|
1293
|
+
"name": "Workspace",
|
1294
|
+
"componentId": {
|
1295
|
+
"scope": "teambit.workspace",
|
1296
|
+
"name": "workspace"
|
1297
|
+
}
|
1224
1298
|
},
|
1225
1299
|
"isOptional": false,
|
1226
1300
|
"isSpread": false
|
@@ -1240,7 +1314,11 @@
|
|
1240
1314
|
"line": 49,
|
1241
1315
|
"character": 22
|
1242
1316
|
},
|
1243
|
-
"name": "InstallMain"
|
1317
|
+
"name": "InstallMain",
|
1318
|
+
"componentId": {
|
1319
|
+
"scope": "teambit.workspace",
|
1320
|
+
"name": "install"
|
1321
|
+
}
|
1244
1322
|
},
|
1245
1323
|
"isOptional": false,
|
1246
1324
|
"isSpread": false
|
@@ -1260,7 +1338,11 @@
|
|
1260
1338
|
"line": 50,
|
1261
1339
|
"character": 21
|
1262
1340
|
},
|
1263
|
-
"name": "Logger"
|
1341
|
+
"name": "Logger",
|
1342
|
+
"componentId": {
|
1343
|
+
"scope": "teambit.harmony",
|
1344
|
+
"name": "logger"
|
1345
|
+
}
|
1264
1346
|
},
|
1265
1347
|
"isOptional": false,
|
1266
1348
|
"isSpread": false
|
@@ -1287,7 +1369,12 @@
|
|
1287
1369
|
"line": 51,
|
1288
1370
|
"character": 28
|
1289
1371
|
},
|
1290
|
-
"name": "ComponentID"
|
1372
|
+
"name": "ComponentID",
|
1373
|
+
"componentId": {
|
1374
|
+
"scope": "teambit.component",
|
1375
|
+
"name": "component-id",
|
1376
|
+
"version": "1.2.2"
|
1377
|
+
}
|
1291
1378
|
}
|
1292
1379
|
},
|
1293
1380
|
"isOptional": false,
|
@@ -1308,7 +1395,8 @@
|
|
1308
1395
|
"line": 52,
|
1309
1396
|
"character": 27
|
1310
1397
|
},
|
1311
|
-
"name": "EjectOptions"
|
1398
|
+
"name": "EjectOptions",
|
1399
|
+
"internalFilePath": "components-ejector.ts"
|
1312
1400
|
},
|
1313
1401
|
"isOptional": false,
|
1314
1402
|
"isSpread": false
|
@@ -1785,7 +1873,7 @@
|
|
1785
1873
|
"componentId": {
|
1786
1874
|
"scope": "teambit.workspace",
|
1787
1875
|
"name": "eject",
|
1788
|
-
"version": "1.0.
|
1876
|
+
"version": "1.0.453"
|
1789
1877
|
},
|
1790
1878
|
"taggedModuleExports": []
|
1791
1879
|
}
|
@@ -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.453/dist/eject.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.453/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.453",
|
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.453"
|
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
15
|
"@teambit/component.sources": "0.0.42",
|
16
|
-
"@teambit/install": "1.0.
|
17
|
-
"@teambit/logger": "0.0.
|
16
|
+
"@teambit/install": "1.0.453",
|
17
|
+
"@teambit/logger": "0.0.1123",
|
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.453",
|
20
|
+
"@teambit/workspace": "1.0.453",
|
21
|
+
"@teambit/cli": "0.0.1030"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
24
|
"@types/mocha": "9.1.0",
|