@teambit/eject 1.0.513 → 1.0.514

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.513" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.workspace/eject@1.0.514" 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={974:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.513",homepage:"https://bit.cloud/teambit/workspace/eject",exported:!0};function r(){const e=i(o(594));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},594: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(974);o(594);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})()));
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={326:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.514",homepage:"https://bit.cloud/teambit/workspace/eject",exported:!0};function r(){const e=i(o(594));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},594: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(326);o(594);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})()));
@@ -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
  },
@@ -1038,7 +1106,7 @@
1038
1106
  "componentId": {
1039
1107
  "scope": "teambit.legacy",
1040
1108
  "name": "consumer",
1041
- "version": "0.0.19"
1109
+ "version": "0.0.20"
1042
1110
  }
1043
1111
  },
1044
1112
  "isOptional": false
@@ -1223,7 +1291,11 @@
1223
1291
  "line": 48,
1224
1292
  "character": 24
1225
1293
  },
1226
- "name": "Workspace"
1294
+ "name": "Workspace",
1295
+ "componentId": {
1296
+ "scope": "teambit.workspace",
1297
+ "name": "workspace"
1298
+ }
1227
1299
  },
1228
1300
  "isOptional": false,
1229
1301
  "isSpread": false
@@ -1243,7 +1315,11 @@
1243
1315
  "line": 49,
1244
1316
  "character": 22
1245
1317
  },
1246
- "name": "InstallMain"
1318
+ "name": "InstallMain",
1319
+ "componentId": {
1320
+ "scope": "teambit.workspace",
1321
+ "name": "install"
1322
+ }
1247
1323
  },
1248
1324
  "isOptional": false,
1249
1325
  "isSpread": false
@@ -1263,7 +1339,11 @@
1263
1339
  "line": 50,
1264
1340
  "character": 21
1265
1341
  },
1266
- "name": "Logger"
1342
+ "name": "Logger",
1343
+ "componentId": {
1344
+ "scope": "teambit.harmony",
1345
+ "name": "logger"
1346
+ }
1267
1347
  },
1268
1348
  "isOptional": false,
1269
1349
  "isSpread": false
@@ -1290,7 +1370,12 @@
1290
1370
  "line": 51,
1291
1371
  "character": 28
1292
1372
  },
1293
- "name": "ComponentID"
1373
+ "name": "ComponentID",
1374
+ "componentId": {
1375
+ "scope": "teambit.component",
1376
+ "name": "component-id",
1377
+ "version": "1.2.2"
1378
+ }
1294
1379
  }
1295
1380
  },
1296
1381
  "isOptional": false,
@@ -1311,7 +1396,8 @@
1311
1396
  "line": 52,
1312
1397
  "character": 27
1313
1398
  },
1314
- "name": "EjectOptions"
1399
+ "name": "EjectOptions",
1400
+ "internalFilePath": "components-ejector.ts"
1315
1401
  },
1316
1402
  "isOptional": false,
1317
1403
  "isSpread": false
@@ -1788,7 +1874,7 @@
1788
1874
  "componentId": {
1789
1875
  "scope": "teambit.workspace",
1790
1876
  "name": "eject",
1791
- "version": "1.0.513"
1877
+ "version": "1.0.514"
1792
1878
  },
1793
1879
  "taggedModuleExports": []
1794
1880
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.513/dist/eject.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.513/dist/eject.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.514/dist/eject.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.514/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,32 +1,32 @@
1
1
  {
2
2
  "name": "@teambit/eject",
3
- "version": "1.0.513",
3
+ "version": "1.0.514",
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.513"
9
+ "version": "1.0.514"
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.1090",
16
- "@teambit/component.sources": "0.0.71",
17
- "@teambit/install": "1.0.513",
18
- "@teambit/legacy.consumer-component": "0.0.20",
19
- "@teambit/legacy.consumer": "0.0.19",
20
- "@teambit/logger": "0.0.1183",
21
- "@teambit/pkg.modules.component-package-name": "0.0.26",
22
- "@teambit/remove": "1.0.513",
23
- "@teambit/scope.remotes": "0.0.19",
24
- "@teambit/workspace": "1.0.513",
25
- "@teambit/legacy.constants": "0.0.5"
15
+ "@teambit/cli": "0.0.1091",
16
+ "@teambit/component.sources": "0.0.72",
17
+ "@teambit/install": "1.0.514",
18
+ "@teambit/legacy.consumer-component": "0.0.21",
19
+ "@teambit/legacy.consumer": "0.0.20",
20
+ "@teambit/logger": "0.0.1184",
21
+ "@teambit/pkg.modules.component-package-name": "0.0.27",
22
+ "@teambit/remove": "1.0.514",
23
+ "@teambit/scope.remotes": "0.0.20",
24
+ "@teambit/workspace": "1.0.514",
25
+ "@teambit/legacy.constants": "0.0.6"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/mocha": "9.1.0",
29
- "@teambit/harmony.envs.core-aspect-env": "0.0.65"
29
+ "@teambit/harmony.envs.core-aspect-env": "0.0.68"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^17.0.0 || ^18.0.0",