@teambit/forking 1.0.258 → 1.0.260

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,13 +22,803 @@
22
22
  },
23
23
  "name": "ForkingMain",
24
24
  "exportNode": {
25
- "__schema": "TypeRefSchema",
25
+ "__schema": "ClassSchema",
26
26
  "location": {
27
- "filePath": "index.ts",
28
- "line": 3,
29
- "character": 15
27
+ "filePath": "forking.main.runtime.ts",
28
+ "line": 51,
29
+ "character": 1
30
30
  },
31
- "name": "ForkingMain"
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
+ "location": {
47
+ "filePath": "forking.main.runtime.ts",
48
+ "line": 53,
49
+ "character": 5
50
+ },
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
67
+ },
68
+ {
69
+ "__schema": "ParameterSchema",
70
+ "location": {
71
+ "filePath": "forking.main.runtime.ts",
72
+ "line": 54,
73
+ "character": 5
74
+ },
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
91
+ },
92
+ {
93
+ "__schema": "ParameterSchema",
94
+ "location": {
95
+ "filePath": "forking.main.runtime.ts",
96
+ "line": 55,
97
+ "character": 5
98
+ },
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
115
+ },
116
+ {
117
+ "__schema": "ParameterSchema",
118
+ "location": {
119
+ "filePath": "forking.main.runtime.ts",
120
+ "line": 56,
121
+ "character": 5
122
+ },
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
139
+ },
140
+ {
141
+ "__schema": "ParameterSchema",
142
+ "location": {
143
+ "filePath": "forking.main.runtime.ts",
144
+ "line": 57,
145
+ "character": 5
146
+ },
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
163
+ },
164
+ {
165
+ "__schema": "ParameterSchema",
166
+ "location": {
167
+ "filePath": "forking.main.runtime.ts",
168
+ "line": 58,
169
+ "character": 5
170
+ },
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
195
+ },
196
+ "name": "ForkingMain"
197
+ },
198
+ "modifiers": []
199
+ },
200
+ {
201
+ "__schema": "FunctionLikeSchema",
202
+ "location": {
203
+ "filePath": "forking.main.runtime.ts",
204
+ "line": 66,
205
+ "character": 3
206
+ },
207
+ "doc": {
208
+ "__schema": "DocSchema",
209
+ "location": {
210
+ "filePath": "forking.main.runtime.ts",
211
+ "line": 61,
212
+ "character": 3
213
+ },
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
+ "location": {
223
+ "filePath": "forking.main.runtime.ts",
224
+ "line": 66,
225
+ "character": 14
226
+ },
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
239
+ },
240
+ {
241
+ "__schema": "ParameterSchema",
242
+ "location": {
243
+ "filePath": "forking.main.runtime.ts",
244
+ "line": 66,
245
+ "character": 32
246
+ },
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"
256
+ },
257
+ "isOptional": true,
258
+ "isSpread": false
259
+ },
260
+ {
261
+ "__schema": "ParameterSchema",
262
+ "location": {
263
+ "filePath": "forking.main.runtime.ts",
264
+ "line": 66,
265
+ "character": 51
266
+ },
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
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"
309
+ ]
310
+ },
311
+ {
312
+ "__schema": "FunctionLikeSchema",
313
+ "location": {
314
+ "filePath": "forking.main.runtime.ts",
315
+ "line": 84,
316
+ "character": 3
317
+ },
318
+ "doc": {
319
+ "__schema": "DocSchema",
320
+ "location": {
321
+ "filePath": "forking.main.runtime.ts",
322
+ "line": 81,
323
+ "character": 3
324
+ },
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
+ "location": {
334
+ "filePath": "forking.main.runtime.ts",
335
+ "line": 84,
336
+ "character": 15
337
+ },
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
362
+ },
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",
389
+ "location": {
390
+ "filePath": "forking.main.runtime.ts",
391
+ "line": 92,
392
+ "character": 3
393
+ },
394
+ "signature": "(method) ForkingMain.forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<void>",
395
+ "name": "forkMultipleFromRemote",
396
+ "params": [
397
+ {
398
+ "__schema": "ParameterSchema",
399
+ "location": {
400
+ "filePath": "forking.main.runtime.ts",
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"
414
+ },
415
+ "isOptional": false,
416
+ "isSpread": false
417
+ },
418
+ {
419
+ "__schema": "ParameterSchema",
420
+ "location": {
421
+ "filePath": "forking.main.runtime.ts",
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"
435
+ },
436
+ "isOptional": true,
437
+ "defaultValue": "{}",
438
+ "isSpread": false
439
+ }
440
+ ],
441
+ "returnType": {
442
+ "__schema": "InferenceTypeSchema",
443
+ "location": {
444
+ "filePath": "forking.main.runtime.ts",
445
+ "line": 92,
446
+ "character": 3
447
+ },
448
+ "type": "Promise<void>"
449
+ },
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",
463
+ "location": {
464
+ "filePath": "forking.main.runtime.ts",
465
+ "line": 184,
466
+ "character": 3
467
+ },
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",
476
+ "location": {
477
+ "filePath": "forking.main.runtime.ts",
478
+ "line": 188,
479
+ "character": 5
480
+ },
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"
490
+ },
491
+ "isOptional": false,
492
+ "isSpread": false
493
+ },
494
+ {
495
+ "__schema": "ParameterSchema",
496
+ "location": {
497
+ "filePath": "forking.main.runtime.ts",
498
+ "line": 189,
499
+ "character": 5
500
+ },
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
513
+ },
514
+ {
515
+ "__schema": "ParameterSchema",
516
+ "location": {
517
+ "filePath": "forking.main.runtime.ts",
518
+ "line": 190,
519
+ "character": 5
520
+ },
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"
530
+ },
531
+ "isOptional": true,
532
+ "isSpread": false
533
+ },
534
+ {
535
+ "__schema": "ParameterSchema",
536
+ "location": {
537
+ "filePath": "forking.main.runtime.ts",
538
+ "line": 191,
539
+ "character": 5
540
+ },
541
+ "name": "options",
542
+ "type": {
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",
567
+ "location": {
568
+ "filePath": "forking.main.runtime.ts",
569
+ "line": 192,
570
+ "character": 14
571
+ },
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
+ }
585
+ }
586
+ }
587
+ ]
588
+ },
589
+ "modifiers": [
590
+ "async"
591
+ ]
592
+ },
593
+ {
594
+ "__schema": "VariableLikeSchema",
595
+ "location": {
596
+ "filePath": "forking.main.runtime.ts",
597
+ "line": 350,
598
+ "character": 3
599
+ },
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": "[]"
613
+ },
614
+ {
615
+ "__schema": "VariableLikeSchema",
616
+ "location": {
617
+ "filePath": "forking.main.runtime.ts",
618
+ "line": 351,
619
+ "character": 3
620
+ },
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 ]"
634
+ },
635
+ {
636
+ "__schema": "VariableLikeSchema",
637
+ "location": {
638
+ "filePath": "forking.main.runtime.ts",
639
+ "line": 362,
640
+ "character": 3
641
+ },
642
+ "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
643
+ "name": "runtime",
644
+ "type": {
645
+ "__schema": "InferenceTypeSchema",
646
+ "location": {
647
+ "filePath": "forking.main.runtime.ts",
648
+ "line": 362,
649
+ "character": 3
650
+ },
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
+ "location": {
669
+ "filePath": "forking.main.runtime.ts",
670
+ "line": 363,
671
+ "character": 25
672
+ },
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
680
+ },
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
+ }
694
+ },
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
+ }
707
+ },
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
+ }
720
+ },
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
+ }
733
+ },
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
+ }
746
+ },
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
+ }
759
+ },
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
+ }
772
+ },
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
+ }
785
+ },
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
+ }
798
+ }
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
811
+ },
812
+ "type": "Promise<ForkingMain>"
813
+ },
814
+ "modifiers": [
815
+ "static",
816
+ "async"
817
+ ]
818
+ }
819
+ ],
820
+ "extendsNodes": [],
821
+ "implementNodes": []
32
822
  }
