@teambit/eject 1.0.228 → 1.0.230
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 +116 -27
- package/dist/components-ejector.d.ts +66 -0
- package/dist/eject-cmd.d.ts +26 -0
- package/dist/eject-template.d.ts +4 -0
- package/dist/eject.aspect.d.ts +2 -0
- package/dist/eject.composition.d.ts +1 -0
- package/dist/eject.main.runtime.d.ts +16 -0
- package/dist/index.d.ts +4 -0
- package/dist/{preview-1712805335812.js → preview-1712891953391.js} +2 -2
- package/package.json +7 -7
- package/tsconfig.json +1 -16
@@ -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.230" 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={53112:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.230",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={};return(()=>{o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>u,overview:()=>l});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(53112);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}var c={},d="wrapper";function s(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,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,r.mdx)(d,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"One of the common scenarios of using ",(0,r.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,r.mdx)("inlineCode",{parentName:"p"},"eject"),", the next steps would be: 1) remove the component from the workspace by ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit remove")," and 2) installing the component by ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit install"),"."),(0,r.mdx)("p",null,(0,r.mdx)("inlineCode",{parentName:"p"},"bit eject")," combines the commands above to one command."),(0,r.mdx)("h2",null,"Eject process"),(0,r.mdx)("p",null,"The following steps are done during the ",(0,r.mdx)("inlineCode",{parentName:"p"},"eject")," process."),(0,r.mdx)("ol",null,(0,r.mdx)("li",{parentName:"ol"},"remove the component's data from node-modules so then it won't interfere with the package installation."),(0,r.mdx)("li",{parentName:"ol"},"remove the component from the .bitmap file."),(0,r.mdx)("li",{parentName:"ol"},"install the component as a package by the package manager and add the package to the ",(0,r.mdx)("inlineCode",{parentName:"li"},"workspace.json")," file."),(0,r.mdx)("li",{parentName:"ol"},"depends on the ",(0,r.mdx)("inlineCode",{parentName:"li"},"--keep-files")," flag, deletes the component files from the workspace."))))}s.isMDXComponent=!0;const m=[t],l=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
@@ -48,7 +48,11 @@
|
|
48
48
|
"line": 11,
|
49
49
|
"character": 34
|
50
50
|
},
|
51
|
-
"name": "Workspace"
|
51
|
+
"name": "Workspace",
|
52
|
+
"componentId": {
|
53
|
+
"scope": "teambit.workspace",
|
54
|
+
"name": "workspace"
|
55
|
+
}
|
52
56
|
},
|
53
57
|
"isOptional": false,
|
54
58
|
"isSpread": false
|
@@ -68,7 +72,11 @@
|
|
68
72
|
"line": 11,
|
69
73
|
"character": 62
|
70
74
|
},
|
71
|
-
"name": "InstallMain"
|
75
|
+
"name": "InstallMain",
|
76
|
+
"componentId": {
|
77
|
+
"scope": "teambit.workspace",
|
78
|
+
"name": "install"
|
79
|
+
}
|
72
80
|
},
|
73
81
|
"isOptional": false,
|
74
82
|
"isSpread": false
|
@@ -88,7 +96,11 @@
|
|
88
96
|
"line": 11,
|
89
97
|
"character": 91
|
90
98
|
},
|
91
|
-
"name": "Logger"
|
99
|
+
"name": "Logger",
|
100
|
+
"componentId": {
|
101
|
+
"scope": "teambit.harmony",
|
102
|
+
"name": "logger"
|
103
|
+
}
|
92
104
|
},
|
93
105
|
"isOptional": false,
|
94
106
|
"isSpread": false
|
@@ -137,7 +149,12 @@
|
|
137
149
|
"line": 12,
|
138
150
|
"character": 29
|
139
151
|
},
|
140
|
-
"name": "ComponentID"
|
152
|
+
"name": "ComponentID",
|
153
|
+
"componentId": {
|
154
|
+
"scope": "teambit.component",
|
155
|
+
"name": "component-id",
|
156
|
+
"version": "1.2.0"
|
157
|
+
}
|
141
158
|
}
|
142
159
|
},
|
143
160
|
"isOptional": false,
|
@@ -158,7 +175,8 @@
|
|
158
175
|
"line": 12,
|
159
176
|
"character": 58
|
160
177
|
},
|
161
|
-
"name": "EjectOptions"
|
178
|
+
"name": "EjectOptions",
|
179
|
+
"internalFilePath": "components-ejector.ts"
|
162
180
|
},
|
163
181
|
"isOptional": true,
|
164
182
|
"defaultValue": "{}",
|
@@ -264,7 +282,11 @@
|
|
264
282
|
"line": 28,
|
265
283
|
"character": 65
|
266
284
|
},
|
267
|
-
"name": "CLIMain"
|
285
|
+
"name": "CLIMain",
|
286
|
+
"componentId": {
|
287
|
+
"scope": "teambit.harmony",
|
288
|
+
"name": "cli"
|
289
|
+
}
|
268
290
|
},
|
269
291
|
{
|
270
292
|
"__schema": "TypeRefSchema",
|
@@ -273,7 +295,11 @@
|
|
273
295
|
"line": 28,
|
274
296
|
"character": 74
|
275
297
|
},
|
276
|
-
"name": "Workspace"
|
298
|
+
"name": "Workspace",
|
299
|
+
"componentId": {
|
300
|
+
"scope": "teambit.workspace",
|
301
|
+
"name": "workspace"
|
302
|
+
}
|
277
303
|
},
|
278
304
|
{
|
279
305
|
"__schema": "TypeRefSchema",
|
@@ -282,7 +308,11 @@
|
|
282
308
|
"line": 28,
|
283
309
|
"character": 85
|
284
310
|
},
|
285
|
-
"name": "LoggerMain"
|
311
|
+
"name": "LoggerMain",
|
312
|
+
"componentId": {
|
313
|
+
"scope": "teambit.harmony",
|
314
|
+
"name": "logger"
|
315
|
+
}
|
286
316
|
},
|
287
317
|
{
|
288
318
|
"__schema": "TypeRefSchema",
|
@@ -291,7 +321,11 @@
|
|
291
321
|
"line": 28,
|
292
322
|
"character": 97
|
293
323
|
},
|
294
|
-
"name": "InstallMain"
|
324
|
+
"name": "InstallMain",
|
325
|
+
"componentId": {
|
326
|
+
"scope": "teambit.workspace",
|
327
|
+
"name": "install"
|
328
|
+
}
|
295
329
|
}
|
296
330
|
]
|
297
331
|
},
|
@@ -521,7 +555,11 @@
|
|
521
555
|
"line": 11,
|
522
556
|
"character": 34
|
523
557
|
},
|
524
|
-
"name": "Workspace"
|
558
|
+
"name": "Workspace",
|
559
|
+
"componentId": {
|
560
|
+
"scope": "teambit.workspace",
|
561
|
+
"name": "workspace"
|
562
|
+
}
|
525
563
|
},
|
526
564
|
"isOptional": false,
|
527
565
|
"isSpread": false
|
@@ -541,7 +579,11 @@
|
|
541
579
|
"line": 11,
|
542
580
|
"character": 62
|
543
581
|
},
|
544
|
-
"name": "InstallMain"
|
582
|
+
"name": "InstallMain",
|
583
|
+
"componentId": {
|
584
|
+
"scope": "teambit.workspace",
|
585
|
+
"name": "install"
|
586
|
+
}
|
545
587
|
},
|
546
588
|
"isOptional": false,
|
547
589
|
"isSpread": false
|
@@ -561,7 +603,11 @@
|
|
561
603
|
"line": 11,
|
562
604
|
"character": 91
|
563
605
|
},
|
564
|
-
"name": "Logger"
|
606
|
+
"name": "Logger",
|
607
|
+
"componentId": {
|
608
|
+
"scope": "teambit.harmony",
|
609
|
+
"name": "logger"
|
610
|
+
}
|
565
611
|
},
|
566
612
|
"isOptional": false,
|
567
613
|
"isSpread": false
|
@@ -610,7 +656,12 @@
|
|
610
656
|
"line": 12,
|
611
657
|
"character": 29
|
612
658
|
},
|
613
|
-
"name": "ComponentID"
|
659
|
+
"name": "ComponentID",
|
660
|
+
"componentId": {
|
661
|
+
"scope": "teambit.component",
|
662
|
+
"name": "component-id",
|
663
|
+
"version": "1.2.0"
|
664
|
+
}
|
614
665
|
}
|
615
666
|
},
|
616
667
|
"isOptional": false,
|
@@ -631,7 +682,8 @@
|
|
631
682
|
"line": 12,
|
632
683
|
"character": 58
|
633
684
|
},
|
634
|
-
"name": "EjectOptions"
|
685
|
+
"name": "EjectOptions",
|
686
|
+
"internalFilePath": "components-ejector.ts"
|
635
687
|
},
|
636
688
|
"isOptional": true,
|
637
689
|
"defaultValue": "{}",
|
@@ -737,7 +789,11 @@
|
|
737
789
|
"line": 28,
|
738
790
|
"character": 65
|
739
791
|
},
|
740
|
-
"name": "CLIMain"
|
792
|
+
"name": "CLIMain",
|
793
|
+
"componentId": {
|
794
|
+
"scope": "teambit.harmony",
|
795
|
+
"name": "cli"
|
796
|
+
}
|
741
797
|
},
|
742
798
|
{
|
743
799
|
"__schema": "TypeRefSchema",
|
@@ -746,7 +802,11 @@
|
|
746
802
|
"line": 28,
|
747
803
|
"character": 74
|
748
804
|
},
|
749
|
-
"name": "Workspace"
|
805
|
+
"name": "Workspace",
|
806
|
+
"componentId": {
|
807
|
+
"scope": "teambit.workspace",
|
808
|
+
"name": "workspace"
|
809
|
+
}
|
750
810
|
},
|
751
811
|
{
|
752
812
|
"__schema": "TypeRefSchema",
|
@@ -755,7 +815,11 @@
|
|
755
815
|
"line": 28,
|
756
816
|
"character": 85
|
757
817
|
},
|
758
|
-
"name": "LoggerMain"
|
818
|
+
"name": "LoggerMain",
|
819
|
+
"componentId": {
|
820
|
+
"scope": "teambit.harmony",
|
821
|
+
"name": "logger"
|
822
|
+
}
|
759
823
|
},
|
760
824
|
{
|
761
825
|
"__schema": "TypeRefSchema",
|
@@ -764,7 +828,11 @@
|
|
764
828
|
"line": 28,
|
765
829
|
"character": 97
|
766
830
|
},
|
767
|
-
"name": "InstallMain"
|
831
|
+
"name": "InstallMain",
|
832
|
+
"componentId": {
|
833
|
+
"scope": "teambit.workspace",
|
834
|
+
"name": "install"
|
835
|
+
}
|
768
836
|
}
|
769
837
|
]
|
770
838
|
},
|
@@ -1037,7 +1105,8 @@
|
|
1037
1105
|
"line": 45,
|
1038
1106
|
"character": 22
|
1039
1107
|
},
|
1040
|
-
"name": "Component"
|
1108
|
+
"name": "Component",
|
1109
|
+
"packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
|
1041
1110
|
}
|
1042
1111
|
},
|
1043
1112
|
"isOptional": true,
|
@@ -1113,7 +1182,8 @@
|
|
1113
1182
|
"line": 47,
|
1114
1183
|
"character": 76
|
1115
1184
|
},
|
1116
|
-
"name": "Component"
|
1185
|
+
"name": "Component",
|
1186
|
+
"packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
|
1117
1187
|
}
|
1118
1188
|
},
|
1119
1189
|
"isOptional": false
|
@@ -1168,7 +1238,8 @@
|
|
1168
1238
|
"line": 50,
|
1169
1239
|
"character": 34
|
1170
1240
|
},
|
1171
|
-
"name": "PackageJsonFile"
|
1241
|
+
"name": "PackageJsonFile",
|
1242
|
+
"packageName": "@teambit/legacy/dist/consumer/component/package-json-file"
|
1172
1243
|
}
|
1173
1244
|
},
|
1174
1245
|
"isOptional": false
|
@@ -1198,7 +1269,11 @@
|
|
1198
1269
|
"line": 52,
|
1199
1270
|
"character": 24
|
1200
1271
|
},
|
1201
|
-
"name": "Workspace"
|
1272
|
+
"name": "Workspace",
|
1273
|
+
"componentId": {
|
1274
|
+
"scope": "teambit.workspace",
|
1275
|
+
"name": "workspace"
|
1276
|
+
}
|
1202
1277
|
},
|
1203
1278
|
"isOptional": false,
|
1204
1279
|
"isSpread": false
|
@@ -1218,7 +1293,11 @@
|
|
1218
1293
|
"line": 53,
|
1219
1294
|
"character": 22
|
1220
1295
|
},
|
1221
|
-
"name": "InstallMain"
|
1296
|
+
"name": "InstallMain",
|
1297
|
+
"componentId": {
|
1298
|
+
"scope": "teambit.workspace",
|
1299
|
+
"name": "install"
|
1300
|
+
}
|
1222
1301
|
},
|
1223
1302
|
"isOptional": false,
|
1224
1303
|
"isSpread": false
|
@@ -1238,7 +1317,11 @@
|
|
1238
1317
|
"line": 54,
|
1239
1318
|
"character": 21
|
1240
1319
|
},
|
1241
|
-
"name": "Logger"
|
1320
|
+
"name": "Logger",
|
1321
|
+
"componentId": {
|
1322
|
+
"scope": "teambit.harmony",
|
1323
|
+
"name": "logger"
|
1324
|
+
}
|
1242
1325
|
},
|
1243
1326
|
"isOptional": false,
|
1244
1327
|
"isSpread": false
|
@@ -1265,7 +1348,12 @@
|
|
1265
1348
|
"line": 55,
|
1266
1349
|
"character": 28
|
1267
1350
|
},
|
1268
|
-
"name": "ComponentID"
|
1351
|
+
"name": "ComponentID",
|
1352
|
+
"componentId": {
|
1353
|
+
"scope": "teambit.component",
|
1354
|
+
"name": "component-id",
|
1355
|
+
"version": "1.2.0"
|
1356
|
+
}
|
1269
1357
|
}
|
1270
1358
|
},
|
1271
1359
|
"isOptional": false,
|
@@ -1286,7 +1374,8 @@
|
|
1286
1374
|
"line": 56,
|
1287
1375
|
"character": 27
|
1288
1376
|
},
|
1289
|
-
"name": "EjectOptions"
|
1377
|
+
"name": "EjectOptions",
|
1378
|
+
"internalFilePath": "components-ejector.ts"
|
1290
1379
|
},
|
1291
1380
|
"isOptional": false,
|
1292
1381
|
"isSpread": false
|
@@ -1763,7 +1852,7 @@
|
|
1763
1852
|
"componentId": {
|
1764
1853
|
"scope": "teambit.workspace",
|
1765
1854
|
"name": "eject",
|
1766
|
-
"version": "1.0.
|
1855
|
+
"version": "1.0.230"
|
1767
1856
|
},
|
1768
1857
|
"taggedModuleExports": []
|
1769
1858
|
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/**
|
2
|
+
* a classic use case of eject is when a user imports a component using `bit import` to update it,
|
3
|
+
* but the user has no intention to have the code as part of the project source code.
|
4
|
+
* the eject provides the option to delete the component locally and install it via the NPM client.
|
5
|
+
*
|
6
|
+
* an implementation note, the entire process is done with rollback in mind.
|
7
|
+
* since installing the component via NPM client is an error prone process, we do it first, before
|
8
|
+
* removing the component files, so then it's easier to rollback.
|
9
|
+
*/
|
10
|
+
import { Workspace } from '@teambit/workspace';
|
11
|
+
import { Consumer } from '@teambit/legacy/dist/consumer';
|
12
|
+
import { ComponentIdList, ComponentID } from '@teambit/component-id';
|
13
|
+
import Component from '@teambit/legacy/dist/consumer/component/consumer-component';
|
14
|
+
import PackageJsonFile from '@teambit/legacy/dist/consumer/component/package-json-file';
|
15
|
+
import { Logger } from '@teambit/logger';
|
16
|
+
import { InstallMain } from '@teambit/install';
|
17
|
+
export type EjectResults = {
|
18
|
+
ejectedComponents: ComponentIdList;
|
19
|
+
failedComponents: FailedComponents;
|
20
|
+
};
|
21
|
+
export type EjectOptions = {
|
22
|
+
force?: boolean;
|
23
|
+
keepFiles?: boolean;
|
24
|
+
skipDependencyInstallation?: boolean;
|
25
|
+
};
|
26
|
+
type FailedComponents = {
|
27
|
+
modifiedComponents: ComponentIdList;
|
28
|
+
stagedComponents: ComponentIdList;
|
29
|
+
notExportedComponents: ComponentIdList;
|
30
|
+
selfHostedExportedComponents: ComponentIdList;
|
31
|
+
};
|
32
|
+
export declare class ComponentsEjector {
|
33
|
+
private workspace;
|
34
|
+
private install;
|
35
|
+
private logger;
|
36
|
+
private componentsIds;
|
37
|
+
private ejectOptions;
|
38
|
+
consumer: Consumer;
|
39
|
+
idsToEject: ComponentIdList;
|
40
|
+
componentsToEject: Component[];
|
41
|
+
notEjectedDependents: Array<{
|
42
|
+
dependent: Component;
|
43
|
+
ejectedDependencies: Component[];
|
44
|
+
}>;
|
45
|
+
failedComponents: FailedComponents;
|
46
|
+
packageJsonFilesBeforeChanges: PackageJsonFile[];
|
47
|
+
constructor(workspace: Workspace, install: InstallMain, logger: Logger, componentsIds: ComponentID[], ejectOptions: EjectOptions);
|
48
|
+
eject(): Promise<EjectResults>;
|
49
|
+
decideWhichComponentsToEject(): Promise<void>;
|
50
|
+
loadComponentsToEject(): Promise<void>;
|
51
|
+
removeComponentsFromNodeModules(): Promise<void>;
|
52
|
+
installPackages(): Promise<void>;
|
53
|
+
getPackagesToInstall(): string[];
|
54
|
+
_buildExceptionMessageWithRollbackData(action: string): string;
|
55
|
+
/**
|
56
|
+
* as part of the 'eject' operation, a component is removed locally. as opposed to the remove
|
57
|
+
* command, in this case, no need to remove the objects from the scope, only remove from the
|
58
|
+
* filesystem, which means, delete the component files, untrack from .bitmap and clean
|
59
|
+
* package.json and bit.json traces.
|
60
|
+
*/
|
61
|
+
private removeComponentsFiles;
|
62
|
+
private untrackComponents;
|
63
|
+
throwEjectError(message: string, originalError: Error): void;
|
64
|
+
_validateIdsHaveScopesAndVersions(): void;
|
65
|
+
}
|
66
|
+
export {};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
+
import { Workspace } from '@teambit/workspace';
|
3
|
+
import { EjectMain } from './eject.main.runtime';
|
4
|
+
export declare class EjectCmd implements Command {
|
5
|
+
private ejectMain;
|
6
|
+
private workspace;
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
extendedDescription: string;
|
10
|
+
helpUrl: string;
|
11
|
+
arguments: {
|
12
|
+
name: string;
|
13
|
+
description: string;
|
14
|
+
}[];
|
15
|
+
alias: string;
|
16
|
+
options: CommandOptions;
|
17
|
+
loader: boolean;
|
18
|
+
group: string;
|
19
|
+
constructor(ejectMain: EjectMain, workspace: Workspace);
|
20
|
+
report([pattern]: [string], { force, json, keepFiles, skipDependencyInstallation, }: {
|
21
|
+
force: boolean;
|
22
|
+
json: boolean;
|
23
|
+
keepFiles: boolean;
|
24
|
+
skipDependencyInstallation?: boolean;
|
25
|
+
}): Promise<string>;
|
26
|
+
}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { EjectResults } from './components-ejector';
|
2
|
+
export declare const successEjectMessage = "successfully ejected the following components";
|
3
|
+
export declare const failureEjectMessage = "failed to eject the following components";
|
4
|
+
export declare function ejectTemplate(ejectResults: EjectResults): string;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { CLIMain } from '@teambit/cli';
|
2
|
+
import { ComponentID } from '@teambit/component-id';
|
3
|
+
import { Logger, LoggerMain } from '@teambit/logger';
|
4
|
+
import { Workspace } from '@teambit/workspace';
|
5
|
+
import { InstallMain } from '@teambit/install';
|
6
|
+
import { EjectOptions, EjectResults } from './components-ejector';
|
7
|
+
export declare class EjectMain {
|
8
|
+
private workspace;
|
9
|
+
private install;
|
10
|
+
private logger;
|
11
|
+
constructor(workspace: Workspace, install: InstallMain, logger: Logger);
|
12
|
+
eject(componentIds: ComponentID[], ejectOptions?: EjectOptions): Promise<EjectResults>;
|
13
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
14
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
15
|
+
static provider([cli, workspace, loggerMain, install]: [CLIMain, Workspace, LoggerMain, InstallMain]): Promise<EjectMain>;
|
16
|
+
}
|
package/dist/index.d.ts
ADDED
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.230/dist/eject.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@1.0.230/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,26 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/eject",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.230",
|
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.230"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"@teambit/component-id": "1.2.0",
|
14
14
|
"@teambit/harmony": "0.4.6",
|
15
|
-
"@teambit/install": "1.0.
|
16
|
-
"@teambit/logger": "0.0.
|
17
|
-
"@teambit/workspace": "1.0.
|
18
|
-
"@teambit/cli": "0.0.
|
15
|
+
"@teambit/install": "1.0.230",
|
16
|
+
"@teambit/logger": "0.0.955",
|
17
|
+
"@teambit/workspace": "1.0.230",
|
18
|
+
"@teambit/cli": "0.0.862"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/mocha": "9.1.0",
|
22
22
|
"chai": "4.3.0",
|
23
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
26
26
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
24
|
-
"composite": true
|
23
|
+
"noImplicitAny": false
|
25
24
|
},
|
26
25
|
"exclude": [
|
27
26
|
"artifacts",
|
@@ -36,19 +35,5 @@
|
|
36
35
|
"include": [
|
37
36
|
"**/*",
|
38
37
|
"**/*.json"
|
39
|
-
],
|
40
|
-
"references": [
|
41
|
-
{
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_install@1.0.228"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
|
49
|
-
},
|
50
|
-
{
|
51
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
52
|
-
}
|
53
38
|
]
|
54
39
|
}
|