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