@teambit/eject 1.0.257 → 1.0.259

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.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.workspace/eject@1.0.259" 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={87613:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.257",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(87613);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})()));
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={8135:(e,t,o)=>{var n={id:"teambit.workspace/eject@1.0.259",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:()=>f,overview:()=>l});var e={};o.r(e),o.d(e,{default:()=>s});var t=o(8135);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={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)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.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],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -14,499 +14,544 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "eject.main.runtime.ts",
20
- "line": 10,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 1,
21
+ "character": 15
22
22
  },
23
- "signature": "class EjectMain",
24
23
  "name": "EjectMain",
25
- "members": [
26
- {
27
- "__schema": "ConstructorSchema",
28
- "location": {
29
- "filePath": "eject.main.runtime.ts",
30
- "line": 11,
31
- "character": 3
32
- },
33
- "signature": "constructor EjectMain(workspace: Workspace, install: InstallMain, logger: Logger): EjectMain",
34
- "name": "constructor",
35
- "params": [
36
- {
37
- "__schema": "ParameterSchema",
38
- "location": {
39
- "filePath": "eject.main.runtime.ts",
40
- "line": 11,
41
- "character": 15
42
- },
43
- "name": "workspace",
44
- "type": {
45
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
26
+ "location": {
27
+ "filePath": "eject.main.runtime.ts",
28
+ "line": 10,
29
+ "character": 1
30
+ },
31
+ "signature": "class EjectMain",
32
+ "name": "EjectMain",
33
+ "members": [
34
+ {
35
+ "__schema": "ConstructorSchema",
36
+ "location": {
37
+ "filePath": "eject.main.runtime.ts",
38
+ "line": 11,
39
+ "character": 3
40
+ },
41
+ "signature": "constructor EjectMain(workspace: Workspace, install: InstallMain, logger: Logger): EjectMain",
42
+ "name": "constructor",
43
+ "params": [
44
+ {
45
+ "__schema": "ParameterSchema",
46
46
  "location": {
47
47
  "filePath": "eject.main.runtime.ts",
48
48
  "line": 11,
49
- "character": 34
49
+ "character": 15
50
50
  },
51
- "name": "Workspace",
52
- "componentId": {
53
- "scope": "teambit.workspace",
54
- "name": "workspace"
55
- }
56
- },
57
- "isOptional": false,
58
- "isSpread": false
59
- },
60
- {
61
- "__schema": "ParameterSchema",
62
- "location": {
63
- "filePath": "eject.main.runtime.ts",
64
- "line": 11,
65
- "character": 45
51
+ "name": "workspace",
52
+ "type": {
53
+ "__schema": "TypeRefSchema",
54
+ "location": {
55
+ "filePath": "eject.main.runtime.ts",
56
+ "line": 11,
57
+ "character": 34
58
+ },
59
+ "name": "Workspace",
60
+ "componentId": {
61
+ "scope": "teambit.workspace",
62
+ "name": "workspace"
63
+ }
64
+ },
65
+ "isOptional": false,
66
+ "isSpread": false
66
67
  },
67
- "name": "install",
68
- "type": {
69
- "__schema": "TypeRefSchema",
68
+ {
69
+ "__schema": "ParameterSchema",
70
70
  "location": {
71
71
  "filePath": "eject.main.runtime.ts",
72
72
  "line": 11,
73
- "character": 62
73
+ "character": 45
74
74
  },
75
- "name": "InstallMain",
76
- "componentId": {
77
- "scope": "teambit.workspace",
78
- "name": "install"
79
- }
80
- },
81
- "isOptional": false,
82
- "isSpread": false
83
- },
84
- {
85
- "__schema": "ParameterSchema",
86
- "location": {
87
- "filePath": "eject.main.runtime.ts",
88
- "line": 11,
89
- "character": 75
75
+ "name": "install",
76
+ "type": {
77
+ "__schema": "TypeRefSchema",
78
+ "location": {
79
+ "filePath": "eject.main.runtime.ts",
80
+ "line": 11,
81
+ "character": 62
82
+ },
83
+ "name": "InstallMain",
84
+ "componentId": {
85
+ "scope": "teambit.workspace",
86
+ "name": "install"
87
+ }
88
+ },
89
+ "isOptional": false,
90
+ "isSpread": false
90
91
  },
91
- "name": "logger",
92
- "type": {
93
- "__schema": "TypeRefSchema",
92
+ {
93
+ "__schema": "ParameterSchema",
94
94
  "location": {
95
95
  "filePath": "eject.main.runtime.ts",
96
96
  "line": 11,
97
- "character": 91
97
+ "character": 75
98
98
  },
99
- "name": "Logger",
100
- "componentId": {
101
- "scope": "teambit.harmony",
102
- "name": "logger"
103
- }
99
+ "name": "logger",
100
+ "type": {
101
+ "__schema": "TypeRefSchema",
102
+ "location": {
103
+ "filePath": "eject.main.runtime.ts",
104
+ "line": 11,
105
+ "character": 91
106
+ },
107
+ "name": "Logger",
108
+ "componentId": {
109
+ "scope": "teambit.harmony",
110
+ "name": "logger"
111
+ }
112
+ },
113
+ "isOptional": false,
114
+ "isSpread": false
115
+ }
116
+ ],
117
+ "returnType": {
118
+ "__schema": "ThisTypeSchema",
119
+ "location": {
120
+ "filePath": "eject.main.runtime.ts",
121
+ "line": 10,
122
+ "character": 1
104
123
  },
105
- "isOptional": false,
106
- "isSpread": false
107
- }
108
- ],
109
- "returnType": {
110
- "__schema": "ThisTypeSchema",
124
+ "name": "EjectMain"
125
+ },
126
+ "modifiers": []
127
+ },
128
+ {
129
+ "__schema": "FunctionLikeSchema",
111
130
  "location": {
112
131
  "filePath": "eject.main.runtime.ts",
113
- "line": 10,
114
- "character": 1
132
+ "line": 12,
133
+ "character": 3
115
134
  },
116
- "name": "EjectMain"
117
- },
118
- "modifiers": []
119
- },
120
- {
121
- "__schema": "FunctionLikeSchema",
122
- "location": {
123
- "filePath": "eject.main.runtime.ts",
124
- "line": 12,
125
- "character": 3
126
- },
127
- "signature": "(method) EjectMain.eject(componentIds: ComponentID[], ejectOptions?: EjectOptions): Promise<EjectResults>",
128
- "name": "eject",
129
- "params": [
130
- {
131
- "__schema": "ParameterSchema",
132
- "location": {
133
- "filePath": "eject.main.runtime.ts",
134
- "line": 12,
135
- "character": 15
136
- },
137
- "name": "componentIds",
138
- "type": {
139
- "__schema": "TypeArraySchema",
135
+ "signature": "(method) EjectMain.eject(componentIds: ComponentID[], ejectOptions?: EjectOptions): Promise<EjectResults>",
136
+ "name": "eject",
137
+ "params": [
138
+ {
139
+ "__schema": "ParameterSchema",
140
140
  "location": {
141
141
  "filePath": "eject.main.runtime.ts",
142
142
  "line": 12,
143
- "character": 29
143
+ "character": 15
144
144
  },
145
+ "name": "componentIds",
145
146
  "type": {
146
- "__schema": "TypeRefSchema",
147
+ "__schema": "TypeArraySchema",
147
148
  "location": {
148
149
  "filePath": "eject.main.runtime.ts",
149
150
  "line": 12,
150
151
  "character": 29
151
152
  },
152
- "name": "ComponentID",
153
- "componentId": {
154
- "scope": "teambit.component",
155
- "name": "component-id",
156
- "version": "1.2.0"
153
+ "type": {
154
+ "__schema": "TypeRefSchema",
155
+ "location": {
156
+ "filePath": "eject.main.runtime.ts",
157
+ "line": 12,
158
+ "character": 29
159
+ },
160
+ "name": "ComponentID",
161
+ "componentId": {
162
+ "scope": "teambit.component",
163
+ "name": "component-id",
164
+ "version": "1.2.0"
165
+ }
157
166
  }
158
- }
159
- },
160
- "isOptional": false,
161
- "isSpread": false
162
- },
163
- {
164
- "__schema": "ParameterSchema",
165
- "location": {
166
- "filePath": "eject.main.runtime.ts",
167
- "line": 12,
168
- "character": 44
169
- },
170
- "name": "ejectOptions",
171
- "type": {
172
- "__schema": "TypeRefSchema",
173
- "location": {
174
- "filePath": "eject.main.runtime.ts",
175
- "line": 12,
176
- "character": 58
177
167
  },
178
- "name": "EjectOptions",
179
- "internalFilePath": "components-ejector.ts"
168
+ "isOptional": false,
169
+ "isSpread": false
180
170
  },
181
- "isOptional": true,
182
- "defaultValue": "{}",
183
- "isSpread": false
184
- }
185
- ],
186
- "returnType": {
187
- "__schema": "TypeRefSchema",
188
- "location": {
189
- "filePath": "eject.main.runtime.ts",
190
- "line": 12,
191
- "character": 78
192
- },
193
- "name": "Promise",
194
- "typeArgs": [
195
171
  {
196
- "__schema": "TypeRefSchema",
172
+ "__schema": "ParameterSchema",
197
173
  "location": {
198
174
  "filePath": "eject.main.runtime.ts",
199
175
  "line": 12,
200
- "character": 86
176
+ "character": 44
177
+ },
178
+ "name": "ejectOptions",
179
+ "type": {
180
+ "__schema": "TypeRefSchema",
181
+ "location": {
182
+ "filePath": "eject.main.runtime.ts",
183
+ "line": 12,
184
+ "character": 58
185
+ },
186
+ "name": "EjectOptions",
187
+ "internalFilePath": "components-ejector.ts"
201
188
  },
202
- "name": "EjectResults"
189
+ "isOptional": true,
190
+ "defaultValue": "{}",
191
+ "isSpread": false
203
192
  }
193
+ ],
194
+ "returnType": {
195
+ "__schema": "TypeRefSchema",
196
+ "location": {
197
+ "filePath": "eject.main.runtime.ts",
198
+ "line": 12,
199
+ "character": 78
200
+ },
201
+ "name": "Promise",
202
+ "typeArgs": [
203
+ {
204
+ "__schema": "TypeRefSchema",
205
+ "location": {
206
+ "filePath": "eject.main.runtime.ts",
207
+ "line": 12,
208
+ "character": 86
209
+ },
210
+ "name": "EjectResults"
211
+ }
212
+ ]
213
+ },
214
+ "modifiers": [
215
+ "async"
204
216
  ]
205
217
  },
206
- "modifiers": [
207
- "async"
208
- ]
209
- },
210
- {
211
- "__schema": "VariableLikeSchema",
212
- "location": {
213
- "filePath": "eject.main.runtime.ts",
214
- "line": 24,
215
- "character": 3
216
- },
217
- "signature": "(property) EjectMain.runtime: RuntimeDefinition",
218
- "name": "runtime",
219
- "type": {
220
- "__schema": "InferenceTypeSchema",
218
+ {
219
+ "__schema": "VariableLikeSchema",
221
220
  "location": {
222
221
  "filePath": "eject.main.runtime.ts",
223
222
  "line": 24,
224
223
  "character": 3
225
224
  },
226
- "type": "RuntimeDefinition"
227
- },
228
- "isOptional": true,
229
- "defaultValue": "MainRuntime"
230
- },
231
- {
232
- "__schema": "VariableLikeSchema",
233
- "location": {
234
- "filePath": "eject.main.runtime.ts",
235
- "line": 26,
236
- "character": 3
225
+ "signature": "(property) EjectMain.runtime: RuntimeDefinition",
226
+ "name": "runtime",
227
+ "type": {
228
+ "__schema": "InferenceTypeSchema",
229
+ "location": {
230
+ "filePath": "eject.main.runtime.ts",
231
+ "line": 24,
232
+ "character": 3
233
+ },
234
+ "type": "RuntimeDefinition"
235
+ },
236
+ "isOptional": true,
237
+ "defaultValue": "MainRuntime"
237
238
  },
238
- "signature": "(property) EjectMain.dependencies: Aspect[]",
239
- "name": "dependencies",
240
- "type": {
241
- "__schema": "InferenceTypeSchema",
239
+ {
240
+ "__schema": "VariableLikeSchema",
242
241
  "location": {
243
242
  "filePath": "eject.main.runtime.ts",
244
243
  "line": 26,
245
244
  "character": 3
246
245
  },
247
- "type": "Aspect[]"
248
- },
249
- "isOptional": true,
250
- "defaultValue": "[CLIAspect, WorkspaceAspect, LoggerAspect, InstallAspect]"
251
- },
252
- {
253
- "__schema": "FunctionLikeSchema",
254
- "location": {
255
- "filePath": "eject.main.runtime.ts",
256
- "line": 28,
257
- "character": 3
258
- },
259
- "signature": "(method) EjectMain.provider([cli, workspace, loggerMain, install]: [CLIMain, Workspace, LoggerMain, InstallMain]): Promise<EjectMain>",
260
- "name": "provider",
261
- "params": [
262
- {
263
- "__schema": "ParameterSchema",
246
+ "signature": "(property) EjectMain.dependencies: Aspect[]",
247
+ "name": "dependencies",
248
+ "type": {
249
+ "__schema": "InferenceTypeSchema",
264
250
  "location": {
265
251
  "filePath": "eject.main.runtime.ts",
266
- "line": 28,
267
- "character": 25
252
+ "line": 26,
253
+ "character": 3
268
254
  },
269
- "name": "[ cli, workspace, loggerMain, install ]",
270
- "type": {
271
- "__schema": "TupleTypeSchema",
255
+ "type": "Aspect[]"
256
+ },
257
+ "isOptional": true,
258
+ "defaultValue": "[CLIAspect, WorkspaceAspect, LoggerAspect, InstallAspect]"
259
+ },
260
+ {
261
+ "__schema": "FunctionLikeSchema",
262
+ "location": {
263
+ "filePath": "eject.main.runtime.ts",
264
+ "line": 28,
265
+ "character": 3
266
+ },
267
+ "signature": "(method) EjectMain.provider([cli, workspace, loggerMain, install]: [CLIMain, Workspace, LoggerMain, InstallMain]): Promise<EjectMain>",
268
+ "name": "provider",
269
+ "params": [
270
+ {
271
+ "__schema": "ParameterSchema",
272
272
  "location": {
273
273
  "filePath": "eject.main.runtime.ts",
274
274
  "line": 28,
275
- "character": 64
275
+ "character": 25
276
276
  },
277
- "elements": [
278
- {
279
- "__schema": "TypeRefSchema",
280
- "location": {
281
- "filePath": "eject.main.runtime.ts",
282
- "line": 28,
283
- "character": 65
284
- },
285
- "name": "CLIMain",
286
- "componentId": {
287
- "scope": "teambit.harmony",
288
- "name": "cli"
289
- }
277
+ "name": "[ cli, workspace, loggerMain, install ]",
278
+ "type": {
279
+ "__schema": "TupleTypeSchema",
280
+ "location": {
281
+ "filePath": "eject.main.runtime.ts",
282
+ "line": 28,
283
+ "character": 64
290
284
  },
291
- {
292
- "__schema": "TypeRefSchema",
293
- "location": {
294
- "filePath": "eject.main.runtime.ts",
295
- "line": 28,
296
- "character": 74
285
+ "elements": [
286
+ {
287
+ "__schema": "TypeRefSchema",
288
+ "location": {
289
+ "filePath": "eject.main.runtime.ts",
290
+ "line": 28,
291
+ "character": 65
292
+ },
293
+ "name": "CLIMain",
294
+ "componentId": {
295
+ "scope": "teambit.harmony",
296
+ "name": "cli"
297
+ }
297
298
  },
298
- "name": "Workspace",
299
- "componentId": {
300
- "scope": "teambit.workspace",
301
- "name": "workspace"
302
- }
303
- },
304
- {
305
- "__schema": "TypeRefSchema",
306
- "location": {
307
- "filePath": "eject.main.runtime.ts",
308
- "line": 28,
309
- "character": 85
299
+ {
300
+ "__schema": "TypeRefSchema",
301
+ "location": {
302
+ "filePath": "eject.main.runtime.ts",
303
+ "line": 28,
304
+ "character": 74
305
+ },
306
+ "name": "Workspace",
307
+ "componentId": {
308
+ "scope": "teambit.workspace",
309
+ "name": "workspace"
310
+ }
310
311
  },
311
- "name": "LoggerMain",
312
- "componentId": {
313
- "scope": "teambit.harmony",
314
- "name": "logger"
315
- }
316
- },
317
- {
318
- "__schema": "TypeRefSchema",
319
- "location": {
320
- "filePath": "eject.main.runtime.ts",
321
- "line": 28,
322
- "character": 97
312
+ {
313
+ "__schema": "TypeRefSchema",
314
+ "location": {
315
+ "filePath": "eject.main.runtime.ts",
316
+ "line": 28,
317
+ "character": 85
318
+ },
319
+ "name": "LoggerMain",
320
+ "componentId": {
321
+ "scope": "teambit.harmony",
322
+ "name": "logger"
323
+ }
323
324
  },
324
- "name": "InstallMain",
325
- "componentId": {
326
- "scope": "teambit.workspace",
327
- "name": "install"
325
+ {
326
+ "__schema": "TypeRefSchema",
327
+ "location": {
328
+ "filePath": "eject.main.runtime.ts",
329
+ "line": 28,
330
+ "character": 97
331
+ },
332
+ "name": "InstallMain",
333
+ "componentId": {
334
+ "scope": "teambit.workspace",
335
+ "name": "install"
336
+ }
328
337
  }
329
- }
330
- ]
338
+ ]
339
+ },
340
+ "isOptional": false,
341
+ "isSpread": false
342
+ }
343
+ ],
344
+ "returnType": {
345
+ "__schema": "InferenceTypeSchema",
346
+ "location": {
347
+ "filePath": "eject.main.runtime.ts",
348
+ "line": 28,
349
+ "character": 3
331
350
  },
332
- "isOptional": false,
333
- "isSpread": false
334
- }
335
- ],
336
- "returnType": {
337
- "__schema": "InferenceTypeSchema",
338
- "location": {
339
- "filePath": "eject.main.runtime.ts",
340
- "line": 28,
341
- "character": 3
351
+ "type": "Promise<EjectMain>"
342
352
  },
343
- "type": "Promise<EjectMain>"
344
- },
345
- "modifiers": [
346
- "static",
347
- "async"
348
- ]
349
- }
350
- ],
351
- "extendsNodes": [],
352
- "implementNodes": []
353
+ "modifiers": [
354
+ "static",
355
+ "async"
356
+ ]
357
+ }
358
+ ],
359
+ "extendsNodes": [],
360
+ "implementNodes": []
361
+ }
353
362
  },
354
363
  {
355
- "__schema": "TypeSchema",
364
+ "__schema": "ExportSchema",
356
365
  "location": {
357
- "filePath": "components-ejector.ts",
358
- "line": 24,
359
- "character": 1
366
+ "filePath": "index.ts",
367
+ "line": 2,
368
+ "character": 15
360
369
  },
361
- "signature": "type EjectResults = {\n ejectedComponents: ComponentIdList;\n failedComponents: FailedComponents;\n}",
362
370
  "name": "EjectResults",
363
- "type": {
364
- "__schema": "TypeLiteralSchema",
371
+ "exportNode": {
372
+ "__schema": "TypeSchema",
365
373
  "location": {
366
374
  "filePath": "components-ejector.ts",
367
375
  "line": 24,
368
- "character": 28
376
+ "character": 1
369
377
  },
370
- "members": [
371
- {
372
- "__schema": "VariableLikeSchema",
373
- "location": {
374
- "filePath": "components-ejector.ts",
375
- "line": 25,
376
- "character": 3
377
- },
378
- "signature": "(property) ejectedComponents: ComponentIdList",
379
- "name": "ejectedComponents",
380
- "type": {
381
- "__schema": "TypeRefSchema",
378
+ "signature": "type EjectResults = {\n ejectedComponents: ComponentIdList;\n failedComponents: FailedComponents;\n}",
379
+ "name": "EjectResults",
380
+ "type": {
381
+ "__schema": "TypeLiteralSchema",
382
+ "location": {
383
+ "filePath": "components-ejector.ts",
384
+ "line": 24,
385
+ "character": 28
386
+ },
387
+ "members": [
388
+ {
389
+ "__schema": "VariableLikeSchema",
382
390
  "location": {
383
391
  "filePath": "components-ejector.ts",
384
392
  "line": 25,
385
393
  "character": 3
386
394
  },
387
- "name": "ComponentIdList",
388
- "componentId": {
389
- "scope": "teambit.component",
390
- "name": "component-id",
391
- "version": "1.2.0"
392
- }
393
- },
394
- "isOptional": false
395
- },
396
- {
397
- "__schema": "VariableLikeSchema",
398
- "location": {
399
- "filePath": "components-ejector.ts",
400
- "line": 26,
401
- "character": 3
395
+ "signature": "(property) ejectedComponents: ComponentIdList",
396
+ "name": "ejectedComponents",
397
+ "type": {
398
+ "__schema": "TypeRefSchema",
399
+ "location": {
400
+ "filePath": "components-ejector.ts",
401
+ "line": 25,
402
+ "character": 3
403
+ },
404
+ "name": "ComponentIdList",
405
+ "componentId": {
406
+ "scope": "teambit.component",
407
+ "name": "component-id",
408
+ "version": "1.2.0"
409
+ }
410
+ },
411
+ "isOptional": false
402
412
  },
403
- "signature": "(property) failedComponents: FailedComponents",
404
- "name": "failedComponents",
405
- "type": {
406
- "__schema": "TypeRefSchema",
413
+ {
414
+ "__schema": "VariableLikeSchema",
407
415
  "location": {
408
416
  "filePath": "components-ejector.ts",
409
417
  "line": 26,
410
418
  "character": 3
411
419
  },
412
- "name": "FailedComponents",
413
- "internalFilePath": "components-ejector.ts"
414
- },
415
- "isOptional": false
416
- }
417
- ]
420
+ "signature": "(property) failedComponents: FailedComponents",
421
+ "name": "failedComponents",
422
+ "type": {
423
+ "__schema": "TypeRefSchema",
424
+ "location": {
425
+ "filePath": "components-ejector.ts",
426
+ "line": 26,
427
+ "character": 3
428
+ },
429
+ "name": "FailedComponents",
430
+ "internalFilePath": "components-ejector.ts"
431
+ },
432
+ "isOptional": false
433
+ }
434
+ ]
435
+ }
418
436
  }
419
437
  },
420
438
  {
421
- "__schema": "VariableLikeSchema",
439
+ "__schema": "ExportSchema",
422
440
  "location": {
423
- "filePath": "eject-template.ts",
424
- "line": 6,
425
- "character": 14
441
+ "filePath": "index.ts",
442
+ "line": 3,
443
+ "character": 10
426
444
  },
427
- "signature": "const successEjectMessage: \"successfully ejected the following components\"",
428
445
  "name": "successEjectMessage",
429
- "type": {
430
- "__schema": "InferenceTypeSchema",
446
+ "exportNode": {
447
+ "__schema": "VariableLikeSchema",
431
448
  "location": {
432
449
  "filePath": "eject-template.ts",
433
450
  "line": 6,
434
451
  "character": 14
435
452
  },
436
- "type": "\"successfully ejected the following components\""
437
- },
438
- "isOptional": false,
439
- "defaultValue": "'successfully ejected the following components'"
453
+ "signature": "const successEjectMessage: \"successfully ejected the following components\"",
454
+ "name": "successEjectMessage",
455
+ "type": {
456
+ "__schema": "InferenceTypeSchema",
457
+ "location": {
458
+ "filePath": "eject-template.ts",
459
+ "line": 6,
460
+ "character": 14
461
+ },
462
+ "type": "\"successfully ejected the following components\""
463
+ },
464
+ "isOptional": false,
465
+ "defaultValue": "'successfully ejected the following components'"
466
+ }
440
467
  },
441
468
  {
442
- "__schema": "FunctionLikeSchema",
469
+ "__schema": "ExportSchema",
443
470
  "location": {
444
- "filePath": "eject-template.ts",
445
- "line": 9,
446
- "character": 1
471
+ "filePath": "index.ts",
472
+ "line": 3,
473
+ "character": 31
447
474
  },
448
- "signature": "function ejectTemplate(ejectResults: EjectResults): string",
449
475
  "name": "ejectTemplate",
450
- "params": [
451
- {
452
- "__schema": "ParameterSchema",
453
- "location": {
454
- "filePath": "eject-template.ts",
455
- "line": 9,
456
- "character": 31
457
- },
458
- "name": "ejectResults",
459
- "type": {
460
- "__schema": "TypeRefSchema",
476
+ "exportNode": {
477
+ "__schema": "FunctionLikeSchema",
478
+ "location": {
479
+ "filePath": "eject-template.ts",
480
+ "line": 9,
481
+ "character": 1
482
+ },
483
+ "signature": "function ejectTemplate(ejectResults: EjectResults): string",
484
+ "name": "ejectTemplate",
485
+ "params": [
486
+ {
487
+ "__schema": "ParameterSchema",
461
488
  "location": {
462
489
  "filePath": "eject-template.ts",
463
490
  "line": 9,
464
- "character": 45
491
+ "character": 31
492
+ },
493
+ "name": "ejectResults",
494
+ "type": {
495
+ "__schema": "TypeRefSchema",
496
+ "location": {
497
+ "filePath": "eject-template.ts",
498
+ "line": 9,
499
+ "character": 45
500
+ },
501
+ "name": "EjectResults"
465
502
  },
466
- "name": "EjectResults"
503
+ "isOptional": false,
504
+ "isSpread": false
505
+ }
506
+ ],
507
+ "returnType": {
508
+ "__schema": "KeywordTypeSchema",
509
+ "location": {
510
+ "filePath": "eject-template.ts",
511
+ "line": 9,
512
+ "character": 60
467
513
  },
468
- "isOptional": false,
469
- "isSpread": false
470
- }
471
- ],
472
- "returnType": {
473
- "__schema": "KeywordTypeSchema",
474
- "location": {
475
- "filePath": "eject-template.ts",
476
- "line": 9,
477
- "character": 60
514
+ "name": "string"
478
515
  },
479
- "name": "string"
480
- },
481
- "modifiers": [
482
- "export"
483
- ]
516
+ "modifiers": [
517
+ "export"
518
+ ]
519
+ }
484
520
  },
485
521
  {
486
- "__schema": "VariableLikeSchema",
522
+ "__schema": "ExportSchema",
487
523
  "location": {
488
- "filePath": "eject.aspect.ts",
489
- "line": 3,
490
- "character": 14
524
+ "filePath": "index.ts",
525
+ "line": 4,
526
+ "character": 10
491
527
  },
492
- "signature": "const EjectAspect: Aspect",
493
528
  "name": "EjectAspect",
494
- "type": {
495
- "__schema": "TypeRefSchema",
529
+ "exportNode": {
530
+ "__schema": "VariableLikeSchema",
496
531
  "location": {
497
532
  "filePath": "eject.aspect.ts",
498
533
  "line": 3,
499
534
  "character": 14
500
535
  },
501
- "name": "Aspect",
502
- "componentId": {
503
- "scope": "teambit.harmony",
504
- "name": "harmony",
505
- "version": "0.4.6"
506
- }
507
- },
508
- "isOptional": false,
509
- "defaultValue": "Aspect.create({\n id: 'teambit.workspace/eject',\n})"
536
+ "signature": "const EjectAspect: Aspect",
537
+ "name": "EjectAspect",
538
+ "type": {
539
+ "__schema": "TypeRefSchema",
540
+ "location": {
541
+ "filePath": "eject.aspect.ts",
542
+ "line": 3,
543
+ "character": 14
544
+ },
545
+ "name": "Aspect",
546
+ "componentId": {
547
+ "scope": "teambit.harmony",
548
+ "name": "harmony",
549
+ "version": "0.4.6"
550
+ }
551
+ },
552
+ "isOptional": false,
553
+ "defaultValue": "Aspect.create({\n id: 'teambit.workspace/eject',\n})"
554
+ }
510
555
  }
511
556
  ],
512
557
  "internals": []
@@ -1852,7 +1897,7 @@
1852
1897
  "componentId": {
1853
1898
  "scope": "teambit.workspace",
1854
1899
  "name": "eject",
1855
- "version": "1.0.257"
1900
+ "version": "1.0.259"
1856
1901
  },
1857
1902
  "taggedModuleExports": []
1858
1903
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.257/dist/eject.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.257/dist/eject.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.259/dist/eject.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_eject@1.0.259/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,21 +1,21 @@
1
1
  {
2
2
  "name": "@teambit/eject",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
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.257"
9
+ "version": "1.0.259"
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.257",
16
- "@teambit/logger": "0.0.955",
17
- "@teambit/workspace": "1.0.257",
18
- "@teambit/cli": "0.0.862"
15
+ "@teambit/install": "1.0.259",
16
+ "@teambit/logger": "0.0.956",
17
+ "@teambit/workspace": "1.0.259",
18
+ "@teambit/cli": "0.0.863"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/mocha": "9.1.0",