33
823
  },
34
824
  {
@@ -50,23 +840,1333 @@
50
840
  },
51
841
  "name": "ForkingAspect",
52
842
  "exportNode": {
53
- "__schema": "TypeRefSchema",
843
+ "__schema": "VariableLikeSchema",
54
844
  "location": {
55
- "filePath": "index.ts",
56
- "line": 5,
57
- "character": 10
845
+ "filePath": "forking.aspect.ts",
846
+ "line": 3,
847
+ "character": 14
58
848
  },
59
- "name": "ForkingAspect"
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})"
60
867
  }
61
868
  }
62
869
  ],
63
870
  "internals": []
64
871
  },
65
- "internals": [],
872
+ "internals": [
873
+ {
874
+ "__schema": "ModuleSchema",
875
+ "location": {
876
+ "filePath": "forking.main.runtime.ts",
877
+ "line": 1,
878
+ "character": 1
879
+ },
880
+ "exports": [
881
+ {
882
+ "__schema": "TypeSchema",
883
+ "location": {
884
+ "filePath": "forking.main.runtime.ts",
885
+ "line": 25,
886
+ "character": 1
887
+ },
888
+ "signature": "type ForkInfo = {\n forkedFrom: ComponentID;\n}",
889
+ "name": "ForkInfo",
890
+ "type": {
891
+ "__schema": "TypeLiteralSchema",
892
+ "location": {
893
+ "filePath": "forking.main.runtime.ts",
894
+ "line": 25,
895
+ "character": 24
896
+ },
897
+ "members": [
898
+ {
899
+ "__schema": "VariableLikeSchema",
900
+ "location": {
901
+ "filePath": "forking.main.runtime.ts",
902
+ "line": 26,
903
+ "character": 3
904
+ },
905
+ "signature": "(property) forkedFrom: ComponentID",
906
+ "name": "forkedFrom",
907
+ "type": {
908
+ "__schema": "TypeRefSchema",
909
+ "location": {
910
+ "filePath": "forking.main.runtime.ts",
911
+ "line": 26,
912
+ "character": 3
913
+ },
914
+ "name": "ComponentID",
915
+ "componentId": {
916
+ "scope": "teambit.component",
917
+ "name": "component-id",
918
+ "version": "1.2.0"
919
+ }
920
+ },
921
+ "isOptional": false
922
+ }
923
+ ]
924
+ }
925
+ },
926
+ {
927
+ "__schema": "ClassSchema",
928
+ "location": {
929
+ "filePath": "forking.main.runtime.ts",
930
+ "line": 51,
931
+ "character": 1
932
+ },
933
+ "signature": "class ForkingMain",
934
+ "name": "ForkingMain",
935
+ "members": [
936
+ {
937
+ "__schema": "ConstructorSchema",
938
+ "location": {
939
+ "filePath": "forking.main.runtime.ts",
940
+ "line": 52,
941
+ "character": 3
942
+ },
943
+ "signature": "constructor ForkingMain(workspace: Workspace, install: InstallMain, dependencyResolver: DependencyResolverMain, newComponentHelper: NewComponentHelperMain, refactoring: RefactoringMain, pkg: PkgMain): ForkingMain",
944
+ "name": "constructor",
945
+ "params": [
946
+ {
947
+ "__schema": "ParameterSchema",
948
+ "location": {
949
+ "filePath": "forking.main.runtime.ts",
950
+ "line": 53,
951
+ "character": 5
952
+ },
953
+ "name": "workspace",
954
+ "type": {
955
+ "__schema": "TypeRefSchema",
956
+ "location": {
957
+ "filePath": "forking.main.runtime.ts",
958
+ "line": 53,
959
+ "character": 24
960
+ },
961
+ "name": "Workspace",
962
+ "componentId": {
963
+ "scope": "teambit.workspace",
964
+ "name": "workspace"
965
+ }
966
+ },
967
+ "isOptional": false,
968
+ "isSpread": false
969
+ },
970
+ {
971
+ "__schema": "ParameterSchema",
972
+ "location": {
973
+ "filePath": "forking.main.runtime.ts",
974
+ "line": 54,
975
+ "character": 5
976
+ },
977
+ "name": "install",
978
+ "type": {
979
+ "__schema": "TypeRefSchema",
980
+ "location": {
981
+ "filePath": "forking.main.runtime.ts",
982
+ "line": 54,
983
+ "character": 22
984
+ },
985
+ "name": "InstallMain",
986
+ "componentId": {
987
+ "scope": "teambit.workspace",
988
+ "name": "install"
989
+ }
990
+ },
991
+ "isOptional": false,
992
+ "isSpread": false
993
+ },
994
+ {
995
+ "__schema": "ParameterSchema",
996
+ "location": {
997
+ "filePath": "forking.main.runtime.ts",
998
+ "line": 55,
999
+ "character": 5
1000
+ },
1001
+ "name": "dependencyResolver",
1002
+ "type": {
1003
+ "__schema": "TypeRefSchema",
1004
+ "location": {
1005
+ "filePath": "forking.main.runtime.ts",
1006
+ "line": 55,
1007
+ "character": 33
1008
+ },
1009
+ "name": "DependencyResolverMain",
1010
+ "componentId": {
1011
+ "scope": "teambit.dependencies",
1012
+ "name": "dependency-resolver"
1013
+ }
1014
+ },
1015
+ "isOptional": false,
1016
+ "isSpread": false
1017
+ },
1018
+ {
1019
+ "__schema": "ParameterSchema",
1020
+ "location": {
1021
+ "filePath": "forking.main.runtime.ts",
1022
+ "line": 56,
1023
+ "character": 5
1024
+ },
1025
+ "name": "newComponentHelper",
1026
+ "type": {
1027
+ "__schema": "TypeRefSchema",
1028
+ "location": {
1029
+ "filePath": "forking.main.runtime.ts",
1030
+ "line": 56,
1031
+ "character": 33
1032
+ },
1033
+ "name": "NewComponentHelperMain",
1034
+ "componentId": {
1035
+ "scope": "teambit.component",
1036
+ "name": "new-component-helper"
1037
+ }
1038
+ },
1039
+ "isOptional": false,
1040
+ "isSpread": false
1041
+ },
1042
+ {
1043
+ "__schema": "ParameterSchema",
1044
+ "location": {
1045
+ "filePath": "forking.main.runtime.ts",
1046
+ "line": 57,
1047
+ "character": 5
1048
+ },
1049
+ "name": "refactoring",
1050
+ "type": {
1051
+ "__schema": "TypeRefSchema",
1052
+ "location": {
1053
+ "filePath": "forking.main.runtime.ts",
1054
+ "line": 57,
1055
+ "character": 26
1056
+ },
1057
+ "name": "RefactoringMain",
1058
+ "componentId": {
1059
+ "scope": "teambit.component",
1060
+ "name": "refactoring"
1061
+ }
1062
+ },
1063
+ "isOptional": false,
1064
+ "isSpread": false
1065
+ },
1066
+ {
1067
+ "__schema": "ParameterSchema",
1068
+ "location": {
1069
+ "filePath": "forking.main.runtime.ts",
1070
+ "line": 58,
1071
+ "character": 5
1072
+ },
1073
+ "name": "pkg",
1074
+ "type": {
1075
+ "__schema": "TypeRefSchema",
1076
+ "location": {
1077
+ "filePath": "forking.main.runtime.ts",
1078
+ "line": 58,
1079
+ "character": 18
1080
+ },
1081
+ "name": "PkgMain",
1082
+ "componentId": {
1083
+ "scope": "teambit.pkg",
1084
+ "name": "pkg"
1085
+ }
1086
+ },
1087
+ "isOptional": false,
1088
+ "isSpread": false
1089
+ }
1090
+ ],
1091
+ "returnType": {
1092
+ "__schema": "ThisTypeSchema",
1093
+ "location": {
1094
+ "filePath": "forking.main.runtime.ts",
1095
+ "line": 51,
1096
+ "character": 1
1097
+ },
1098
+ "name": "ForkingMain"
1099
+ },
1100
+ "modifiers": []
1101
+ },
1102
+ {
1103
+ "__schema": "FunctionLikeSchema",
1104
+ "location": {
1105
+ "filePath": "forking.main.runtime.ts",
1106
+ "line": 66,
1107
+ "character": 3
1108
+ },
1109
+ "doc": {
1110
+ "__schema": "DocSchema",
1111
+ "location": {
1112
+ "filePath": "forking.main.runtime.ts",
1113
+ "line": 61,
1114
+ "character": 3
1115
+ },
1116
+ "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 */",
1117
+ "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."
1118
+ },
1119
+ "signature": "(method) ForkingMain.fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID>",
1120
+ "name": "fork",
1121
+ "params": [
1122
+ {
1123
+ "__schema": "ParameterSchema",
1124
+ "location": {
1125
+ "filePath": "forking.main.runtime.ts",
1126
+ "line": 66,
1127
+ "character": 14
1128
+ },
1129
+ "name": "sourceId",
1130
+ "type": {
1131
+ "__schema": "KeywordTypeSchema",
1132
+ "location": {
1133
+ "filePath": "forking.main.runtime.ts",
1134
+ "line": 66,
1135
+ "character": 24
1136
+ },
1137
+ "name": "string"
1138
+ },
1139
+ "isOptional": false,
1140
+ "isSpread": false
1141
+ },
1142
+ {
1143
+ "__schema": "ParameterSchema",
1144
+ "location": {
1145
+ "filePath": "forking.main.runtime.ts",
1146
+ "line": 66,
1147
+ "character": 32
1148
+ },
1149
+ "name": "targetId",
1150
+ "type": {
1151
+ "__schema": "KeywordTypeSchema",
1152
+ "location": {
1153
+ "filePath": "forking.main.runtime.ts",
1154
+ "line": 66,
1155
+ "character": 43
1156
+ },
1157
+ "name": "string"
1158
+ },
1159
+ "isOptional": true,
1160
+ "isSpread": false
1161
+ },
1162
+ {
1163
+ "__schema": "ParameterSchema",
1164
+ "location": {
1165
+ "filePath": "forking.main.runtime.ts",
1166
+ "line": 66,
1167
+ "character": 51
1168
+ },
1169
+ "name": "options",
1170
+ "type": {
1171
+ "__schema": "TypeRefSchema",
1172
+ "location": {
1173
+ "filePath": "forking.main.runtime.ts",
1174
+ "line": 66,
1175
+ "character": 61
1176
+ },
1177
+ "name": "ForkOptions",
1178
+ "internalFilePath": "fork.cmd.ts"
1179
+ },
1180
+ "isOptional": true,
1181
+ "isSpread": false
1182
+ }
1183
+ ],
1184
+ "returnType": {
1185
+ "__schema": "TypeRefSchema",
1186
+ "location": {
1187
+ "filePath": "forking.main.runtime.ts",
1188
+ "line": 66,
1189
+ "character": 75
1190
+ },
1191
+ "name": "Promise",
1192
+ "typeArgs": [
1193
+ {
1194
+ "__schema": "TypeRefSchema",
1195
+ "location": {
1196
+ "filePath": "forking.main.runtime.ts",
1197
+ "line": 66,
1198
+ "character": 83
1199
+ },
1200
+ "name": "ComponentID",
1201
+ "componentId": {
1202
+ "scope": "teambit.component",
1203
+ "name": "component-id",
1204
+ "version": "1.2.0"
1205
+ }
1206
+ }
1207
+ ]
1208
+ },
1209
+ "modifiers": [
1210
+ "async"
1211
+ ]
1212
+ },
1213
+ {
1214
+ "__schema": "FunctionLikeSchema",
1215
+ "location": {
1216
+ "filePath": "forking.main.runtime.ts",
1217
+ "line": 84,
1218
+ "character": 3
1219
+ },
1220
+ "doc": {
1221
+ "__schema": "DocSchema",
1222
+ "location": {
1223
+ "filePath": "forking.main.runtime.ts",
1224
+ "line": 81,
1225
+ "character": 3
1226
+ },
1227
+ "raw": "/**\n * get the forking data, such as the source where a component was forked from\n */",
1228
+ "comment": "get the forking data, such as the source where a component was forked from"
1229
+ },
1230
+ "signature": "(method) ForkingMain.getForkInfo(component: Component): ForkInfo | null",
1231
+ "name": "getForkInfo",
1232
+ "params": [
1233
+ {
1234
+ "__schema": "ParameterSchema",
1235
+ "location": {
1236
+ "filePath": "forking.main.runtime.ts",
1237
+ "line": 84,
1238
+ "character": 15
1239
+ },
1240
+ "name": "component",
1241
+ "type": {
1242
+ "__schema": "TypeRefSchema",
1243
+ "location": {
1244
+ "filePath": "forking.main.runtime.ts",
1245
+ "line": 84,
1246
+ "character": 26
1247
+ },
1248
+ "name": "Component",
1249
+ "componentId": {
1250
+ "scope": "teambit.component",
1251
+ "name": "component"
1252
+ }
1253
+ },
1254
+ "isOptional": false,
1255
+ "isSpread": false
1256
+ }
1257
+ ],
1258
+ "returnType": {
1259
+ "__schema": "TypeUnionSchema",
1260
+ "location": {
1261
+ "filePath": "forking.main.runtime.ts",
1262
+ "line": 84,
1263
+ "character": 38
1264
+ },
1265
+ "types": [
1266
+ {
1267
+ "__schema": "TypeRefSchema",
1268
+ "location": {
1269
+ "filePath": "forking.main.runtime.ts",
1270
+ "line": 84,
1271
+ "character": 38
1272
+ },
1273
+ "name": "ForkInfo",
1274
+ "internalFilePath": "forking.main.runtime.ts"
1275
+ },
1276
+ {
1277
+ "__schema": "LiteralTypeSchema",
1278
+ "location": {
1279
+ "filePath": "forking.main.runtime.ts",
1280
+ "line": 84,
1281
+ "character": 49
1282
+ },
1283
+ "name": "null"
1284
+ }
1285
+ ]
1286
+ },
1287
+ "modifiers": []
1288
+ },
1289
+ {
1290
+ "__schema": "FunctionLikeSchema",
1291
+ "location": {
1292
+ "filePath": "forking.main.runtime.ts",
1293
+ "line": 92,
1294
+ "character": 3
1295
+ },
1296
+ "signature": "(method) ForkingMain.forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<void>",
1297
+ "name": "forkMultipleFromRemote",
1298
+ "params": [
1299
+ {
1300
+ "__schema": "ParameterSchema",
1301
+ "location": {
1302
+ "filePath": "forking.main.runtime.ts",
1303
+ "line": 92,
1304
+ "character": 32
1305
+ },
1306
+ "name": "componentsToFork",
1307
+ "type": {
1308
+ "__schema": "TypeRefSchema",
1309
+ "location": {
1310
+ "filePath": "forking.main.runtime.ts",
1311
+ "line": 92,
1312
+ "character": 50
1313
+ },
1314
+ "name": "MultipleComponentsToFork",
1315
+ "internalFilePath": "forking.main.runtime.ts"
1316
+ },
1317
+ "isOptional": false,
1318
+ "isSpread": false
1319
+ },
1320
+ {
1321
+ "__schema": "ParameterSchema",
1322
+ "location": {
1323
+ "filePath": "forking.main.runtime.ts",
1324
+ "line": 92,
1325
+ "character": 76
1326
+ },
1327
+ "name": "options",
1328
+ "type": {
1329
+ "__schema": "TypeRefSchema",
1330
+ "location": {
1331
+ "filePath": "forking.main.runtime.ts",
1332
+ "line": 92,
1333
+ "character": 85
1334
+ },
1335
+ "name": "MultipleForkOptions",
1336
+ "internalFilePath": "forking.main.runtime.ts"
1337
+ },
1338
+ "isOptional": true,
1339
+ "defaultValue": "{}",
1340
+ "isSpread": false
1341
+ }
1342
+ ],
1343
+ "returnType": {
1344
+ "__schema": "InferenceTypeSchema",
1345
+ "location": {
1346
+ "filePath": "forking.main.runtime.ts",
1347
+ "line": 92,
1348
+ "character": 3
1349
+ },
1350
+ "type": "Promise<void>"
1351
+ },
1352
+ "modifiers": [
1353
+ "async"
1354
+ ]
1355
+ },
1356
+ {
1357
+ "__schema": "FunctionLikeSchema",
1358
+ "location": {
1359
+ "filePath": "forking.main.runtime.ts",
1360
+ "line": 187,
1361
+ "character": 3
1362
+ },
1363
+ "doc": {
1364
+ "__schema": "DocSchema",
1365
+ "location": {
1366
+ "filePath": "forking.main.runtime.ts",
1367
+ "line": 184,
1368
+ "character": 3
1369
+ },
1370
+ "raw": "/**\n * fork all components of the given scope\n */",
1371
+ "comment": "fork all components of the given scope"
1372
+ },
1373
+ "signature": "(method) ForkingMain.forkScope(originalScope: string, newScope: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
1374
+ "name": "forkScope",
1375
+ "params": [
1376
+ {
1377
+ "__schema": "ParameterSchema",
1378
+ "location": {
1379
+ "filePath": "forking.main.runtime.ts",
1380
+ "line": 188,
1381
+ "character": 5
1382
+ },
1383
+ "name": "originalScope",
1384
+ "type": {
1385
+ "__schema": "KeywordTypeSchema",
1386
+ "location": {
1387
+ "filePath": "forking.main.runtime.ts",
1388
+ "line": 188,
1389
+ "character": 20
1390
+ },
1391
+ "name": "string"
1392
+ },
1393
+ "isOptional": false,
1394
+ "isSpread": false
1395
+ },
1396
+ {
1397
+ "__schema": "ParameterSchema",
1398
+ "location": {
1399
+ "filePath": "forking.main.runtime.ts",
1400
+ "line": 189,
1401
+ "character": 5
1402
+ },
1403
+ "name": "newScope",
1404
+ "type": {
1405
+ "__schema": "KeywordTypeSchema",
1406
+ "location": {
1407
+ "filePath": "forking.main.runtime.ts",
1408
+ "line": 189,
1409
+ "character": 15
1410
+ },
1411
+ "name": "string"
1412
+ },
1413
+ "isOptional": false,
1414
+ "isSpread": false
1415
+ },
1416
+ {
1417
+ "__schema": "ParameterSchema",
1418
+ "location": {
1419
+ "filePath": "forking.main.runtime.ts",
1420
+ "line": 190,
1421
+ "character": 5
1422
+ },
1423
+ "name": "pattern",
1424
+ "type": {
1425
+ "__schema": "KeywordTypeSchema",
1426
+ "location": {
1427
+ "filePath": "forking.main.runtime.ts",
1428
+ "line": 190,
1429
+ "character": 15
1430
+ },
1431
+ "name": "string"
1432
+ },
1433
+ "isOptional": true,
1434
+ "isSpread": false
1435
+ },
1436
+ {
1437
+ "__schema": "ParameterSchema",
1438
+ "location": {
1439
+ "filePath": "forking.main.runtime.ts",
1440
+ "line": 191,
1441
+ "character": 5
1442
+ },
1443
+ "name": "options",
1444
+ "type": {
1445
+ "__schema": "TypeRefSchema",
1446
+ "location": {
1447
+ "filePath": "forking.main.runtime.ts",
1448
+ "line": 191,
1449
+ "character": 15
1450
+ },
1451
+ "name": "ScopeForkOptions",
1452
+ "internalFilePath": "scope-fork.cmd.ts"
1453
+ },
1454
+ "isOptional": true,
1455
+ "isSpread": false
1456
+ }
1457
+ ],
1458
+ "returnType": {
1459
+ "__schema": "TypeRefSchema",
1460
+ "location": {
1461
+ "filePath": "forking.main.runtime.ts",
1462
+ "line": 192,
1463
+ "character": 6
1464
+ },
1465
+ "name": "Promise",
1466
+ "typeArgs": [
1467
+ {
1468
+ "__schema": "TypeArraySchema",
1469
+ "location": {
1470
+ "filePath": "forking.main.runtime.ts",
1471
+ "line": 192,
1472
+ "character": 14
1473
+ },
1474
+ "type": {
1475
+ "__schema": "TypeRefSchema",
1476
+ "location": {
1477
+ "filePath": "forking.main.runtime.ts",
1478
+ "line": 192,
1479
+ "character": 14
1480
+ },
1481
+ "name": "ComponentID",
1482
+ "componentId": {
1483
+ "scope": "teambit.component",
1484
+ "name": "component-id",
1485
+ "version": "1.2.0"
1486
+ }
1487
+ }
1488
+ }
1489
+ ]
1490
+ },
1491
+ "modifiers": [
1492
+ "async"
1493
+ ]
1494
+ },
1495
+ {
1496
+ "__schema": "VariableLikeSchema",
1497
+ "location": {
1498
+ "filePath": "forking.main.runtime.ts",
1499
+ "line": 350,
1500
+ "character": 3
1501
+ },
1502
+ "signature": "(property) ForkingMain.slots: never[]",
1503
+ "name": "slots",
1504
+ "type": {
1505
+ "__schema": "InferenceTypeSchema",
1506
+ "location": {
1507
+ "filePath": "forking.main.runtime.ts",
1508
+ "line": 350,
1509
+ "character": 3
1510
+ },
1511
+ "type": "never[]"
1512
+ },
1513
+ "isOptional": true,
1514
+ "defaultValue": "[]"
1515
+ },
1516
+ {
1517
+ "__schema": "VariableLikeSchema",
1518
+ "location": {
1519
+ "filePath": "forking.main.runtime.ts",
1520
+ "line": 351,
1521
+ "character": 3
1522
+ },
1523
+ "signature": "(property) ForkingMain.dependencies: Aspect[]",
1524
+ "name": "dependencies",
1525
+ "type": {
1526
+ "__schema": "InferenceTypeSchema",
1527
+ "location": {
1528
+ "filePath": "forking.main.runtime.ts",
1529
+ "line": 351,
1530
+ "character": 3
1531
+ },
1532
+ "type": "Aspect[]"
1533
+ },
1534
+ "isOptional": true,
1535
+ "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ]"
1536
+ },
1537
+ {
1538
+ "__schema": "VariableLikeSchema",
1539
+ "location": {
1540
+ "filePath": "forking.main.runtime.ts",
1541
+ "line": 362,
1542
+ "character": 3
1543
+ },
1544
+ "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
1545
+ "name": "runtime",
1546
+ "type": {
1547
+ "__schema": "InferenceTypeSchema",
1548
+ "location": {
1549
+ "filePath": "forking.main.runtime.ts",
1550
+ "line": 362,
1551
+ "character": 3
1552
+ },
1553
+ "type": "RuntimeDefinition"
1554
+ },
1555
+ "isOptional": true,
1556
+ "defaultValue": "MainRuntime"
1557
+ },
1558
+ {
1559
+ "__schema": "FunctionLikeSchema",
1560
+ "location": {
1561
+ "filePath": "forking.main.runtime.ts",
1562
+ "line": 363,
1563
+ "character": 3
1564
+ },
1565
+ "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>",
1566
+ "name": "provider",
1567
+ "params": [
1568
+ {
1569
+ "__schema": "ParameterSchema",
1570
+ "location": {
1571
+ "filePath": "forking.main.runtime.ts",
1572
+ "line": 363,
1573
+ "character": 25
1574
+ },
1575
+ "name": "[ cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
1576
+ "type": {
1577
+ "__schema": "TupleTypeSchema",
1578
+ "location": {
1579
+ "filePath": "forking.main.runtime.ts",
1580
+ "line": 373,
1581
+ "character": 6
1582
+ },
1583
+ "elements": [
1584
+ {
1585
+ "__schema": "TypeRefSchema",
1586
+ "location": {
1587
+ "filePath": "forking.main.runtime.ts",
1588
+ "line": 374,
1589
+ "character": 5
1590
+ },
1591
+ "name": "CLIMain",
1592
+ "componentId": {
1593
+ "scope": "teambit.harmony",
1594
+ "name": "cli"
1595
+ }
1596
+ },
1597
+ {
1598
+ "__schema": "TypeRefSchema",
1599
+ "location": {
1600
+ "filePath": "forking.main.runtime.ts",
1601
+ "line": 375,
1602
+ "character": 5
1603
+ },
1604
+ "name": "Workspace",
1605
+ "componentId": {
1606
+ "scope": "teambit.workspace",
1607
+ "name": "workspace"
1608
+ }
1609
+ },
1610
+ {
1611
+ "__schema": "TypeRefSchema",
1612
+ "location": {
1613
+ "filePath": "forking.main.runtime.ts",
1614
+ "line": 376,
1615
+ "character": 5
1616
+ },
1617
+ "name": "DependencyResolverMain",
1618
+ "componentId": {
1619
+ "scope": "teambit.dependencies",
1620
+ "name": "dependency-resolver"
1621
+ }
1622
+ },
1623
+ {
1624
+ "__schema": "TypeRefSchema",
1625
+ "location": {
1626
+ "filePath": "forking.main.runtime.ts",
1627
+ "line": 377,
1628
+ "character": 5
1629
+ },
1630
+ "name": "ComponentMain",
1631
+ "componentId": {
1632
+ "scope": "teambit.component",
1633
+ "name": "component"
1634
+ }
1635
+ },
1636
+ {
1637
+ "__schema": "TypeRefSchema",
1638
+ "location": {
1639
+ "filePath": "forking.main.runtime.ts",
1640
+ "line": 378,
1641
+ "character": 5
1642
+ },
1643
+ "name": "NewComponentHelperMain",
1644
+ "componentId": {
1645
+ "scope": "teambit.component",
1646
+ "name": "new-component-helper"
1647
+ }
1648
+ },
1649
+ {
1650
+ "__schema": "TypeRefSchema",
1651
+ "location": {
1652
+ "filePath": "forking.main.runtime.ts",
1653
+ "line": 379,
1654
+ "character": 5
1655
+ },
1656
+ "name": "GraphqlMain",
1657
+ "componentId": {
1658
+ "scope": "teambit.harmony",
1659
+ "name": "graphql"
1660
+ }
1661
+ },
1662
+ {
1663
+ "__schema": "TypeRefSchema",
1664
+ "location": {
1665
+ "filePath": "forking.main.runtime.ts",
1666
+ "line": 380,
1667
+ "character": 5
1668
+ },
1669
+ "name": "RefactoringMain",
1670
+ "componentId": {
1671
+ "scope": "teambit.component",
1672
+ "name": "refactoring"
1673
+ }
1674
+ },
1675
+ {
1676
+ "__schema": "TypeRefSchema",
1677
+ "location": {
1678
+ "filePath": "forking.main.runtime.ts",
1679
+ "line": 381,
1680
+ "character": 5
1681
+ },
1682
+ "name": "PkgMain",
1683
+ "componentId": {
1684
+ "scope": "teambit.pkg",
1685
+ "name": "pkg"
1686
+ }
1687
+ },
1688
+ {
1689
+ "__schema": "TypeRefSchema",
1690
+ "location": {
1691
+ "filePath": "forking.main.runtime.ts",
1692
+ "line": 382,
1693
+ "character": 5
1694
+ },
1695
+ "name": "InstallMain",
1696
+ "componentId": {
1697
+ "scope": "teambit.workspace",
1698
+ "name": "install"
1699
+ }
1700
+ }
1701
+ ]
1702
+ },
1703
+ "isOptional": false,
1704
+ "isSpread": false
1705
+ }
1706
+ ],
1707
+ "returnType": {
1708
+ "__schema": "InferenceTypeSchema",
1709
+ "location": {
1710
+ "filePath": "forking.main.runtime.ts",
1711
+ "line": 363,
1712
+ "character": 3
1713
+ },
1714
+ "type": "Promise<ForkingMain>"
1715
+ },
1716
+ "modifiers": [
1717
+ "static",
1718
+ "async"
1719
+ ]
1720
+ }
1721
+ ],
1722
+ "extendsNodes": [],
1723
+ "implementNodes": []
1724
+ },
1725
+ {
1726
+ "__schema": "TypeSchema",
1727
+ "location": {
1728
+ "filePath": "forking.main.runtime.ts",
1729
+ "line": 398,
1730
+ "character": 1
1731
+ },
1732
+ "signature": "type ForkConfig = {\n forkedFrom: ComponentIdObj;\n}",
1733
+ "name": "ForkConfig",
1734
+ "type": {
1735
+ "__schema": "TypeLiteralSchema",
1736
+ "location": {
1737
+ "filePath": "forking.main.runtime.ts",
1738
+ "line": 398,
1739
+ "character": 26
1740
+ },
1741
+ "members": [
1742
+ {
1743
+ "__schema": "VariableLikeSchema",
1744
+ "location": {
1745
+ "filePath": "forking.main.runtime.ts",
1746
+ "line": 399,
1747
+ "character": 3
1748
+ },
1749
+ "signature": "(property) forkedFrom: ComponentIdObj",
1750
+ "name": "forkedFrom",
1751
+ "type": {
1752
+ "__schema": "TypeRefSchema",
1753
+ "location": {
1754
+ "filePath": "forking.main.runtime.ts",
1755
+ "line": 399,
1756
+ "character": 3
1757
+ },
1758
+ "name": "ComponentIdObj",
1759
+ "componentId": {
1760
+ "scope": "teambit.component",
1761
+ "name": "component-id",
1762
+ "version": "1.2.0"
1763
+ }
1764
+ },
1765
+ "isOptional": false
1766
+ }
1767
+ ]
1768
+ }
1769
+ }
1770
+ ],
1771
+ "internals": [
1772
+ {
1773
+ "__schema": "TypeSchema",
1774
+ "location": {
1775
+ "filePath": "forking.main.runtime.ts",
1776
+ "line": 29,
1777
+ "character": 1
1778
+ },
1779
+ "signature": "type MultipleForkInfo = {\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n}",
1780
+ "name": "MultipleForkInfo",
1781
+ "type": {
1782
+ "__schema": "TypeLiteralSchema",
1783
+ "location": {
1784
+ "filePath": "forking.main.runtime.ts",
1785
+ "line": 29,
1786
+ "character": 25
1787
+ },
1788
+ "members": [
1789
+ {
1790
+ "__schema": "VariableLikeSchema",
1791
+ "location": {
1792
+ "filePath": "forking.main.runtime.ts",
1793
+ "line": 30,
1794
+ "character": 3
1795
+ },
1796
+ "signature": "(property) targetCompId: ComponentID",
1797
+ "name": "targetCompId",
1798
+ "type": {
1799
+ "__schema": "TypeRefSchema",
1800
+ "location": {
1801
+ "filePath": "forking.main.runtime.ts",
1802
+ "line": 30,
1803
+ "character": 3
1804
+ },
1805
+ "name": "ComponentID",
1806
+ "componentId": {
1807
+ "scope": "teambit.component",
1808
+ "name": "component-id",
1809
+ "version": "1.2.0"
1810
+ }
1811
+ },
1812
+ "isOptional": false
1813
+ },
1814
+ {
1815
+ "__schema": "VariableLikeSchema",
1816
+ "location": {
1817
+ "filePath": "forking.main.runtime.ts",
1818
+ "line": 31,
1819
+ "character": 3
1820
+ },
1821
+ "signature": "(property) sourceId: string",
1822
+ "name": "sourceId",
1823
+ "type": {
1824
+ "__schema": "KeywordTypeSchema",
1825
+ "location": {
1826
+ "filePath": "forking.main.runtime.ts",
1827
+ "line": 31,
1828
+ "character": 13
1829
+ },
1830
+ "name": "string"
1831
+ },
1832
+ "isOptional": false
1833
+ },
1834
+ {
1835
+ "__schema": "VariableLikeSchema",
1836
+ "location": {
1837
+ "filePath": "forking.main.runtime.ts",
1838
+ "line": 32,
1839
+ "character": 3
1840
+ },
1841
+ "signature": "(property) component: Component",
1842
+ "name": "component",
1843
+ "type": {
1844
+ "__schema": "TypeRefSchema",
1845
+ "location": {
1846
+ "filePath": "forking.main.runtime.ts",
1847
+ "line": 32,
1848
+ "character": 3
1849
+ },
1850
+ "name": "Component",
1851
+ "componentId": {
1852
+ "scope": "teambit.component",
1853
+ "name": "component"
1854
+ }
1855
+ },
1856
+ "isOptional": false
1857
+ }
1858
+ ]
1859
+ }
1860
+ },
1861
+ {
1862
+ "__schema": "TypeSchema",
1863
+ "location": {
1864
+ "filePath": "forking.main.runtime.ts",
1865
+ "line": 35,
1866
+ "character": 1
1867
+ },
1868
+ "signature": "type MultipleComponentsToFork = {\n sourceId: string;\n targetId?: string | undefined;\n targetScope?: string | undefined;\n path?: string | undefined;\n env?: string | undefined;\n config?: ComponentConfig | undefined;\n}[]",
1869
+ "name": "MultipleComponentsToFork",
1870
+ "type": {
1871
+ "__schema": "TypeRefSchema",
1872
+ "location": {
1873
+ "filePath": "forking.main.runtime.ts",
1874
+ "line": 35,
1875
+ "character": 33
1876
+ },
1877
+ "name": "Array",
1878
+ "typeArgs": [
1879
+ {
1880
+ "__schema": "TypeLiteralSchema",
1881
+ "location": {
1882
+ "filePath": "forking.main.runtime.ts",
1883
+ "line": 35,
1884
+ "character": 39
1885
+ },
1886
+ "members": [
1887
+ {
1888
+ "__schema": "VariableLikeSchema",
1889
+ "location": {
1890
+ "filePath": "forking.main.runtime.ts",
1891
+ "line": 36,
1892
+ "character": 3
1893
+ },
1894
+ "signature": "(property) sourceId: string",
1895
+ "name": "sourceId",
1896
+ "type": {
1897
+ "__schema": "KeywordTypeSchema",
1898
+ "location": {
1899
+ "filePath": "forking.main.runtime.ts",
1900
+ "line": 36,
1901
+ "character": 13
1902
+ },
1903
+ "name": "string"
1904
+ },
1905
+ "isOptional": false
1906
+ },
1907
+ {
1908
+ "__schema": "VariableLikeSchema",
1909
+ "location": {
1910
+ "filePath": "forking.main.runtime.ts",
1911
+ "line": 37,
1912
+ "character": 3
1913
+ },
1914
+ "signature": "(property) targetId?: string | undefined",
1915
+ "name": "targetId",
1916
+ "type": {
1917
+ "__schema": "KeywordTypeSchema",
1918
+ "location": {
1919
+ "filePath": "forking.main.runtime.ts",
1920
+ "line": 37,
1921
+ "character": 14
1922
+ },
1923
+ "name": "string"
1924
+ },
1925
+ "isOptional": true
1926
+ },
1927
+ {
1928
+ "__schema": "VariableLikeSchema",
1929
+ "location": {
1930
+ "filePath": "forking.main.runtime.ts",
1931
+ "line": 38,
1932
+ "character": 3
1933
+ },
1934
+ "signature": "(property) targetScope?: string | undefined",
1935
+ "name": "targetScope",
1936
+ "type": {
1937
+ "__schema": "KeywordTypeSchema",
1938
+ "location": {
1939
+ "filePath": "forking.main.runtime.ts",
1940
+ "line": 38,
1941
+ "character": 17
1942
+ },
1943
+ "name": "string"
1944
+ },
1945
+ "isOptional": true
1946
+ },
1947
+ {
1948
+ "__schema": "VariableLikeSchema",
1949
+ "location": {
1950
+ "filePath": "forking.main.runtime.ts",
1951
+ "line": 39,
1952
+ "character": 3
1953
+ },
1954
+ "signature": "(property) path?: string | undefined",
1955
+ "name": "path",
1956
+ "type": {
1957
+ "__schema": "KeywordTypeSchema",
1958
+ "location": {
1959
+ "filePath": "forking.main.runtime.ts",
1960
+ "line": 39,
1961
+ "character": 10
1962
+ },
1963
+ "name": "string"
1964
+ },
1965
+ "isOptional": true
1966
+ },
1967
+ {
1968
+ "__schema": "VariableLikeSchema",
1969
+ "location": {
1970
+ "filePath": "forking.main.runtime.ts",
1971
+ "line": 40,
1972
+ "character": 3
1973
+ },
1974
+ "signature": "(property) env?: string | undefined",
1975
+ "name": "env",
1976
+ "type": {
1977
+ "__schema": "KeywordTypeSchema",
1978
+ "location": {
1979
+ "filePath": "forking.main.runtime.ts",
1980
+ "line": 40,
1981
+ "character": 9
1982
+ },
1983
+ "name": "string"
1984
+ },
1985
+ "isOptional": true
1986
+ },
1987
+ {
1988
+ "__schema": "VariableLikeSchema",
1989
+ "location": {
1990
+ "filePath": "forking.main.runtime.ts",
1991
+ "line": 41,
1992
+ "character": 3
1993
+ },
1994
+ "signature": "(property) config?: ComponentConfig | undefined",
1995
+ "name": "config",
1996
+ "type": {
1997
+ "__schema": "TypeRefSchema",
1998
+ "location": {
1999
+ "filePath": "forking.main.runtime.ts",
2000
+ "line": 41,
2001
+ "character": 12
2002
+ },
2003
+ "name": "ComponentConfig",
2004
+ "componentId": {
2005
+ "scope": "teambit.generator",
2006
+ "name": "generator"
2007
+ }
2008
+ },
2009
+ "isOptional": true
2010
+ }
2011
+ ]
2012
+ }
2013
+ ]
2014
+ }
2015
+ },
2016
+ {
2017
+ "__schema": "TypeSchema",
2018
+ "location": {
2019
+ "filePath": "forking.main.runtime.ts",
2020
+ "line": 44,
2021
+ "character": 1
2022
+ },
2023
+ "signature": "type MultipleForkOptions = {\n refactor?: boolean | undefined;\n scope?: string | undefined;\n install?: boolean | undefined;\n ast?: boolean | undefined;\n}",
2024
+ "name": "MultipleForkOptions",
2025
+ "type": {
2026
+ "__schema": "TypeLiteralSchema",
2027
+ "location": {
2028
+ "filePath": "forking.main.runtime.ts",
2029
+ "line": 44,
2030
+ "character": 28
2031
+ },
2032
+ "members": [
2033
+ {
2034
+ "__schema": "VariableLikeSchema",
2035
+ "location": {
2036
+ "filePath": "forking.main.runtime.ts",
2037
+ "line": 45,
2038
+ "character": 3
2039
+ },
2040
+ "signature": "(property) refactor?: boolean | undefined",
2041
+ "name": "refactor",
2042
+ "type": {
2043
+ "__schema": "KeywordTypeSchema",
2044
+ "location": {
2045
+ "filePath": "forking.main.runtime.ts",
2046
+ "line": 45,
2047
+ "character": 14
2048
+ },
2049
+ "name": "boolean"
2050
+ },
2051
+ "isOptional": true
2052
+ },
2053
+ {
2054
+ "__schema": "VariableLikeSchema",
2055
+ "location": {
2056
+ "filePath": "forking.main.runtime.ts",
2057
+ "line": 46,
2058
+ "character": 3
2059
+ },
2060
+ "signature": "(property) scope?: string | undefined",
2061
+ "name": "scope",
2062
+ "type": {
2063
+ "__schema": "KeywordTypeSchema",
2064
+ "location": {
2065
+ "filePath": "forking.main.runtime.ts",
2066
+ "line": 46,
2067
+ "character": 11
2068
+ },
2069
+ "name": "string"
2070
+ },
2071
+ "isOptional": true
2072
+ },
2073
+ {
2074
+ "__schema": "VariableLikeSchema",
2075
+ "location": {
2076
+ "filePath": "forking.main.runtime.ts",
2077
+ "line": 47,
2078
+ "character": 3
2079
+ },
2080
+ "signature": "(property) install?: boolean | undefined",
2081
+ "name": "install",
2082
+ "type": {
2083
+ "__schema": "KeywordTypeSchema",
2084
+ "location": {
2085
+ "filePath": "forking.main.runtime.ts",
2086
+ "line": 47,
2087
+ "character": 13
2088
+ },
2089
+ "name": "boolean"
2090
+ },
2091
+ "isOptional": true
2092
+ },
2093
+ {
2094
+ "__schema": "VariableLikeSchema",
2095
+ "location": {
2096
+ "filePath": "forking.main.runtime.ts",
2097
+ "line": 48,
2098
+ "character": 3
2099
+ },
2100
+ "signature": "(property) ast?: boolean | undefined",
2101
+ "name": "ast",
2102
+ "type": {
2103
+ "__schema": "KeywordTypeSchema",
2104
+ "location": {
2105
+ "filePath": "forking.main.runtime.ts",
2106
+ "line": 48,
2107
+ "character": 9
2108
+ },
2109
+ "name": "boolean"
2110
+ },
2111
+ "isOptional": true
2112
+ }
2113
+ ]
2114
+ }
2115
+ },
2116
+ {
2117
+ "__schema": "UnImplementedSchema",
2118
+ "location": {
2119
+ "filePath": "forking.main.runtime.ts",
2120
+ "line": 396,
2121
+ "character": 1
2122
+ },
2123
+ "name": "ForkingAspect.addRuntime(ForkingMain);",
2124
+ "type": "ExpressionStatement"
2125
+ }
2126
+ ]
2127
+ },
2128
+ {
2129
+ "__schema": "ModuleSchema",
2130
+ "location": {
2131
+ "filePath": "forking.aspect.ts",
2132
+ "line": 1,
2133
+ "character": 1
2134
+ },
2135
+ "exports": [
2136
+ {
2137
+ "__schema": "VariableLikeSchema",
2138
+ "location": {
2139
+ "filePath": "forking.aspect.ts",
2140
+ "line": 3,
2141
+ "character": 14
2142
+ },
2143
+ "signature": "const ForkingAspect: Aspect",
2144
+ "name": "ForkingAspect",
2145
+ "type": {
2146
+ "__schema": "TypeRefSchema",
2147
+ "location": {
2148
+ "filePath": "forking.aspect.ts",
2149
+ "line": 3,
2150
+ "character": 14
2151
+ },
2152
+ "name": "Aspect",
2153
+ "componentId": {
2154
+ "scope": "teambit.harmony",
2155
+ "name": "harmony",
2156
+ "version": "0.4.6"
2157
+ }
2158
+ },
2159
+ "isOptional": false,
2160
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/forking',\n})"
2161
+ }
2162
+ ],
2163
+ "internals": []
2164
+ }
2165
+ ],
66
2166
  "componentId": {
67
2167
  "scope": "teambit.component",
68
2168
  "name": "forking",
69
- "version": "1.0.258"
2169
+ "version": "1.0.260"
70
2170
  },
71
2171
  "taggedModuleExports": []
72
2172
  }