@teambit/eject 1.0.496 → 1.0.497
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.
@@ -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.497" 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={7661:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.497",homepage:"https://bit.cloud/teambit/workspace/eject",exported:!0};function r(){const e=i(o(1594));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},1594: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(7661);o(1594);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
|
},
|
@@ -1106,7 +1038,7 @@
|
|
1106
1038
|
"componentId": {
|
1107
1039
|
"scope": "teambit.legacy",
|
1108
1040
|
"name": "consumer",
|
1109
|
-
"version": "0.0.
|
1041
|
+
"version": "0.0.9"
|
1110
1042
|
}
|
1111
1043
|
},
|
1112
1044
|
"isOptional": false
|
@@ -1291,11 +1223,7 @@
|
|
1291
1223
|
"line": 48,
|
1292
1224
|
"character": 24
|
1293
1225
|
},
|
1294
|
-
"name": "Workspace"
|
1295
|
-
"componentId": {
|
1296
|
-
"scope": "teambit.workspace",
|
1297
|
-
"name": "workspace"
|
1298
|
-
}
|
1226
|
+
"name": "Workspace"
|
1299
1227
|
},
|
1300
1228
|
"isOptional": false,
|
1301
1229
|
"isSpread": false
|
@@ -1315,11 +1243,7 @@
|
|
1315
1243
|
"line": 49,
|
1316
1244
|
"character": 22
|
1317
1245
|
},
|
1318
|
-
"name": "InstallMain"
|
1319
|
-
"componentId": {
|
1320
|
-
"scope": "teambit.workspace",
|
1321
|
-
"name": "install"
|
1322
|
-
}
|
1246
|
+
"name": "InstallMain"
|
1323
1247
|
},
|
1324
1248
|
"isOptional": false,
|
1325
1249
|
"isSpread": false
|
@@ -1339,11 +1263,7 @@
|
|
1339
1263
|
"line": 50,
|
1340
1264
|
"character": 21
|
1341
1265
|
},
|
1342
|
-
"name": "Logger"
|
1343
|
-
"componentId": {
|
1344
|
-
"scope": "teambit.harmony",
|
1345
|
-
"name": "logger"
|
1346
|
-
}
|
1266
|
+
"name": "Logger"
|
1347
1267
|
},
|
1348
1268
|
"isOptional": false,
|
1349
1269
|
"isSpread": false
|
@@ -1370,12 +1290,7 @@
|
|
1370
1290
|
"line": 51,
|
1371
1291
|
"character": 28
|
1372
1292
|
},
|
1373
|
-
"name": "ComponentID"
|
1374
|
-
"componentId": {
|
1375
|
-
"scope": "teambit.component",
|
1376
|
-
"name": "component-id",
|
1377
|
-
"version": "1.2.2"
|
1378
|
-
}
|
1293
|
+
"name": "ComponentID"
|
1379
1294
|
}
|
1380
1295
|
},
|
1381
1296
|
"isOptional": false,
|
@@ -1396,8 +1311,7 @@
|
|
1396
1311
|
"line": 52,
|
1397
1312
|
"character": 27
|
1398
1313
|
},
|
1399
|
-
"name": "EjectOptions"
|
1400
|
-
"internalFilePath": "components-ejector.ts"
|
1314
|
+
"name": "EjectOptions"
|
1401
1315
|
},
|
1402
1316
|
"isOptional": false,
|
1403
1317
|
"isSpread": false
|
@@ -1874,7 +1788,7 @@
|
|
1874
1788
|
"componentId": {
|
1875
1789
|
"scope": "teambit.workspace",
|
1876
1790
|
"name": "eject",
|
1877
|
-
"version": "1.0.
|
1791
|
+
"version": "1.0.497"
|
1878
1792
|
},
|
1879
1793
|
"taggedModuleExports": []
|
1880
1794
|
}
|
@@ -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.497/dist/eject.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.497/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,27 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/eject",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.497",
|
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.497"
|
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/cli": "0.0.
|
16
|
-
"@teambit/component.sources": "0.0.
|
17
|
-
"@teambit/install": "1.0.
|
18
|
-
"@teambit/legacy.consumer-component": "0.0.
|
19
|
-
"@teambit/legacy.consumer": "0.0.
|
20
|
-
"@teambit/logger": "0.0.
|
21
|
-
"@teambit/pkg.modules.component-package-name": "0.0.
|
22
|
-
"@teambit/remove": "1.0.
|
23
|
-
"@teambit/scope.remotes": "0.0.
|
24
|
-
"@teambit/workspace": "1.0.
|
15
|
+
"@teambit/cli": "0.0.1074",
|
16
|
+
"@teambit/component.sources": "0.0.61",
|
17
|
+
"@teambit/install": "1.0.497",
|
18
|
+
"@teambit/legacy.consumer-component": "0.0.10",
|
19
|
+
"@teambit/legacy.consumer": "0.0.9",
|
20
|
+
"@teambit/logger": "0.0.1167",
|
21
|
+
"@teambit/pkg.modules.component-package-name": "0.0.16",
|
22
|
+
"@teambit/remove": "1.0.497",
|
23
|
+
"@teambit/scope.remotes": "0.0.9",
|
24
|
+
"@teambit/workspace": "1.0.497",
|
25
25
|
"@teambit/legacy.constants": "0.0.3"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|