@teambit/forking 1.0.257 → 1.0.259

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,803 +14,812 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "forking.main.runtime.ts",
20
- "line": 51,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
22
  },
23
- "signature": "class ForkingMain",
24
23
  "name": "ForkingMain",
25
- "members": [
26
- {
27
- "__schema": "ConstructorSchema",
28
- "location": {
29
- "filePath": "forking.main.runtime.ts",
30
- "line": 52,
31
- "character": 3
32
- },
33
- "signature": "constructor ForkingMain(workspace: Workspace, install: InstallMain, dependencyResolver: DependencyResolverMain, newComponentHelper: NewComponentHelperMain, refactoring: RefactoringMain, pkg: PkgMain): ForkingMain",
34
- "name": "constructor",
35
- "params": [
36
- {
37
- "__schema": "ParameterSchema",
38
- "location": {
39
- "filePath": "forking.main.runtime.ts",
40
- "line": 53,
41
- "character": 5
42
- },
43
- "name": "workspace",
44
- "type": {
45
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
26
+ "location": {
27
+ "filePath": "forking.main.runtime.ts",
28
+ "line": 51,
29
+ "character": 1
30
+ },
31
+ "signature": "class ForkingMain",
32
+ "name": "ForkingMain",
33
+ "members": [
34
+ {
35
+ "__schema": "ConstructorSchema",
36
+ "location": {
37
+ "filePath": "forking.main.runtime.ts",
38
+ "line": 52,
39
+ "character": 3
40
+ },
41
+ "signature": "constructor ForkingMain(workspace: Workspace, install: InstallMain, dependencyResolver: DependencyResolverMain, newComponentHelper: NewComponentHelperMain, refactoring: RefactoringMain, pkg: PkgMain): ForkingMain",
42
+ "name": "constructor",
43
+ "params": [
44
+ {
45
+ "__schema": "ParameterSchema",
46
46
  "location": {
47
47
  "filePath": "forking.main.runtime.ts",
48
48
  "line": 53,
49
- "character": 24
49
+ "character": 5
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": "forking.main.runtime.ts",
64
- "line": 54,
65
- "character": 5
51
+ "name": "workspace",
52
+ "type": {
53
+ "__schema": "TypeRefSchema",
54
+ "location": {
55
+ "filePath": "forking.main.runtime.ts",
56
+ "line": 53,
57
+ "character": 24
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": "forking.main.runtime.ts",
72
72
  "line": 54,
73
- "character": 22
73
+ "character": 5
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": "forking.main.runtime.ts",
88
- "line": 55,
89
- "character": 5
75
+ "name": "install",
76
+ "type": {
77
+ "__schema": "TypeRefSchema",
78
+ "location": {
79
+ "filePath": "forking.main.runtime.ts",
80
+ "line": 54,
81
+ "character": 22
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": "dependencyResolver",
92
- "type": {
93
- "__schema": "TypeRefSchema",
92
+ {
93
+ "__schema": "ParameterSchema",
94
94
  "location": {
95
95
  "filePath": "forking.main.runtime.ts",
96
96
  "line": 55,
97
- "character": 33
97
+ "character": 5
98
98
  },
99
- "name": "DependencyResolverMain",
100
- "componentId": {
101
- "scope": "teambit.dependencies",
102
- "name": "dependency-resolver"
103
- }
104
- },
105
- "isOptional": false,
106
- "isSpread": false
107
- },
108
- {
109
- "__schema": "ParameterSchema",
110
- "location": {
111
- "filePath": "forking.main.runtime.ts",
112
- "line": 56,
113
- "character": 5
99
+ "name": "dependencyResolver",
100
+ "type": {
101
+ "__schema": "TypeRefSchema",
102
+ "location": {
103
+ "filePath": "forking.main.runtime.ts",
104
+ "line": 55,
105
+ "character": 33
106
+ },
107
+ "name": "DependencyResolverMain",
108
+ "componentId": {
109
+ "scope": "teambit.dependencies",
110
+ "name": "dependency-resolver"
111
+ }
112
+ },
113
+ "isOptional": false,
114
+ "isSpread": false
114
115
  },
115
- "name": "newComponentHelper",
116
- "type": {
117
- "__schema": "TypeRefSchema",
116
+ {
117
+ "__schema": "ParameterSchema",
118
118
  "location": {
119
119
  "filePath": "forking.main.runtime.ts",
120
120
  "line": 56,
121
- "character": 33
121
+ "character": 5
122
122
  },
123
- "name": "NewComponentHelperMain",
124
- "componentId": {
125
- "scope": "teambit.component",
126
- "name": "new-component-helper"
127
- }
128
- },
129
- "isOptional": false,
130
- "isSpread": false
131
- },
132
- {
133
- "__schema": "ParameterSchema",
134
- "location": {
135
- "filePath": "forking.main.runtime.ts",
136
- "line": 57,
137
- "character": 5
123
+ "name": "newComponentHelper",
124
+ "type": {
125
+ "__schema": "TypeRefSchema",
126
+ "location": {
127
+ "filePath": "forking.main.runtime.ts",
128
+ "line": 56,
129
+ "character": 33
130
+ },
131
+ "name": "NewComponentHelperMain",
132
+ "componentId": {
133
+ "scope": "teambit.component",
134
+ "name": "new-component-helper"
135
+ }
136
+ },
137
+ "isOptional": false,
138
+ "isSpread": false
138
139
  },
139
- "name": "refactoring",
140
- "type": {
141
- "__schema": "TypeRefSchema",
140
+ {
141
+ "__schema": "ParameterSchema",
142
142
  "location": {
143
143
  "filePath": "forking.main.runtime.ts",
144
144
  "line": 57,
145
- "character": 26
145
+ "character": 5
146
146
  },
147
- "name": "RefactoringMain",
148
- "componentId": {
149
- "scope": "teambit.component",
150
- "name": "refactoring"
151
- }
152
- },
153
- "isOptional": false,
154
- "isSpread": false
155
- },
156
- {
157
- "__schema": "ParameterSchema",
158
- "location": {
159
- "filePath": "forking.main.runtime.ts",
160
- "line": 58,
161
- "character": 5
147
+ "name": "refactoring",
148
+ "type": {
149
+ "__schema": "TypeRefSchema",
150
+ "location": {
151
+ "filePath": "forking.main.runtime.ts",
152
+ "line": 57,
153
+ "character": 26
154
+ },
155
+ "name": "RefactoringMain",
156
+ "componentId": {
157
+ "scope": "teambit.component",
158
+ "name": "refactoring"
159
+ }
160
+ },
161
+ "isOptional": false,
162
+ "isSpread": false
162
163
  },
163
- "name": "pkg",
164
- "type": {
165
- "__schema": "TypeRefSchema",
164
+ {
165
+ "__schema": "ParameterSchema",
166
166
  "location": {
167
167
  "filePath": "forking.main.runtime.ts",
168
168
  "line": 58,
169
- "character": 18
169
+ "character": 5
170
170
  },
171
- "name": "PkgMain",
172
- "componentId": {
173
- "scope": "teambit.pkg",
174
- "name": "pkg"
175
- }
171
+ "name": "pkg",
172
+ "type": {
173
+ "__schema": "TypeRefSchema",
174
+ "location": {
175
+ "filePath": "forking.main.runtime.ts",
176
+ "line": 58,
177
+ "character": 18
178
+ },
179
+ "name": "PkgMain",
180
+ "componentId": {
181
+ "scope": "teambit.pkg",
182
+ "name": "pkg"
183
+ }
184
+ },
185
+ "isOptional": false,
186
+ "isSpread": false
187
+ }
188
+ ],
189
+ "returnType": {
190
+ "__schema": "ThisTypeSchema",
191
+ "location": {
192
+ "filePath": "forking.main.runtime.ts",
193
+ "line": 51,
194
+ "character": 1
176
195
  },
177
- "isOptional": false,
178
- "isSpread": false
179
- }
180
- ],
181
- "returnType": {
182
- "__schema": "ThisTypeSchema",
183
- "location": {
184
- "filePath": "forking.main.runtime.ts",
185
- "line": 51,
186
- "character": 1
196
+ "name": "ForkingMain"
187
197
  },
188
- "name": "ForkingMain"
189
- },
190
- "modifiers": []
191
- },
192
- {
193
- "__schema": "FunctionLikeSchema",
194
- "location": {
195
- "filePath": "forking.main.runtime.ts",
196
- "line": 66,
197
- "character": 3
198
+ "modifiers": []
198
199
  },
199
- "doc": {
200
- "__schema": "DocSchema",
200
+ {
201
+ "__schema": "FunctionLikeSchema",
201
202
  "location": {
202
203
  "filePath": "forking.main.runtime.ts",
203
- "line": 61,
204
+ "line": 66,
204
205
  "character": 3
205
206
  },
206
- "raw": "/**\n * create a new copy of existing/remote component.\n * the new component holds a reference to the old one for future reference.\n * if refactor option is enable, change the source-code to update all dependencies with the new name.\n */",
207
- "comment": "create a new copy of existing/remote component.\nthe new component holds a reference to the old one for future reference.\nif refactor option is enable, change the source-code to update all dependencies with the new name."
208
- },
209
- "signature": "(method) ForkingMain.fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID>",
210
- "name": "fork",
211
- "params": [
212
- {
213
- "__schema": "ParameterSchema",
207
+ "doc": {
208
+ "__schema": "DocSchema",
214
209
  "location": {
215
210
  "filePath": "forking.main.runtime.ts",
216
- "line": 66,
217
- "character": 14
211
+ "line": 61,
212
+ "character": 3
218
213
  },
219
- "name": "sourceId",
220
- "type": {
221
- "__schema": "KeywordTypeSchema",
214
+ "raw": "/**\n * create a new copy of existing/remote component.\n * the new component holds a reference to the old one for future reference.\n * if refactor option is enable, change the source-code to update all dependencies with the new name.\n */",
215
+ "comment": "create a new copy of existing/remote component.\nthe new component holds a reference to the old one for future reference.\nif refactor option is enable, change the source-code to update all dependencies with the new name."
216
+ },
217
+ "signature": "(method) ForkingMain.fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID>",
218
+ "name": "fork",
219
+ "params": [
220
+ {
221
+ "__schema": "ParameterSchema",
222
222
  "location": {
223
223
  "filePath": "forking.main.runtime.ts",
224
224
  "line": 66,
225
- "character": 24
225
+ "character": 14
226
226
  },
227
- "name": "string"
228
- },
229
- "isOptional": false,
230
- "isSpread": false
231
- },
232
- {
233
- "__schema": "ParameterSchema",
234
- "location": {
235
- "filePath": "forking.main.runtime.ts",
236
- "line": 66,
237
- "character": 32
227
+ "name": "sourceId",
228
+ "type": {
229
+ "__schema": "KeywordTypeSchema",
230
+ "location": {
231
+ "filePath": "forking.main.runtime.ts",
232
+ "line": 66,
233
+ "character": 24
234
+ },
235
+ "name": "string"
236
+ },
237
+ "isOptional": false,
238
+ "isSpread": false
238
239
  },
239
- "name": "targetId",
240
- "type": {
241
- "__schema": "KeywordTypeSchema",
240
+ {
241
+ "__schema": "ParameterSchema",
242
242
  "location": {
243
243
  "filePath": "forking.main.runtime.ts",
244
244
  "line": 66,
245
- "character": 43
245
+ "character": 32
246
246
  },
247
- "name": "string"
248
- },
249
- "isOptional": true,
250
- "isSpread": false
251
- },
252
- {
253
- "__schema": "ParameterSchema",
254
- "location": {
255
- "filePath": "forking.main.runtime.ts",
256
- "line": 66,
257
- "character": 51
258
- },
259
- "name": "options",
260
- "type": {
261
- "__schema": "TypeRefSchema",
262
- "location": {
263
- "filePath": "forking.main.runtime.ts",
264
- "line": 66,
265
- "character": 61
247
+ "name": "targetId",
248
+ "type": {
249
+ "__schema": "KeywordTypeSchema",
250
+ "location": {
251
+ "filePath": "forking.main.runtime.ts",
252
+ "line": 66,
253
+ "character": 43
254
+ },
255
+ "name": "string"
266
256
  },
267
- "name": "ForkOptions",
268
- "internalFilePath": "fork.cmd.ts"
257
+ "isOptional": true,
258
+ "isSpread": false
269
259
  },
270
- "isOptional": true,
271
- "isSpread": false
272
- }
273
- ],
274
- "returnType": {
275
- "__schema": "TypeRefSchema",
276
- "location": {
277
- "filePath": "forking.main.runtime.ts",
278
- "line": 66,
279
- "character": 75
280
- },
281
- "name": "Promise",
282
- "typeArgs": [
283
260
  {
284
- "__schema": "TypeRefSchema",
261
+ "__schema": "ParameterSchema",
285
262
  "location": {
286
263
  "filePath": "forking.main.runtime.ts",
287
264
  "line": 66,
288
- "character": 83
265
+ "character": 51
289
266
  },
290
- "name": "ComponentID",
291
- "componentId": {
292
- "scope": "teambit.component",
293
- "name": "component-id",
294
- "version": "1.2.0"
295
- }
267
+ "name": "options",
268
+ "type": {
269
+ "__schema": "TypeRefSchema",
270
+ "location": {
271
+ "filePath": "forking.main.runtime.ts",
272
+ "line": 66,
273
+ "character": 61
274
+ },
275
+ "name": "ForkOptions",
276
+ "internalFilePath": "fork.cmd.ts"
277
+ },
278
+ "isOptional": true,
279
+ "isSpread": false
296
280
  }
281
+ ],
282
+ "returnType": {
283
+ "__schema": "TypeRefSchema",
284
+ "location": {
285
+ "filePath": "forking.main.runtime.ts",
286
+ "line": 66,
287
+ "character": 75
288
+ },
289
+ "name": "Promise",
290
+ "typeArgs": [
291
+ {
292
+ "__schema": "TypeRefSchema",
293
+ "location": {
294
+ "filePath": "forking.main.runtime.ts",
295
+ "line": 66,
296
+ "character": 83
297
+ },
298
+ "name": "ComponentID",
299
+ "componentId": {
300
+ "scope": "teambit.component",
301
+ "name": "component-id",
302
+ "version": "1.2.0"
303
+ }
304
+ }
305
+ ]
306
+ },
307
+ "modifiers": [
308
+ "async"
297
309
  ]
298
310
  },
299
- "modifiers": [
300
- "async"
301
- ]
302
- },
303
- {
304
- "__schema": "FunctionLikeSchema",
305
- "location": {
306
- "filePath": "forking.main.runtime.ts",
307
- "line": 84,
308
- "character": 3
309
- },
310
- "doc": {
311
- "__schema": "DocSchema",
311
+ {
312
+ "__schema": "FunctionLikeSchema",
312
313
  "location": {
313
314
  "filePath": "forking.main.runtime.ts",
314
- "line": 81,
315
+ "line": 84,
315
316
  "character": 3
316
317
  },
317
- "raw": "/**\n * get the forking data, such as the source where a component was forked from\n */",
318
- "comment": "get the forking data, such as the source where a component was forked from"
319
- },
320
- "signature": "(method) ForkingMain.getForkInfo(component: Component): ForkInfo | null",
321
- "name": "getForkInfo",
322
- "params": [
323
- {
324
- "__schema": "ParameterSchema",
318
+ "doc": {
319
+ "__schema": "DocSchema",
325
320
  "location": {
326
321
  "filePath": "forking.main.runtime.ts",
327
- "line": 84,
328
- "character": 15
322
+ "line": 81,
323
+ "character": 3
329
324
  },
330
- "name": "component",
331
- "type": {
332
- "__schema": "TypeRefSchema",
325
+ "raw": "/**\n * get the forking data, such as the source where a component was forked from\n */",
326
+ "comment": "get the forking data, such as the source where a component was forked from"
327
+ },
328
+ "signature": "(method) ForkingMain.getForkInfo(component: Component): ForkInfo | null",
329
+ "name": "getForkInfo",
330
+ "params": [
331
+ {
332
+ "__schema": "ParameterSchema",
333
333
  "location": {
334
334
  "filePath": "forking.main.runtime.ts",
335
335
  "line": 84,
336
- "character": 26
336
+ "character": 15
337
337
  },
338
- "name": "Component",
339
- "componentId": {
340
- "scope": "teambit.component",
341
- "name": "component"
342
- }
338
+ "name": "component",
339
+ "type": {
340
+ "__schema": "TypeRefSchema",
341
+ "location": {
342
+ "filePath": "forking.main.runtime.ts",
343
+ "line": 84,
344
+ "character": 26
345
+ },
346
+ "name": "Component",
347
+ "componentId": {
348
+ "scope": "teambit.component",
349
+ "name": "component"
350
+ }
351
+ },
352
+ "isOptional": false,
353
+ "isSpread": false
354
+ }
355
+ ],
356
+ "returnType": {
357
+ "__schema": "TypeUnionSchema",
358
+ "location": {
359
+ "filePath": "forking.main.runtime.ts",
360
+ "line": 84,
361
+ "character": 38
343
362
  },
344
- "isOptional": false,
345
- "isSpread": false
346
- }
347
- ],
348
- "returnType": {
349
- "__schema": "TypeUnionSchema",
363
+ "types": [
364
+ {
365
+ "__schema": "TypeRefSchema",
366
+ "location": {
367
+ "filePath": "forking.main.runtime.ts",
368
+ "line": 84,
369
+ "character": 38
370
+ },
371
+ "name": "ForkInfo",
372
+ "internalFilePath": "forking.main.runtime.ts"
373
+ },
374
+ {
375
+ "__schema": "LiteralTypeSchema",
376
+ "location": {
377
+ "filePath": "forking.main.runtime.ts",
378
+ "line": 84,
379
+ "character": 49
380
+ },
381
+ "name": "null"
382
+ }
383
+ ]
384
+ },
385
+ "modifiers": []
386
+ },
387
+ {
388
+ "__schema": "FunctionLikeSchema",
350
389
  "location": {
351
390
  "filePath": "forking.main.runtime.ts",
352
- "line": 84,
353
- "character": 38
391
+ "line": 92,
392
+ "character": 3
354
393
  },
355
- "types": [
394
+ "signature": "(method) ForkingMain.forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<void>",
395
+ "name": "forkMultipleFromRemote",
396
+ "params": [
356
397
  {
357
- "__schema": "TypeRefSchema",
398
+ "__schema": "ParameterSchema",
358
399
  "location": {
359
400
  "filePath": "forking.main.runtime.ts",
360
- "line": 84,
361
- "character": 38
401
+ "line": 92,
402
+ "character": 32
403
+ },
404
+ "name": "componentsToFork",
405
+ "type": {
406
+ "__schema": "TypeRefSchema",
407
+ "location": {
408
+ "filePath": "forking.main.runtime.ts",
409
+ "line": 92,
410
+ "character": 50
411
+ },
412
+ "name": "MultipleComponentsToFork",
413
+ "internalFilePath": "forking.main.runtime.ts"
362
414
  },
363
- "name": "ForkInfo",
364
- "internalFilePath": "forking.main.runtime.ts"
415
+ "isOptional": false,
416
+ "isSpread": false
365
417
  },
366
418
  {
367
- "__schema": "LiteralTypeSchema",
419
+ "__schema": "ParameterSchema",
368
420
  "location": {
369
421
  "filePath": "forking.main.runtime.ts",
370
- "line": 84,
371
- "character": 49
422
+ "line": 92,
423
+ "character": 76
424
+ },
425
+ "name": "options",
426
+ "type": {
427
+ "__schema": "TypeRefSchema",
428
+ "location": {
429
+ "filePath": "forking.main.runtime.ts",
430
+ "line": 92,
431
+ "character": 85
432
+ },
433
+ "name": "MultipleForkOptions",
434
+ "internalFilePath": "forking.main.runtime.ts"
372
435
  },
373
- "name": "null"
436
+ "isOptional": true,
437
+ "defaultValue": "{}",
438
+ "isSpread": false
374
439
  }
375
- ]
376
- },
377
- "modifiers": []
378
- },
379
- {
380
- "__schema": "FunctionLikeSchema",
381
- "location": {
382
- "filePath": "forking.main.runtime.ts",
383
- "line": 92,
384
- "character": 3
385
- },
386
- "signature": "(method) ForkingMain.forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<void>",
387
- "name": "forkMultipleFromRemote",
388
- "params": [
389
- {
390
- "__schema": "ParameterSchema",
440
+ ],
441
+ "returnType": {
442
+ "__schema": "InferenceTypeSchema",
391
443
  "location": {
392
444
  "filePath": "forking.main.runtime.ts",
393
445
  "line": 92,
394
- "character": 32
395
- },
396
- "name": "componentsToFork",
397
- "type": {
398
- "__schema": "TypeRefSchema",
399
- "location": {
400
- "filePath": "forking.main.runtime.ts",
401
- "line": 92,
402
- "character": 50
403
- },
404
- "name": "MultipleComponentsToFork",
405
- "internalFilePath": "forking.main.runtime.ts"
446
+ "character": 3
406
447
  },
407
- "isOptional": false,
408
- "isSpread": false
448
+ "type": "Promise<void>"
409
449
  },
410
- {
411
- "__schema": "ParameterSchema",
450
+ "modifiers": [
451
+ "async"
452
+ ]
453
+ },
454
+ {
455
+ "__schema": "FunctionLikeSchema",
456
+ "location": {
457
+ "filePath": "forking.main.runtime.ts",
458
+ "line": 187,
459
+ "character": 3
460
+ },
461
+ "doc": {
462
+ "__schema": "DocSchema",
412
463
  "location": {
413
464
  "filePath": "forking.main.runtime.ts",
414
- "line": 92,
415
- "character": 76
465
+ "line": 184,
466
+ "character": 3
416
467
  },
417
- "name": "options",
418
- "type": {
419
- "__schema": "TypeRefSchema",
468
+ "raw": "/**\n * fork all components of the given scope\n */",
469
+ "comment": "fork all components of the given scope"
470
+ },
471
+ "signature": "(method) ForkingMain.forkScope(originalScope: string, newScope: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
472
+ "name": "forkScope",
473
+ "params": [
474
+ {
475
+ "__schema": "ParameterSchema",
420
476
  "location": {
421
477
  "filePath": "forking.main.runtime.ts",
422
- "line": 92,
423
- "character": 85
478
+ "line": 188,
479
+ "character": 5
424
480
  },
425
- "name": "MultipleForkOptions",
426
- "internalFilePath": "forking.main.runtime.ts"
427
- },
428
- "isOptional": true,
429
- "defaultValue": "{}",
430
- "isSpread": false
431
- }
432
- ],
433
- "returnType": {
434
- "__schema": "InferenceTypeSchema",
435
- "location": {
436
- "filePath": "forking.main.runtime.ts",
437
- "line": 92,
438
- "character": 3
439
- },
440
- "type": "Promise<void>"
441
- },
442
- "modifiers": [
443
- "async"
444
- ]
445
- },
446
- {
447
- "__schema": "FunctionLikeSchema",
448
- "location": {
449
- "filePath": "forking.main.runtime.ts",
450
- "line": 187,
451
- "character": 3
452
- },
453
- "doc": {
454
- "__schema": "DocSchema",
455
- "location": {
456
- "filePath": "forking.main.runtime.ts",
457
- "line": 184,
458
- "character": 3
459
- },
460
- "raw": "/**\n * fork all components of the given scope\n */",
461
- "comment": "fork all components of the given scope"
462
- },
463
- "signature": "(method) ForkingMain.forkScope(originalScope: string, newScope: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
464
- "name": "forkScope",
465
- "params": [
466
- {
467
- "__schema": "ParameterSchema",
468
- "location": {
469
- "filePath": "forking.main.runtime.ts",
470
- "line": 188,
471
- "character": 5
472
- },
473
- "name": "originalScope",
474
- "type": {
475
- "__schema": "KeywordTypeSchema",
476
- "location": {
477
- "filePath": "forking.main.runtime.ts",
478
- "line": 188,
479
- "character": 20
481
+ "name": "originalScope",
482
+ "type": {
483
+ "__schema": "KeywordTypeSchema",
484
+ "location": {
485
+ "filePath": "forking.main.runtime.ts",
486
+ "line": 188,
487
+ "character": 20
488
+ },
489
+ "name": "string"
480
490
  },
481
- "name": "string"
482
- },
483
- "isOptional": false,
484
- "isSpread": false
485
- },
486
- {
487
- "__schema": "ParameterSchema",
488
- "location": {
489
- "filePath": "forking.main.runtime.ts",
490
- "line": 189,
491
- "character": 5
491
+ "isOptional": false,
492
+ "isSpread": false
492
493
  },
493
- "name": "newScope",
494
- "type": {
495
- "__schema": "KeywordTypeSchema",
494
+ {
495
+ "__schema": "ParameterSchema",
496
496
  "location": {
497
497
  "filePath": "forking.main.runtime.ts",
498
498
  "line": 189,
499
- "character": 15
499
+ "character": 5
500
500
  },
501
- "name": "string"
502
- },
503
- "isOptional": false,
504
- "isSpread": false
505
- },
506
- {
507
- "__schema": "ParameterSchema",
508
- "location": {
509
- "filePath": "forking.main.runtime.ts",
510
- "line": 190,
511
- "character": 5
501
+ "name": "newScope",
502
+ "type": {
503
+ "__schema": "KeywordTypeSchema",
504
+ "location": {
505
+ "filePath": "forking.main.runtime.ts",
506
+ "line": 189,
507
+ "character": 15
508
+ },
509
+ "name": "string"
510
+ },
511
+ "isOptional": false,
512
+ "isSpread": false
512
513
  },
513
- "name": "pattern",
514
- "type": {
515
- "__schema": "KeywordTypeSchema",
514
+ {
515
+ "__schema": "ParameterSchema",
516
516
  "location": {
517
517
  "filePath": "forking.main.runtime.ts",
518
518
  "line": 190,
519
- "character": 15
519
+ "character": 5
520
520
  },
521
- "name": "string"
522
- },
523
- "isOptional": true,
524
- "isSpread": false
525
- },
526
- {
527
- "__schema": "ParameterSchema",
528
- "location": {
529
- "filePath": "forking.main.runtime.ts",
530
- "line": 191,
531
- "character": 5
532
- },
533
- "name": "options",
534
- "type": {
535
- "__schema": "TypeRefSchema",
536
- "location": {
537
- "filePath": "forking.main.runtime.ts",
538
- "line": 191,
539
- "character": 15
521
+ "name": "pattern",
522
+ "type": {
523
+ "__schema": "KeywordTypeSchema",
524
+ "location": {
525
+ "filePath": "forking.main.runtime.ts",
526
+ "line": 190,
527
+ "character": 15
528
+ },
529
+ "name": "string"
540
530
  },
541
- "name": "ScopeForkOptions",
542
- "internalFilePath": "scope-fork.cmd.ts"
531
+ "isOptional": true,
532
+ "isSpread": false
543
533
  },
544
- "isOptional": true,
545
- "isSpread": false
546
- }
547
- ],
548
- "returnType": {
549
- "__schema": "TypeRefSchema",
550
- "location": {
551
- "filePath": "forking.main.runtime.ts",
552
- "line": 192,
553
- "character": 6
554
- },
555
- "name": "Promise",
556
- "typeArgs": [
557
534
  {
558
- "__schema": "TypeArraySchema",
535
+ "__schema": "ParameterSchema",
559
536
  "location": {
560
537
  "filePath": "forking.main.runtime.ts",
561
- "line": 192,
562
- "character": 14
538
+ "line": 191,
539
+ "character": 5
563
540
  },
541
+ "name": "options",
564
542
  "type": {
565
543
  "__schema": "TypeRefSchema",
544
+ "location": {
545
+ "filePath": "forking.main.runtime.ts",
546
+ "line": 191,
547
+ "character": 15
548
+ },
549
+ "name": "ScopeForkOptions",
550
+ "internalFilePath": "scope-fork.cmd.ts"
551
+ },
552
+ "isOptional": true,
553
+ "isSpread": false
554
+ }
555
+ ],
556
+ "returnType": {
557
+ "__schema": "TypeRefSchema",
558
+ "location": {
559
+ "filePath": "forking.main.runtime.ts",
560
+ "line": 192,
561
+ "character": 6
562
+ },
563
+ "name": "Promise",
564
+ "typeArgs": [
565
+ {
566
+ "__schema": "TypeArraySchema",
566
567
  "location": {
567
568
  "filePath": "forking.main.runtime.ts",
568
569
  "line": 192,
569
570
  "character": 14
570
571
  },
571
- "name": "ComponentID",
572
- "componentId": {
573
- "scope": "teambit.component",
574
- "name": "component-id",
575
- "version": "1.2.0"
572
+ "type": {
573
+ "__schema": "TypeRefSchema",
574
+ "location": {
575
+ "filePath": "forking.main.runtime.ts",
576
+ "line": 192,
577
+ "character": 14
578
+ },
579
+ "name": "ComponentID",
580
+ "componentId": {
581
+ "scope": "teambit.component",
582
+ "name": "component-id",
583
+ "version": "1.2.0"
584
+ }
576
585
  }
577
586
  }
578
- }
587
+ ]
588
+ },
589
+ "modifiers": [
590
+ "async"
579
591
  ]
580
592
  },
581
- "modifiers": [
582
- "async"
583
- ]
584
- },
585
- {
586
- "__schema": "VariableLikeSchema",
587
- "location": {
588
- "filePath": "forking.main.runtime.ts",
589
- "line": 350,
590
- "character": 3
591
- },
592
- "signature": "(property) ForkingMain.slots: never[]",
593
- "name": "slots",
594
- "type": {
595
- "__schema": "InferenceTypeSchema",
593
+ {
594
+ "__schema": "VariableLikeSchema",
596
595
  "location": {
597
596
  "filePath": "forking.main.runtime.ts",
598
597
  "line": 350,
599
598
  "character": 3
600
599
  },
601
- "type": "never[]"
602
- },
603
- "isOptional": true,
604
- "defaultValue": "[]"
605
- },
606
- {
607
- "__schema": "VariableLikeSchema",
608
- "location": {
609
- "filePath": "forking.main.runtime.ts",
610
- "line": 351,
611
- "character": 3
600
+ "signature": "(property) ForkingMain.slots: never[]",
601
+ "name": "slots",
602
+ "type": {
603
+ "__schema": "InferenceTypeSchema",
604
+ "location": {
605
+ "filePath": "forking.main.runtime.ts",
606
+ "line": 350,
607
+ "character": 3
608
+ },
609
+ "type": "never[]"
610
+ },
611
+ "isOptional": true,
612
+ "defaultValue": "[]"
612
613
  },
613
- "signature": "(property) ForkingMain.dependencies: Aspect[]",
614
- "name": "dependencies",
615
- "type": {
616
- "__schema": "InferenceTypeSchema",
614
+ {
615
+ "__schema": "VariableLikeSchema",
617
616
  "location": {
618
617
  "filePath": "forking.main.runtime.ts",
619
618
  "line": 351,
620
619
  "character": 3
621
620
  },
622
- "type": "Aspect[]"
623
- },
624
- "isOptional": true,
625
- "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ]"
626
- },
627
- {
628
- "__schema": "VariableLikeSchema",
629
- "location": {
630
- "filePath": "forking.main.runtime.ts",
631
- "line": 362,
632
- "character": 3
621
+ "signature": "(property) ForkingMain.dependencies: Aspect[]",
622
+ "name": "dependencies",
623
+ "type": {
624
+ "__schema": "InferenceTypeSchema",
625
+ "location": {
626
+ "filePath": "forking.main.runtime.ts",
627
+ "line": 351,
628
+ "character": 3
629
+ },
630
+ "type": "Aspect[]"
631
+ },
632
+ "isOptional": true,
633
+ "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ]"
633
634
  },
634
- "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
635
- "name": "runtime",
636
- "type": {
637
- "__schema": "InferenceTypeSchema",
635
+ {
636
+ "__schema": "VariableLikeSchema",
638
637
  "location": {
639
638
  "filePath": "forking.main.runtime.ts",
640
639
  "line": 362,
641
640
  "character": 3
642
641
  },
643
- "type": "RuntimeDefinition"
644
- },
645
- "isOptional": true,
646
- "defaultValue": "MainRuntime"
647
- },
648
- {
649
- "__schema": "FunctionLikeSchema",
650
- "location": {
651
- "filePath": "forking.main.runtime.ts",
652
- "line": 363,
653
- "character": 3
654
- },
655
- "signature": "(method) ForkingMain.provider([cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
656
- "name": "provider",
657
- "params": [
658
- {
659
- "__schema": "ParameterSchema",
642
+ "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
643
+ "name": "runtime",
644
+ "type": {
645
+ "__schema": "InferenceTypeSchema",
660
646
  "location": {
661
647
  "filePath": "forking.main.runtime.ts",
662
- "line": 363,
663
- "character": 25
648
+ "line": 362,
649
+ "character": 3
664
650
  },
665
- "name": "[ cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
666
- "type": {
667
- "__schema": "TupleTypeSchema",
651
+ "type": "RuntimeDefinition"
652
+ },
653
+ "isOptional": true,
654
+ "defaultValue": "MainRuntime"
655
+ },
656
+ {
657
+ "__schema": "FunctionLikeSchema",
658
+ "location": {
659
+ "filePath": "forking.main.runtime.ts",
660
+ "line": 363,
661
+ "character": 3
662
+ },
663
+ "signature": "(method) ForkingMain.provider([cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
664
+ "name": "provider",
665
+ "params": [
666
+ {
667
+ "__schema": "ParameterSchema",
668
668
  "location": {
669
669
  "filePath": "forking.main.runtime.ts",
670
- "line": 373,
671
- "character": 6
670
+ "line": 363,
671
+ "character": 25
672
672
  },
673
- "elements": [
674
- {
675
- "__schema": "TypeRefSchema",
676
- "location": {
677
- "filePath": "forking.main.runtime.ts",
678
- "line": 374,
679
- "character": 5
680
- },
681
- "name": "CLIMain",
682
- "componentId": {
683
- "scope": "teambit.harmony",
684
- "name": "cli"
685
- }
673
+ "name": "[ cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
674
+ "type": {
675
+ "__schema": "TupleTypeSchema",
676
+ "location": {
677
+ "filePath": "forking.main.runtime.ts",
678
+ "line": 373,
679
+ "character": 6
686
680
  },
687
- {
688
- "__schema": "TypeRefSchema",
689
- "location": {
690
- "filePath": "forking.main.runtime.ts",
691
- "line": 375,
692
- "character": 5
681
+ "elements": [
682
+ {
683
+ "__schema": "TypeRefSchema",
684
+ "location": {
685
+ "filePath": "forking.main.runtime.ts",
686
+ "line": 374,
687
+ "character": 5
688
+ },
689
+ "name": "CLIMain",
690
+ "componentId": {
691
+ "scope": "teambit.harmony",
692
+ "name": "cli"
693
+ }
693
694
  },
694
- "name": "Workspace",
695
- "componentId": {
696
- "scope": "teambit.workspace",
697
- "name": "workspace"
698
- }
699
- },
700
- {
701
- "__schema": "TypeRefSchema",
702
- "location": {
703
- "filePath": "forking.main.runtime.ts",
704
- "line": 376,
705
- "character": 5
695
+ {
696
+ "__schema": "TypeRefSchema",
697
+ "location": {
698
+ "filePath": "forking.main.runtime.ts",
699
+ "line": 375,
700
+ "character": 5
701
+ },
702
+ "name": "Workspace",
703
+ "componentId": {
704
+ "scope": "teambit.workspace",
705
+ "name": "workspace"
706
+ }
706
707
  },
707
- "name": "DependencyResolverMain",
708
- "componentId": {
709
- "scope": "teambit.dependencies",
710
- "name": "dependency-resolver"
711
- }
712
- },
713
- {
714
- "__schema": "TypeRefSchema",
715
- "location": {
716
- "filePath": "forking.main.runtime.ts",
717
- "line": 377,
718
- "character": 5
708
+ {
709
+ "__schema": "TypeRefSchema",
710
+ "location": {
711
+ "filePath": "forking.main.runtime.ts",
712
+ "line": 376,
713
+ "character": 5
714
+ },
715
+ "name": "DependencyResolverMain",
716
+ "componentId": {
717
+ "scope": "teambit.dependencies",
718
+ "name": "dependency-resolver"
719
+ }
719
720
  },
720
- "name": "ComponentMain",
721
- "componentId": {
722
- "scope": "teambit.component",
723
- "name": "component"
724
- }
725
- },
726
- {
727
- "__schema": "TypeRefSchema",
728
- "location": {
729
- "filePath": "forking.main.runtime.ts",
730
- "line": 378,
731
- "character": 5
721
+ {
722
+ "__schema": "TypeRefSchema",
723
+ "location": {
724
+ "filePath": "forking.main.runtime.ts",
725
+ "line": 377,
726
+ "character": 5
727
+ },
728
+ "name": "ComponentMain",
729
+ "componentId": {
730
+ "scope": "teambit.component",
731
+ "name": "component"
732
+ }
732
733
  },
733
- "name": "NewComponentHelperMain",
734
- "componentId": {
735
- "scope": "teambit.component",
736
- "name": "new-component-helper"
737
- }
738
- },
739
- {
740
- "__schema": "TypeRefSchema",
741
- "location": {
742
- "filePath": "forking.main.runtime.ts",
743
- "line": 379,
744
- "character": 5
734
+ {
735
+ "__schema": "TypeRefSchema",
736
+ "location": {
737
+ "filePath": "forking.main.runtime.ts",
738
+ "line": 378,
739
+ "character": 5
740
+ },
741
+ "name": "NewComponentHelperMain",
742
+ "componentId": {
743
+ "scope": "teambit.component",
744
+ "name": "new-component-helper"
745
+ }
745
746
  },
746
- "name": "GraphqlMain",
747
- "componentId": {
748
- "scope": "teambit.harmony",
749
- "name": "graphql"
750
- }
751
- },
752
- {
753
- "__schema": "TypeRefSchema",
754
- "location": {
755
- "filePath": "forking.main.runtime.ts",
756
- "line": 380,
757
- "character": 5
747
+ {
748
+ "__schema": "TypeRefSchema",
749
+ "location": {
750
+ "filePath": "forking.main.runtime.ts",
751
+ "line": 379,
752
+ "character": 5
753
+ },
754
+ "name": "GraphqlMain",
755
+ "componentId": {
756
+ "scope": "teambit.harmony",
757
+ "name": "graphql"
758
+ }
758
759
  },
759
- "name": "RefactoringMain",
760
- "componentId": {
761
- "scope": "teambit.component",
762
- "name": "refactoring"
763
- }
764
- },
765
- {
766
- "__schema": "TypeRefSchema",
767
- "location": {
768
- "filePath": "forking.main.runtime.ts",
769
- "line": 381,
770
- "character": 5
760
+ {
761
+ "__schema": "TypeRefSchema",
762
+ "location": {
763
+ "filePath": "forking.main.runtime.ts",
764
+ "line": 380,
765
+ "character": 5
766
+ },
767
+ "name": "RefactoringMain",
768
+ "componentId": {
769
+ "scope": "teambit.component",
770
+ "name": "refactoring"
771
+ }
771
772
  },
772
- "name": "PkgMain",
773
- "componentId": {
774
- "scope": "teambit.pkg",
775
- "name": "pkg"
776
- }
777
- },
778
- {
779
- "__schema": "TypeRefSchema",
780
- "location": {
781
- "filePath": "forking.main.runtime.ts",
782
- "line": 382,
783
- "character": 5
773
+ {
774
+ "__schema": "TypeRefSchema",
775
+ "location": {
776
+ "filePath": "forking.main.runtime.ts",
777
+ "line": 381,
778
+ "character": 5
779
+ },
780
+ "name": "PkgMain",
781
+ "componentId": {
782
+ "scope": "teambit.pkg",
783
+ "name": "pkg"
784
+ }
784
785
  },
785
- "name": "InstallMain",
786
- "componentId": {
787
- "scope": "teambit.workspace",
788
- "name": "install"
786
+ {
787
+ "__schema": "TypeRefSchema",
788
+ "location": {
789
+ "filePath": "forking.main.runtime.ts",
790
+ "line": 382,
791
+ "character": 5
792
+ },
793
+ "name": "InstallMain",
794
+ "componentId": {
795
+ "scope": "teambit.workspace",
796
+ "name": "install"
797
+ }
789
798
  }
790
- }
791
- ]
799
+ ]
800
+ },
801
+ "isOptional": false,
802
+ "isSpread": false
803
+ }
804
+ ],
805
+ "returnType": {
806
+ "__schema": "InferenceTypeSchema",
807
+ "location": {
808
+ "filePath": "forking.main.runtime.ts",
809
+ "line": 363,
810
+ "character": 3
792
811
  },
793
- "isOptional": false,
794
- "isSpread": false
795
- }
796
- ],
797
- "returnType": {
798
- "__schema": "InferenceTypeSchema",
799
- "location": {
800
- "filePath": "forking.main.runtime.ts",
801
- "line": 363,
802
- "character": 3
812
+ "type": "Promise<ForkingMain>"
803
813
  },
804
- "type": "Promise<ForkingMain>"
805
- },
806
- "modifiers": [
807
- "static",
808
- "async"
809
- ]
810
- }
811
- ],
812
- "extendsNodes": [],
813
- "implementNodes": []
814
+ "modifiers": [
815
+ "static",
816
+ "async"
817
+ ]
818
+ }
819
+ ],
820
+ "extendsNodes": [],
821
+ "implementNodes": []
822
+ }
814
823
  },
815
824
  {
816
825
  "__schema": "UnImplementedSchema",
@@ -823,30 +832,39 @@
823
832
  "type": "Identifier"
824
833
  },
825
834
  {
826
- "__schema": "VariableLikeSchema",
835
+ "__schema": "ExportSchema",
827
836
  "location": {
828
- "filePath": "forking.aspect.ts",
829
- "line": 3,
830
- "character": 14
837
+ "filePath": "index.ts",
838
+ "line": 5,
839
+ "character": 10
831
840
  },
832
- "signature": "const ForkingAspect: Aspect",
833
841
  "name": "ForkingAspect",
834
- "type": {
835
- "__schema": "TypeRefSchema",
842
+ "exportNode": {
843
+ "__schema": "VariableLikeSchema",
836
844
  "location": {
837
845
  "filePath": "forking.aspect.ts",
838
846
  "line": 3,
839
847
  "character": 14
840
848
  },
841
- "name": "Aspect",
842
- "componentId": {
843
- "scope": "teambit.harmony",
844
- "name": "harmony",
845
- "version": "0.4.6"
846
- }
847
- },
848
- "isOptional": false,
849
- "defaultValue": "Aspect.create({\n id: 'teambit.component/forking',\n})"
849
+ "signature": "const ForkingAspect: Aspect",
850
+ "name": "ForkingAspect",
851
+ "type": {
852
+ "__schema": "TypeRefSchema",
853
+ "location": {
854
+ "filePath": "forking.aspect.ts",
855
+ "line": 3,
856
+ "character": 14
857
+ },
858
+ "name": "Aspect",
859
+ "componentId": {
860
+ "scope": "teambit.harmony",
861
+ "name": "harmony",
862
+ "version": "0.4.6"
863
+ }
864
+ },
865
+ "isOptional": false,
866
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/forking',\n})"
867
+ }
850
868
  }
851
869
  ],
852
870
  "internals": []
@@ -2148,7 +2166,7 @@
2148
2166
  "componentId": {
2149
2167
  "scope": "teambit.component",
2150
2168
  "name": "forking",
2151
- "version": "1.0.257"
2169
+ "version": "1.0.259"
2152
2170
  },
2153
2171
  "taggedModuleExports": []
2154
2172
  }