@teambit/forking 1.0.509 → 1.0.511

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2428 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ExportSchema",
18
- "location": {
19
- "filePath": "index.ts",
20
- "line": 3,
21
- "character": 15
22
- },
23
- "signature": "class ForkingMain",
24
- "name": "ForkingMain",
25
- "exportNode": {
26
- "__schema": "ClassSchema",
27
- "location": {
28
- "filePath": "forking.main.runtime.ts",
29
- "line": 53,
30
- "character": 1
31
- },
32
- "signature": "class ForkingMain",
33
- "name": "ForkingMain",
34
- "members": [
35
- {
36
- "__schema": "ConstructorSchema",
37
- "location": {
38
- "filePath": "forking.main.runtime.ts",
39
- "line": 54,
40
- "character": 3
41
- },
42
- "signature": "constructor ForkingMain(workspace: Workspace, scope: ScopeMain, install: InstallMain, dependencyResolver: DependencyResolverMain, newComponentHelper: NewComponentHelperMain, refactoring: RefactoringMain, pkg: PkgMain): ForkingMain",
43
- "name": "constructor",
44
- "params": [
45
- {
46
- "__schema": "ParameterSchema",
47
- "location": {
48
- "filePath": "forking.main.runtime.ts",
49
- "line": 55,
50
- "character": 5
51
- },
52
- "name": "workspace",
53
- "type": {
54
- "__schema": "TypeRefSchema",
55
- "location": {
56
- "filePath": "forking.main.runtime.ts",
57
- "line": 55,
58
- "character": 24
59
- },
60
- "name": "Workspace"
61
- },
62
- "isOptional": false,
63
- "isSpread": false
64
- },
65
- {
66
- "__schema": "ParameterSchema",
67
- "location": {
68
- "filePath": "forking.main.runtime.ts",
69
- "line": 56,
70
- "character": 5
71
- },
72
- "name": "scope",
73
- "type": {
74
- "__schema": "TypeRefSchema",
75
- "location": {
76
- "filePath": "forking.main.runtime.ts",
77
- "line": 56,
78
- "character": 20
79
- },
80
- "name": "ScopeMain"
81
- },
82
- "isOptional": false,
83
- "isSpread": false
84
- },
85
- {
86
- "__schema": "ParameterSchema",
87
- "location": {
88
- "filePath": "forking.main.runtime.ts",
89
- "line": 57,
90
- "character": 5
91
- },
92
- "name": "install",
93
- "type": {
94
- "__schema": "TypeRefSchema",
95
- "location": {
96
- "filePath": "forking.main.runtime.ts",
97
- "line": 57,
98
- "character": 22
99
- },
100
- "name": "InstallMain"
101
- },
102
- "isOptional": false,
103
- "isSpread": false
104
- },
105
- {
106
- "__schema": "ParameterSchema",
107
- "location": {
108
- "filePath": "forking.main.runtime.ts",
109
- "line": 58,
110
- "character": 5
111
- },
112
- "name": "dependencyResolver",
113
- "type": {
114
- "__schema": "TypeRefSchema",
115
- "location": {
116
- "filePath": "forking.main.runtime.ts",
117
- "line": 58,
118
- "character": 33
119
- },
120
- "name": "DependencyResolverMain"
121
- },
122
- "isOptional": false,
123
- "isSpread": false
124
- },
125
- {
126
- "__schema": "ParameterSchema",
127
- "location": {
128
- "filePath": "forking.main.runtime.ts",
129
- "line": 59,
130
- "character": 5
131
- },
132
- "name": "newComponentHelper",
133
- "type": {
134
- "__schema": "TypeRefSchema",
135
- "location": {
136
- "filePath": "forking.main.runtime.ts",
137
- "line": 59,
138
- "character": 33
139
- },
140
- "name": "NewComponentHelperMain"
141
- },
142
- "isOptional": false,
143
- "isSpread": false
144
- },
145
- {
146
- "__schema": "ParameterSchema",
147
- "location": {
148
- "filePath": "forking.main.runtime.ts",
149
- "line": 60,
150
- "character": 5
151
- },
152
- "name": "refactoring",
153
- "type": {
154
- "__schema": "TypeRefSchema",
155
- "location": {
156
- "filePath": "forking.main.runtime.ts",
157
- "line": 60,
158
- "character": 26
159
- },
160
- "name": "RefactoringMain"
161
- },
162
- "isOptional": false,
163
- "isSpread": false
164
- },
165
- {
166
- "__schema": "ParameterSchema",
167
- "location": {
168
- "filePath": "forking.main.runtime.ts",
169
- "line": 61,
170
- "character": 5
171
- },
172
- "name": "pkg",
173
- "type": {
174
- "__schema": "TypeRefSchema",
175
- "location": {
176
- "filePath": "forking.main.runtime.ts",
177
- "line": 61,
178
- "character": 18
179
- },
180
- "name": "PkgMain"
181
- },
182
- "isOptional": false,
183
- "isSpread": false
184
- }
185
- ],
186
- "returnType": {
187
- "__schema": "ThisTypeSchema",
188
- "location": {
189
- "filePath": "forking.main.runtime.ts",
190
- "line": 53,
191
- "character": 1
192
- },
193
- "name": "ForkingMain"
194
- },
195
- "modifiers": []
196
- },
197
- {
198
- "__schema": "FunctionLikeSchema",
199
- "location": {
200
- "filePath": "forking.main.runtime.ts",
201
- "line": 69,
202
- "character": 3
203
- },
204
- "doc": {
205
- "__schema": "DocSchema",
206
- "location": {
207
- "filePath": "forking.main.runtime.ts",
208
- "line": 64,
209
- "character": 3
210
- },
211
- "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 */",
212
- "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.",
213
- "tags": []
214
- },
215
- "signature": "(method) ForkingMain.fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID>",
216
- "name": "fork",
217
- "params": [
218
- {
219
- "__schema": "ParameterSchema",
220
- "location": {
221
- "filePath": "forking.main.runtime.ts",
222
- "line": 69,
223
- "character": 14
224
- },
225
- "name": "sourceId",
226
- "type": {
227
- "__schema": "KeywordTypeSchema",
228
- "location": {
229
- "filePath": "forking.main.runtime.ts",
230
- "line": 69,
231
- "character": 24
232
- },
233
- "name": "string"
234
- },
235
- "isOptional": false,
236
- "isSpread": false
237
- },
238
- {
239
- "__schema": "ParameterSchema",
240
- "location": {
241
- "filePath": "forking.main.runtime.ts",
242
- "line": 69,
243
- "character": 32
244
- },
245
- "name": "targetId",
246
- "type": {
247
- "__schema": "KeywordTypeSchema",
248
- "location": {
249
- "filePath": "forking.main.runtime.ts",
250
- "line": 69,
251
- "character": 43
252
- },
253
- "name": "string"
254
- },
255
- "isOptional": true,
256
- "isSpread": false
257
- },
258
- {
259
- "__schema": "ParameterSchema",
260
- "location": {
261
- "filePath": "forking.main.runtime.ts",
262
- "line": 69,
263
- "character": 51
264
- },
265
- "name": "options",
266
- "type": {
267
- "__schema": "TypeRefSchema",
268
- "location": {
269
- "filePath": "forking.main.runtime.ts",
270
- "line": 69,
271
- "character": 61
272
- },
273
- "name": "ForkOptions"
274
- },
275
- "isOptional": true,
276
- "isSpread": false
277
- }
278
- ],
279
- "returnType": {
280
- "__schema": "TypeRefSchema",
281
- "location": {
282
- "filePath": "forking.main.runtime.ts",
283
- "line": 69,
284
- "character": 75
285
- },
286
- "name": "Promise",
287
- "typeArgs": [
288
- {
289
- "__schema": "TypeRefSchema",
290
- "location": {
291
- "filePath": "forking.main.runtime.ts",
292
- "line": 69,
293
- "character": 83
294
- },
295
- "name": "ComponentID"
296
- }
297
- ]
298
- },
299
- "modifiers": [
300
- "async"
301
- ]
302
- },
303
- {
304
- "__schema": "FunctionLikeSchema",
305
- "location": {
306
- "filePath": "forking.main.runtime.ts",
307
- "line": 87,
308
- "character": 3
309
- },
310
- "doc": {
311
- "__schema": "DocSchema",
312
- "location": {
313
- "filePath": "forking.main.runtime.ts",
314
- "line": 84,
315
- "character": 3
316
- },
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
- "tags": []
320
- },
321
- "signature": "(method) ForkingMain.getForkInfo(component: Component): ForkInfo | null",
322
- "name": "getForkInfo",
323
- "params": [
324
- {
325
- "__schema": "ParameterSchema",
326
- "location": {
327
- "filePath": "forking.main.runtime.ts",
328
- "line": 87,
329
- "character": 15
330
- },
331
- "name": "component",
332
- "type": {
333
- "__schema": "TypeRefSchema",
334
- "location": {
335
- "filePath": "forking.main.runtime.ts",
336
- "line": 87,
337
- "character": 26
338
- },
339
- "name": "Component"
340
- },
341
- "isOptional": false,
342
- "isSpread": false
343
- }
344
- ],
345
- "returnType": {
346
- "__schema": "TypeUnionSchema",
347
- "location": {
348
- "filePath": "forking.main.runtime.ts",
349
- "line": 87,
350
- "character": 38
351
- },
352
- "types": [
353
- {
354
- "__schema": "TypeRefSchema",
355
- "location": {
356
- "filePath": "forking.main.runtime.ts",
357
- "line": 87,
358
- "character": 38
359
- },
360
- "name": "ForkInfo"
361
- },
362
- {
363
- "__schema": "LiteralTypeSchema",
364
- "location": {
365
- "filePath": "forking.main.runtime.ts",
366
- "line": 87,
367
- "character": 49
368
- },
369
- "name": "null"
370
- }
371
- ]
372
- },
373
- "modifiers": []
374
- },
375
- {
376
- "__schema": "FunctionLikeSchema",
377
- "location": {
378
- "filePath": "forking.main.runtime.ts",
379
- "line": 95,
380
- "character": 3
381
- },
382
- "signature": "(method) ForkingMain.forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<{\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n}[]>",
383
- "name": "forkMultipleFromRemote",
384
- "params": [
385
- {
386
- "__schema": "ParameterSchema",
387
- "location": {
388
- "filePath": "forking.main.runtime.ts",
389
- "line": 95,
390
- "character": 32
391
- },
392
- "name": "componentsToFork",
393
- "type": {
394
- "__schema": "TypeRefSchema",
395
- "location": {
396
- "filePath": "forking.main.runtime.ts",
397
- "line": 95,
398
- "character": 50
399
- },
400
- "name": "MultipleComponentsToFork"
401
- },
402
- "isOptional": false,
403
- "isSpread": false
404
- },
405
- {
406
- "__schema": "ParameterSchema",
407
- "location": {
408
- "filePath": "forking.main.runtime.ts",
409
- "line": 95,
410
- "character": 76
411
- },
412
- "name": "options",
413
- "type": {
414
- "__schema": "TypeRefSchema",
415
- "location": {
416
- "filePath": "forking.main.runtime.ts",
417
- "line": 95,
418
- "character": 85
419
- },
420
- "name": "MultipleForkOptions"
421
- },
422
- "isOptional": true,
423
- "defaultValue": "{}",
424
- "isSpread": false
425
- }
426
- ],
427
- "returnType": {
428
- "__schema": "InferenceTypeSchema",
429
- "location": {
430
- "filePath": "forking.main.runtime.ts",
431
- "line": 95,
432
- "character": 3
433
- },
434
- "type": "Promise<{\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n}[]>"
435
- },
436
- "modifiers": [
437
- "async"
438
- ]
439
- },
440
- {
441
- "__schema": "FunctionLikeSchema",
442
- "location": {
443
- "filePath": "forking.main.runtime.ts",
444
- "line": 203,
445
- "character": 3
446
- },
447
- "doc": {
448
- "__schema": "DocSchema",
449
- "location": {
450
- "filePath": "forking.main.runtime.ts",
451
- "line": 200,
452
- "character": 3
453
- },
454
- "raw": "/**\n * fork all components of the given scope\n */",
455
- "comment": "fork all components of the given scope",
456
- "tags": []
457
- },
458
- "signature": "(method) ForkingMain.forkScope(originalScope: string, newOptionalScope?: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
459
- "name": "forkScope",
460
- "params": [
461
- {
462
- "__schema": "ParameterSchema",
463
- "location": {
464
- "filePath": "forking.main.runtime.ts",
465
- "line": 204,
466
- "character": 5
467
- },
468
- "name": "originalScope",
469
- "type": {
470
- "__schema": "KeywordTypeSchema",
471
- "location": {
472
- "filePath": "forking.main.runtime.ts",
473
- "line": 204,
474
- "character": 20
475
- },
476
- "name": "string"
477
- },
478
- "isOptional": false,
479
- "isSpread": false
480
- },
481
- {
482
- "__schema": "ParameterSchema",
483
- "location": {
484
- "filePath": "forking.main.runtime.ts",
485
- "line": 205,
486
- "character": 5
487
- },
488
- "name": "newOptionalScope",
489
- "type": {
490
- "__schema": "KeywordTypeSchema",
491
- "location": {
492
- "filePath": "forking.main.runtime.ts",
493
- "line": 205,
494
- "character": 24
495
- },
496
- "name": "string"
497
- },
498
- "isOptional": true,
499
- "isSpread": false
500
- },
501
- {
502
- "__schema": "ParameterSchema",
503
- "location": {
504
- "filePath": "forking.main.runtime.ts",
505
- "line": 206,
506
- "character": 5
507
- },
508
- "name": "pattern",
509
- "type": {
510
- "__schema": "KeywordTypeSchema",
511
- "location": {
512
- "filePath": "forking.main.runtime.ts",
513
- "line": 206,
514
- "character": 15
515
- },
516
- "name": "string"
517
- },
518
- "isOptional": true,
519
- "isSpread": false
520
- },
521
- {
522
- "__schema": "ParameterSchema",
523
- "location": {
524
- "filePath": "forking.main.runtime.ts",
525
- "line": 207,
526
- "character": 5
527
- },
528
- "name": "options",
529
- "type": {
530
- "__schema": "TypeRefSchema",
531
- "location": {
532
- "filePath": "forking.main.runtime.ts",
533
- "line": 207,
534
- "character": 15
535
- },
536
- "name": "ScopeForkOptions"
537
- },
538
- "isOptional": true,
539
- "isSpread": false
540
- }
541
- ],
542
- "returnType": {
543
- "__schema": "TypeRefSchema",
544
- "location": {
545
- "filePath": "forking.main.runtime.ts",
546
- "line": 208,
547
- "character": 6
548
- },
549
- "name": "Promise",
550
- "typeArgs": [
551
- {
552
- "__schema": "TypeArraySchema",
553
- "location": {
554
- "filePath": "forking.main.runtime.ts",
555
- "line": 208,
556
- "character": 14
557
- },
558
- "type": {
559
- "__schema": "TypeRefSchema",
560
- "location": {
561
- "filePath": "forking.main.runtime.ts",
562
- "line": 208,
563
- "character": 14
564
- },
565
- "name": "ComponentID"
566
- }
567
- }
568
- ]
569
- },
570
- "modifiers": [
571
- "async"
572
- ]
573
- },
574
- {
575
- "__schema": "FunctionLikeSchema",
576
- "location": {
577
- "filePath": "forking.main.runtime.ts",
578
- "line": 272,
579
- "character": 3
580
- },
581
- "signature": "(method) ForkingMain.forkRemoteComponent(sourceId: ComponentID, targetId?: string, options?: ForkOptions, shouldRefactorVariablesAndClasses?: boolean): Promise<{\n targetCompId: ComponentID;\n component: Component;\n}>",
582
- "name": "forkRemoteComponent",
583
- "params": [
584
- {
585
- "__schema": "ParameterSchema",
586
- "location": {
587
- "filePath": "forking.main.runtime.ts",
588
- "line": 273,
589
- "character": 5
590
- },
591
- "name": "sourceId",
592
- "type": {
593
- "__schema": "TypeRefSchema",
594
- "location": {
595
- "filePath": "forking.main.runtime.ts",
596
- "line": 273,
597
- "character": 15
598
- },
599
- "name": "ComponentID"
600
- },
601
- "isOptional": false,
602
- "isSpread": false
603
- },
604
- {
605
- "__schema": "ParameterSchema",
606
- "location": {
607
- "filePath": "forking.main.runtime.ts",
608
- "line": 274,
609
- "character": 5
610
- },
611
- "name": "targetId",
612
- "type": {
613
- "__schema": "KeywordTypeSchema",
614
- "location": {
615
- "filePath": "forking.main.runtime.ts",
616
- "line": 274,
617
- "character": 16
618
- },
619
- "name": "string"
620
- },
621
- "isOptional": true,
622
- "isSpread": false
623
- },
624
- {
625
- "__schema": "ParameterSchema",
626
- "location": {
627
- "filePath": "forking.main.runtime.ts",
628
- "line": 275,
629
- "character": 5
630
- },
631
- "name": "options",
632
- "type": {
633
- "__schema": "TypeRefSchema",
634
- "location": {
635
- "filePath": "forking.main.runtime.ts",
636
- "line": 275,
637
- "character": 15
638
- },
639
- "name": "ForkOptions"
640
- },
641
- "isOptional": true,
642
- "isSpread": false
643
- },
644
- {
645
- "__schema": "ParameterSchema",
646
- "location": {
647
- "filePath": "forking.main.runtime.ts",
648
- "line": 276,
649
- "character": 5
650
- },
651
- "name": "shouldRefactorVariablesAndClasses",
652
- "type": {
653
- "__schema": "InferenceTypeSchema",
654
- "location": {
655
- "filePath": "forking.main.runtime.ts",
656
- "line": 276,
657
- "character": 5
658
- },
659
- "type": "boolean"
660
- },
661
- "isOptional": true,
662
- "defaultValue": "true",
663
- "isSpread": false
664
- }
665
- ],
666
- "returnType": {
667
- "__schema": "TypeRefSchema",
668
- "location": {
669
- "filePath": "forking.main.runtime.ts",
670
- "line": 277,
671
- "character": 6
672
- },
673
- "name": "Promise",
674
- "typeArgs": [
675
- {
676
- "__schema": "TypeLiteralSchema",
677
- "location": {
678
- "filePath": "forking.main.runtime.ts",
679
- "line": 277,
680
- "character": 14
681
- },
682
- "members": [
683
- {
684
- "__schema": "VariableLikeSchema",
685
- "location": {
686
- "filePath": "forking.main.runtime.ts",
687
- "line": 278,
688
- "character": 5
689
- },
690
- "signature": "(property) targetCompId: ComponentID",
691
- "name": "targetCompId",
692
- "type": {
693
- "__schema": "TypeRefSchema",
694
- "location": {
695
- "filePath": "forking.main.runtime.ts",
696
- "line": 278,
697
- "character": 5
698
- },
699
- "name": "ComponentID",
700
- "componentId": {
701
- "scope": "teambit.component",
702
- "name": "component-id",
703
- "version": "1.2.2"
704
- }
705
- },
706
- "isOptional": false
707
- },
708
- {
709
- "__schema": "VariableLikeSchema",
710
- "location": {
711
- "filePath": "forking.main.runtime.ts",
712
- "line": 279,
713
- "character": 5
714
- },
715
- "signature": "(property) component: Component",
716
- "name": "component",
717
- "type": {
718
- "__schema": "TypeRefSchema",
719
- "location": {
720
- "filePath": "forking.main.runtime.ts",
721
- "line": 279,
722
- "character": 5
723
- },
724
- "name": "Component",
725
- "componentId": {
726
- "scope": "teambit.component",
727
- "name": "component"
728
- }
729
- },
730
- "isOptional": false
731
- }
732
- ]
733
- }
734
- ]
735
- },
736
- "modifiers": [
737
- "async"
738
- ]
739
- },
740
- {
741
- "__schema": "VariableLikeSchema",
742
- "location": {
743
- "filePath": "forking.main.runtime.ts",
744
- "line": 370,
745
- "character": 3
746
- },
747
- "signature": "(property) ForkingMain.slots: never[]",
748
- "name": "slots",
749
- "type": {
750
- "__schema": "InferenceTypeSchema",
751
- "location": {
752
- "filePath": "forking.main.runtime.ts",
753
- "line": 370,
754
- "character": 3
755
- },
756
- "type": "never[]"
757
- },
758
- "isOptional": true,
759
- "defaultValue": "[]"
760
- },
761
- {
762
- "__schema": "VariableLikeSchema",
763
- "location": {
764
- "filePath": "forking.main.runtime.ts",
765
- "line": 371,
766
- "character": 3
767
- },
768
- "signature": "(property) ForkingMain.dependencies: Aspect[]",
769
- "name": "dependencies",
770
- "type": {
771
- "__schema": "InferenceTypeSchema",
772
- "location": {
773
- "filePath": "forking.main.runtime.ts",
774
- "line": 371,
775
- "character": 3
776
- },
777
- "type": "Aspect[]"
778
- },
779
- "isOptional": true,
780
- "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n ScopeAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ]"
781
- },
782
- {
783
- "__schema": "VariableLikeSchema",
784
- "location": {
785
- "filePath": "forking.main.runtime.ts",
786
- "line": 383,
787
- "character": 3
788
- },
789
- "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
790
- "name": "runtime",
791
- "type": {
792
- "__schema": "InferenceTypeSchema",
793
- "location": {
794
- "filePath": "forking.main.runtime.ts",
795
- "line": 383,
796
- "character": 3
797
- },
798
- "type": "RuntimeDefinition"
799
- },
800
- "isOptional": true,
801
- "defaultValue": "MainRuntime"
802
- },
803
- {
804
- "__schema": "FunctionLikeSchema",
805
- "location": {
806
- "filePath": "forking.main.runtime.ts",
807
- "line": 384,
808
- "character": 3
809
- },
810
- "signature": "(method) ForkingMain.provider([cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n ScopeMain,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
811
- "name": "provider",
812
- "params": [
813
- {
814
- "__schema": "ParameterSchema",
815
- "location": {
816
- "filePath": "forking.main.runtime.ts",
817
- "line": 384,
818
- "character": 25
819
- },
820
- "name": "[ cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
821
- "type": {
822
- "__schema": "TupleTypeSchema",
823
- "location": {
824
- "filePath": "forking.main.runtime.ts",
825
- "line": 395,
826
- "character": 6
827
- },
828
- "elements": [
829
- {
830
- "__schema": "TypeRefSchema",
831
- "location": {
832
- "filePath": "forking.main.runtime.ts",
833
- "line": 396,
834
- "character": 5
835
- },
836
- "name": "CLIMain"
837
- },
838
- {
839
- "__schema": "TypeRefSchema",
840
- "location": {
841
- "filePath": "forking.main.runtime.ts",
842
- "line": 397,
843
- "character": 5
844
- },
845
- "name": "Workspace"
846
- },
847
- {
848
- "__schema": "TypeRefSchema",
849
- "location": {
850
- "filePath": "forking.main.runtime.ts",
851
- "line": 398,
852
- "character": 5
853
- },
854
- "name": "ScopeMain"
855
- },
856
- {
857
- "__schema": "TypeRefSchema",
858
- "location": {
859
- "filePath": "forking.main.runtime.ts",
860
- "line": 399,
861
- "character": 5
862
- },
863
- "name": "DependencyResolverMain"
864
- },
865
- {
866
- "__schema": "TypeRefSchema",
867
- "location": {
868
- "filePath": "forking.main.runtime.ts",
869
- "line": 400,
870
- "character": 5
871
- },
872
- "name": "ComponentMain"
873
- },
874
- {
875
- "__schema": "TypeRefSchema",
876
- "location": {
877
- "filePath": "forking.main.runtime.ts",
878
- "line": 401,
879
- "character": 5
880
- },
881
- "name": "NewComponentHelperMain"
882
- },
883
- {
884
- "__schema": "TypeRefSchema",
885
- "location": {
886
- "filePath": "forking.main.runtime.ts",
887
- "line": 402,
888
- "character": 5
889
- },
890
- "name": "GraphqlMain"
891
- },
892
- {
893
- "__schema": "TypeRefSchema",
894
- "location": {
895
- "filePath": "forking.main.runtime.ts",
896
- "line": 403,
897
- "character": 5
898
- },
899
- "name": "RefactoringMain"
900
- },
901
- {
902
- "__schema": "TypeRefSchema",
903
- "location": {
904
- "filePath": "forking.main.runtime.ts",
905
- "line": 404,
906
- "character": 5
907
- },
908
- "name": "PkgMain"
909
- },
910
- {
911
- "__schema": "TypeRefSchema",
912
- "location": {
913
- "filePath": "forking.main.runtime.ts",
914
- "line": 405,
915
- "character": 5
916
- },
917
- "name": "InstallMain"
918
- }
919
- ]
920
- },
921
- "isOptional": false,
922
- "isSpread": false
923
- }
924
- ],
925
- "returnType": {
926
- "__schema": "InferenceTypeSchema",
927
- "location": {
928
- "filePath": "forking.main.runtime.ts",
929
- "line": 384,
930
- "character": 3
931
- },
932
- "type": "Promise<ForkingMain>"
933
- },
934
- "modifiers": [
935
- "static",
936
- "async"
937
- ]
938
- }
939
- ],
940
- "extendsNodes": [],
941
- "implementNodes": []
942
- }
943
- },
944
- {
945
- "__schema": "UnImplementedSchema",
946
- "location": {
947
- "filePath": "index.ts",
948
- "line": 4,
949
- "character": 16
950
- },
951
- "name": "ForkingAspect",
952
- "type": "Identifier"
953
- },
954
- {
955
- "__schema": "ExportSchema",
956
- "location": {
957
- "filePath": "index.ts",
958
- "line": 5,
959
- "character": 10
960
- },
961
- "signature": "const ForkingAspect: Aspect",
962
- "name": "ForkingAspect",
963
- "exportNode": {
964
- "__schema": "VariableLikeSchema",
965
- "location": {
966
- "filePath": "forking.aspect.ts",
967
- "line": 3,
968
- "character": 14
969
- },
970
- "signature": "const ForkingAspect: Aspect",
971
- "name": "ForkingAspect",
972
- "type": {
973
- "__schema": "TypeRefSchema",
974
- "location": {
975
- "filePath": "forking.aspect.ts",
976
- "line": 3,
977
- "character": 14
978
- },
979
- "name": "Aspect",
980
- "componentId": {
981
- "scope": "teambit.harmony",
982
- "name": "harmony",
983
- "version": "0.4.6"
984
- }
985
- },
986
- "isOptional": false,
987
- "defaultValue": "Aspect.create({\n id: 'teambit.component/forking',\n})"
988
- }
989
- }
990
- ],
991
- "internals": []
992
- },
993
- "internals": [
994
- {
995
- "__schema": "ModuleSchema",
996
- "location": {
997
- "filePath": "forking.main.runtime.ts",
998
- "line": 1,
999
- "character": 1
1000
- },
1001
- "exports": [
1002
- {
1003
- "__schema": "TypeSchema",
1004
- "location": {
1005
- "filePath": "forking.main.runtime.ts",
1006
- "line": 26,
1007
- "character": 1
1008
- },
1009
- "signature": "type ForkInfo = {\n forkedFrom: ComponentID;\n}",
1010
- "name": "ForkInfo",
1011
- "type": {
1012
- "__schema": "TypeLiteralSchema",
1013
- "location": {
1014
- "filePath": "forking.main.runtime.ts",
1015
- "line": 26,
1016
- "character": 24
1017
- },
1018
- "members": [
1019
- {
1020
- "__schema": "VariableLikeSchema",
1021
- "location": {
1022
- "filePath": "forking.main.runtime.ts",
1023
- "line": 27,
1024
- "character": 3
1025
- },
1026
- "signature": "(property) forkedFrom: ComponentID",
1027
- "name": "forkedFrom",
1028
- "type": {
1029
- "__schema": "TypeRefSchema",
1030
- "location": {
1031
- "filePath": "forking.main.runtime.ts",
1032
- "line": 27,
1033
- "character": 3
1034
- },
1035
- "name": "ComponentID",
1036
- "componentId": {
1037
- "scope": "teambit.component",
1038
- "name": "component-id",
1039
- "version": "1.2.2"
1040
- }
1041
- },
1042
- "isOptional": false
1043
- }
1044
- ]
1045
- }
1046
- },
1047
- {
1048
- "__schema": "ClassSchema",
1049
- "location": {
1050
- "filePath": "forking.main.runtime.ts",
1051
- "line": 53,
1052
- "character": 1
1053
- },
1054
- "signature": "class ForkingMain",
1055
- "name": "ForkingMain",
1056
- "members": [
1057
- {
1058
- "__schema": "ConstructorSchema",
1059
- "location": {
1060
- "filePath": "forking.main.runtime.ts",
1061
- "line": 54,
1062
- "character": 3
1063
- },
1064
- "signature": "constructor ForkingMain(workspace: Workspace, scope: ScopeMain, install: InstallMain, dependencyResolver: DependencyResolverMain, newComponentHelper: NewComponentHelperMain, refactoring: RefactoringMain, pkg: PkgMain): ForkingMain",
1065
- "name": "constructor",
1066
- "params": [
1067
- {
1068
- "__schema": "ParameterSchema",
1069
- "location": {
1070
- "filePath": "forking.main.runtime.ts",
1071
- "line": 55,
1072
- "character": 5
1073
- },
1074
- "name": "workspace",
1075
- "type": {
1076
- "__schema": "TypeRefSchema",
1077
- "location": {
1078
- "filePath": "forking.main.runtime.ts",
1079
- "line": 55,
1080
- "character": 24
1081
- },
1082
- "name": "Workspace"
1083
- },
1084
- "isOptional": false,
1085
- "isSpread": false
1086
- },
1087
- {
1088
- "__schema": "ParameterSchema",
1089
- "location": {
1090
- "filePath": "forking.main.runtime.ts",
1091
- "line": 56,
1092
- "character": 5
1093
- },
1094
- "name": "scope",
1095
- "type": {
1096
- "__schema": "TypeRefSchema",
1097
- "location": {
1098
- "filePath": "forking.main.runtime.ts",
1099
- "line": 56,
1100
- "character": 20
1101
- },
1102
- "name": "ScopeMain"
1103
- },
1104
- "isOptional": false,
1105
- "isSpread": false
1106
- },
1107
- {
1108
- "__schema": "ParameterSchema",
1109
- "location": {
1110
- "filePath": "forking.main.runtime.ts",
1111
- "line": 57,
1112
- "character": 5
1113
- },
1114
- "name": "install",
1115
- "type": {
1116
- "__schema": "TypeRefSchema",
1117
- "location": {
1118
- "filePath": "forking.main.runtime.ts",
1119
- "line": 57,
1120
- "character": 22
1121
- },
1122
- "name": "InstallMain"
1123
- },
1124
- "isOptional": false,
1125
- "isSpread": false
1126
- },
1127
- {
1128
- "__schema": "ParameterSchema",
1129
- "location": {
1130
- "filePath": "forking.main.runtime.ts",
1131
- "line": 58,
1132
- "character": 5
1133
- },
1134
- "name": "dependencyResolver",
1135
- "type": {
1136
- "__schema": "TypeRefSchema",
1137
- "location": {
1138
- "filePath": "forking.main.runtime.ts",
1139
- "line": 58,
1140
- "character": 33
1141
- },
1142
- "name": "DependencyResolverMain"
1143
- },
1144
- "isOptional": false,
1145
- "isSpread": false
1146
- },
1147
- {
1148
- "__schema": "ParameterSchema",
1149
- "location": {
1150
- "filePath": "forking.main.runtime.ts",
1151
- "line": 59,
1152
- "character": 5
1153
- },
1154
- "name": "newComponentHelper",
1155
- "type": {
1156
- "__schema": "TypeRefSchema",
1157
- "location": {
1158
- "filePath": "forking.main.runtime.ts",
1159
- "line": 59,
1160
- "character": 33
1161
- },
1162
- "name": "NewComponentHelperMain"
1163
- },
1164
- "isOptional": false,
1165
- "isSpread": false
1166
- },
1167
- {
1168
- "__schema": "ParameterSchema",
1169
- "location": {
1170
- "filePath": "forking.main.runtime.ts",
1171
- "line": 60,
1172
- "character": 5
1173
- },
1174
- "name": "refactoring",
1175
- "type": {
1176
- "__schema": "TypeRefSchema",
1177
- "location": {
1178
- "filePath": "forking.main.runtime.ts",
1179
- "line": 60,
1180
- "character": 26
1181
- },
1182
- "name": "RefactoringMain"
1183
- },
1184
- "isOptional": false,
1185
- "isSpread": false
1186
- },
1187
- {
1188
- "__schema": "ParameterSchema",
1189
- "location": {
1190
- "filePath": "forking.main.runtime.ts",
1191
- "line": 61,
1192
- "character": 5
1193
- },
1194
- "name": "pkg",
1195
- "type": {
1196
- "__schema": "TypeRefSchema",
1197
- "location": {
1198
- "filePath": "forking.main.runtime.ts",
1199
- "line": 61,
1200
- "character": 18
1201
- },
1202
- "name": "PkgMain"
1203
- },
1204
- "isOptional": false,
1205
- "isSpread": false
1206
- }
1207
- ],
1208
- "returnType": {
1209
- "__schema": "ThisTypeSchema",
1210
- "location": {
1211
- "filePath": "forking.main.runtime.ts",
1212
- "line": 53,
1213
- "character": 1
1214
- },
1215
- "name": "ForkingMain"
1216
- },
1217
- "modifiers": []
1218
- },
1219
- {
1220
- "__schema": "FunctionLikeSchema",
1221
- "location": {
1222
- "filePath": "forking.main.runtime.ts",
1223
- "line": 69,
1224
- "character": 3
1225
- },
1226
- "doc": {
1227
- "__schema": "DocSchema",
1228
- "location": {
1229
- "filePath": "forking.main.runtime.ts",
1230
- "line": 64,
1231
- "character": 3
1232
- },
1233
- "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 */",
1234
- "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.",
1235
- "tags": []
1236
- },
1237
- "signature": "(method) ForkingMain.fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID>",
1238
- "name": "fork",
1239
- "params": [
1240
- {
1241
- "__schema": "ParameterSchema",
1242
- "location": {
1243
- "filePath": "forking.main.runtime.ts",
1244
- "line": 69,
1245
- "character": 14
1246
- },
1247
- "name": "sourceId",
1248
- "type": {
1249
- "__schema": "KeywordTypeSchema",
1250
- "location": {
1251
- "filePath": "forking.main.runtime.ts",
1252
- "line": 69,
1253
- "character": 24
1254
- },
1255
- "name": "string"
1256
- },
1257
- "isOptional": false,
1258
- "isSpread": false
1259
- },
1260
- {
1261
- "__schema": "ParameterSchema",
1262
- "location": {
1263
- "filePath": "forking.main.runtime.ts",
1264
- "line": 69,
1265
- "character": 32
1266
- },
1267
- "name": "targetId",
1268
- "type": {
1269
- "__schema": "KeywordTypeSchema",
1270
- "location": {
1271
- "filePath": "forking.main.runtime.ts",
1272
- "line": 69,
1273
- "character": 43
1274
- },
1275
- "name": "string"
1276
- },
1277
- "isOptional": true,
1278
- "isSpread": false
1279
- },
1280
- {
1281
- "__schema": "ParameterSchema",
1282
- "location": {
1283
- "filePath": "forking.main.runtime.ts",
1284
- "line": 69,
1285
- "character": 51
1286
- },
1287
- "name": "options",
1288
- "type": {
1289
- "__schema": "TypeRefSchema",
1290
- "location": {
1291
- "filePath": "forking.main.runtime.ts",
1292
- "line": 69,
1293
- "character": 61
1294
- },
1295
- "name": "ForkOptions"
1296
- },
1297
- "isOptional": true,
1298
- "isSpread": false
1299
- }
1300
- ],
1301
- "returnType": {
1302
- "__schema": "TypeRefSchema",
1303
- "location": {
1304
- "filePath": "forking.main.runtime.ts",
1305
- "line": 69,
1306
- "character": 75
1307
- },
1308
- "name": "Promise",
1309
- "typeArgs": [
1310
- {
1311
- "__schema": "TypeRefSchema",
1312
- "location": {
1313
- "filePath": "forking.main.runtime.ts",
1314
- "line": 69,
1315
- "character": 83
1316
- },
1317
- "name": "ComponentID"
1318
- }
1319
- ]
1320
- },
1321
- "modifiers": [
1322
- "async"
1323
- ]
1324
- },
1325
- {
1326
- "__schema": "FunctionLikeSchema",
1327
- "location": {
1328
- "filePath": "forking.main.runtime.ts",
1329
- "line": 87,
1330
- "character": 3
1331
- },
1332
- "doc": {
1333
- "__schema": "DocSchema",
1334
- "location": {
1335
- "filePath": "forking.main.runtime.ts",
1336
- "line": 84,
1337
- "character": 3
1338
- },
1339
- "raw": "/**\n * get the forking data, such as the source where a component was forked from\n */",
1340
- "comment": "get the forking data, such as the source where a component was forked from",
1341
- "tags": []
1342
- },
1343
- "signature": "(method) ForkingMain.getForkInfo(component: Component): ForkInfo | null",
1344
- "name": "getForkInfo",
1345
- "params": [
1346
- {
1347
- "__schema": "ParameterSchema",
1348
- "location": {
1349
- "filePath": "forking.main.runtime.ts",
1350
- "line": 87,
1351
- "character": 15
1352
- },
1353
- "name": "component",
1354
- "type": {
1355
- "__schema": "TypeRefSchema",
1356
- "location": {
1357
- "filePath": "forking.main.runtime.ts",
1358
- "line": 87,
1359
- "character": 26
1360
- },
1361
- "name": "Component"
1362
- },
1363
- "isOptional": false,
1364
- "isSpread": false
1365
- }
1366
- ],
1367
- "returnType": {
1368
- "__schema": "TypeUnionSchema",
1369
- "location": {
1370
- "filePath": "forking.main.runtime.ts",
1371
- "line": 87,
1372
- "character": 38
1373
- },
1374
- "types": [
1375
- {
1376
- "__schema": "TypeRefSchema",
1377
- "location": {
1378
- "filePath": "forking.main.runtime.ts",
1379
- "line": 87,
1380
- "character": 38
1381
- },
1382
- "name": "ForkInfo"
1383
- },
1384
- {
1385
- "__schema": "LiteralTypeSchema",
1386
- "location": {
1387
- "filePath": "forking.main.runtime.ts",
1388
- "line": 87,
1389
- "character": 49
1390
- },
1391
- "name": "null"
1392
- }
1393
- ]
1394
- },
1395
- "modifiers": []
1396
- },
1397
- {
1398
- "__schema": "FunctionLikeSchema",
1399
- "location": {
1400
- "filePath": "forking.main.runtime.ts",
1401
- "line": 95,
1402
- "character": 3
1403
- },
1404
- "signature": "(method) ForkingMain.forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options?: MultipleForkOptions): Promise<{\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n}[]>",
1405
- "name": "forkMultipleFromRemote",
1406
- "params": [
1407
- {
1408
- "__schema": "ParameterSchema",
1409
- "location": {
1410
- "filePath": "forking.main.runtime.ts",
1411
- "line": 95,
1412
- "character": 32
1413
- },
1414
- "name": "componentsToFork",
1415
- "type": {
1416
- "__schema": "TypeRefSchema",
1417
- "location": {
1418
- "filePath": "forking.main.runtime.ts",
1419
- "line": 95,
1420
- "character": 50
1421
- },
1422
- "name": "MultipleComponentsToFork"
1423
- },
1424
- "isOptional": false,
1425
- "isSpread": false
1426
- },
1427
- {
1428
- "__schema": "ParameterSchema",
1429
- "location": {
1430
- "filePath": "forking.main.runtime.ts",
1431
- "line": 95,
1432
- "character": 76
1433
- },
1434
- "name": "options",
1435
- "type": {
1436
- "__schema": "TypeRefSchema",
1437
- "location": {
1438
- "filePath": "forking.main.runtime.ts",
1439
- "line": 95,
1440
- "character": 85
1441
- },
1442
- "name": "MultipleForkOptions"
1443
- },
1444
- "isOptional": true,
1445
- "defaultValue": "{}",
1446
- "isSpread": false
1447
- }
1448
- ],
1449
- "returnType": {
1450
- "__schema": "InferenceTypeSchema",
1451
- "location": {
1452
- "filePath": "forking.main.runtime.ts",
1453
- "line": 95,
1454
- "character": 3
1455
- },
1456
- "type": "Promise<{\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n}[]>"
1457
- },
1458
- "modifiers": [
1459
- "async"
1460
- ]
1461
- },
1462
- {
1463
- "__schema": "FunctionLikeSchema",
1464
- "location": {
1465
- "filePath": "forking.main.runtime.ts",
1466
- "line": 203,
1467
- "character": 3
1468
- },
1469
- "doc": {
1470
- "__schema": "DocSchema",
1471
- "location": {
1472
- "filePath": "forking.main.runtime.ts",
1473
- "line": 200,
1474
- "character": 3
1475
- },
1476
- "raw": "/**\n * fork all components of the given scope\n */",
1477
- "comment": "fork all components of the given scope",
1478
- "tags": []
1479
- },
1480
- "signature": "(method) ForkingMain.forkScope(originalScope: string, newOptionalScope?: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
1481
- "name": "forkScope",
1482
- "params": [
1483
- {
1484
- "__schema": "ParameterSchema",
1485
- "location": {
1486
- "filePath": "forking.main.runtime.ts",
1487
- "line": 204,
1488
- "character": 5
1489
- },
1490
- "name": "originalScope",
1491
- "type": {
1492
- "__schema": "KeywordTypeSchema",
1493
- "location": {
1494
- "filePath": "forking.main.runtime.ts",
1495
- "line": 204,
1496
- "character": 20
1497
- },
1498
- "name": "string"
1499
- },
1500
- "isOptional": false,
1501
- "isSpread": false
1502
- },
1503
- {
1504
- "__schema": "ParameterSchema",
1505
- "location": {
1506
- "filePath": "forking.main.runtime.ts",
1507
- "line": 205,
1508
- "character": 5
1509
- },
1510
- "name": "newOptionalScope",
1511
- "type": {
1512
- "__schema": "KeywordTypeSchema",
1513
- "location": {
1514
- "filePath": "forking.main.runtime.ts",
1515
- "line": 205,
1516
- "character": 24
1517
- },
1518
- "name": "string"
1519
- },
1520
- "isOptional": true,
1521
- "isSpread": false
1522
- },
1523
- {
1524
- "__schema": "ParameterSchema",
1525
- "location": {
1526
- "filePath": "forking.main.runtime.ts",
1527
- "line": 206,
1528
- "character": 5
1529
- },
1530
- "name": "pattern",
1531
- "type": {
1532
- "__schema": "KeywordTypeSchema",
1533
- "location": {
1534
- "filePath": "forking.main.runtime.ts",
1535
- "line": 206,
1536
- "character": 15
1537
- },
1538
- "name": "string"
1539
- },
1540
- "isOptional": true,
1541
- "isSpread": false
1542
- },
1543
- {
1544
- "__schema": "ParameterSchema",
1545
- "location": {
1546
- "filePath": "forking.main.runtime.ts",
1547
- "line": 207,
1548
- "character": 5
1549
- },
1550
- "name": "options",
1551
- "type": {
1552
- "__schema": "TypeRefSchema",
1553
- "location": {
1554
- "filePath": "forking.main.runtime.ts",
1555
- "line": 207,
1556
- "character": 15
1557
- },
1558
- "name": "ScopeForkOptions"
1559
- },
1560
- "isOptional": true,
1561
- "isSpread": false
1562
- }
1563
- ],
1564
- "returnType": {
1565
- "__schema": "TypeRefSchema",
1566
- "location": {
1567
- "filePath": "forking.main.runtime.ts",
1568
- "line": 208,
1569
- "character": 6
1570
- },
1571
- "name": "Promise",
1572
- "typeArgs": [
1573
- {
1574
- "__schema": "TypeArraySchema",
1575
- "location": {
1576
- "filePath": "forking.main.runtime.ts",
1577
- "line": 208,
1578
- "character": 14
1579
- },
1580
- "type": {
1581
- "__schema": "TypeRefSchema",
1582
- "location": {
1583
- "filePath": "forking.main.runtime.ts",
1584
- "line": 208,
1585
- "character": 14
1586
- },
1587
- "name": "ComponentID"
1588
- }
1589
- }
1590
- ]
1591
- },
1592
- "modifiers": [
1593
- "async"
1594
- ]
1595
- },
1596
- {
1597
- "__schema": "FunctionLikeSchema",
1598
- "location": {
1599
- "filePath": "forking.main.runtime.ts",
1600
- "line": 272,
1601
- "character": 3
1602
- },
1603
- "signature": "(method) ForkingMain.forkRemoteComponent(sourceId: ComponentID, targetId?: string, options?: ForkOptions, shouldRefactorVariablesAndClasses?: boolean): Promise<{\n targetCompId: ComponentID;\n component: Component;\n}>",
1604
- "name": "forkRemoteComponent",
1605
- "params": [
1606
- {
1607
- "__schema": "ParameterSchema",
1608
- "location": {
1609
- "filePath": "forking.main.runtime.ts",
1610
- "line": 273,
1611
- "character": 5
1612
- },
1613
- "name": "sourceId",
1614
- "type": {
1615
- "__schema": "TypeRefSchema",
1616
- "location": {
1617
- "filePath": "forking.main.runtime.ts",
1618
- "line": 273,
1619
- "character": 15
1620
- },
1621
- "name": "ComponentID"
1622
- },
1623
- "isOptional": false,
1624
- "isSpread": false
1625
- },
1626
- {
1627
- "__schema": "ParameterSchema",
1628
- "location": {
1629
- "filePath": "forking.main.runtime.ts",
1630
- "line": 274,
1631
- "character": 5
1632
- },
1633
- "name": "targetId",
1634
- "type": {
1635
- "__schema": "KeywordTypeSchema",
1636
- "location": {
1637
- "filePath": "forking.main.runtime.ts",
1638
- "line": 274,
1639
- "character": 16
1640
- },
1641
- "name": "string"
1642
- },
1643
- "isOptional": true,
1644
- "isSpread": false
1645
- },
1646
- {
1647
- "__schema": "ParameterSchema",
1648
- "location": {
1649
- "filePath": "forking.main.runtime.ts",
1650
- "line": 275,
1651
- "character": 5
1652
- },
1653
- "name": "options",
1654
- "type": {
1655
- "__schema": "TypeRefSchema",
1656
- "location": {
1657
- "filePath": "forking.main.runtime.ts",
1658
- "line": 275,
1659
- "character": 15
1660
- },
1661
- "name": "ForkOptions"
1662
- },
1663
- "isOptional": true,
1664
- "isSpread": false
1665
- },
1666
- {
1667
- "__schema": "ParameterSchema",
1668
- "location": {
1669
- "filePath": "forking.main.runtime.ts",
1670
- "line": 276,
1671
- "character": 5
1672
- },
1673
- "name": "shouldRefactorVariablesAndClasses",
1674
- "type": {
1675
- "__schema": "InferenceTypeSchema",
1676
- "location": {
1677
- "filePath": "forking.main.runtime.ts",
1678
- "line": 276,
1679
- "character": 5
1680
- },
1681
- "type": "boolean"
1682
- },
1683
- "isOptional": true,
1684
- "defaultValue": "true",
1685
- "isSpread": false
1686
- }
1687
- ],
1688
- "returnType": {
1689
- "__schema": "TypeRefSchema",
1690
- "location": {
1691
- "filePath": "forking.main.runtime.ts",
1692
- "line": 277,
1693
- "character": 6
1694
- },
1695
- "name": "Promise",
1696
- "typeArgs": [
1697
- {
1698
- "__schema": "TypeLiteralSchema",
1699
- "location": {
1700
- "filePath": "forking.main.runtime.ts",
1701
- "line": 277,
1702
- "character": 14
1703
- },
1704
- "members": [
1705
- {
1706
- "__schema": "VariableLikeSchema",
1707
- "location": {
1708
- "filePath": "forking.main.runtime.ts",
1709
- "line": 278,
1710
- "character": 5
1711
- },
1712
- "signature": "(property) targetCompId: ComponentID",
1713
- "name": "targetCompId",
1714
- "type": {
1715
- "__schema": "TypeRefSchema",
1716
- "location": {
1717
- "filePath": "forking.main.runtime.ts",
1718
- "line": 278,
1719
- "character": 5
1720
- },
1721
- "name": "ComponentID",
1722
- "componentId": {
1723
- "scope": "teambit.component",
1724
- "name": "component-id",
1725
- "version": "1.2.2"
1726
- }
1727
- },
1728
- "isOptional": false
1729
- },
1730
- {
1731
- "__schema": "VariableLikeSchema",
1732
- "location": {
1733
- "filePath": "forking.main.runtime.ts",
1734
- "line": 279,
1735
- "character": 5
1736
- },
1737
- "signature": "(property) component: Component",
1738
- "name": "component",
1739
- "type": {
1740
- "__schema": "TypeRefSchema",
1741
- "location": {
1742
- "filePath": "forking.main.runtime.ts",
1743
- "line": 279,
1744
- "character": 5
1745
- },
1746
- "name": "Component",
1747
- "componentId": {
1748
- "scope": "teambit.component",
1749
- "name": "component"
1750
- }
1751
- },
1752
- "isOptional": false
1753
- }
1754
- ]
1755
- }
1756
- ]
1757
- },
1758
- "modifiers": [
1759
- "async"
1760
- ]
1761
- },
1762
- {
1763
- "__schema": "VariableLikeSchema",
1764
- "location": {
1765
- "filePath": "forking.main.runtime.ts",
1766
- "line": 370,
1767
- "character": 3
1768
- },
1769
- "signature": "(property) ForkingMain.slots: never[]",
1770
- "name": "slots",
1771
- "type": {
1772
- "__schema": "InferenceTypeSchema",
1773
- "location": {
1774
- "filePath": "forking.main.runtime.ts",
1775
- "line": 370,
1776
- "character": 3
1777
- },
1778
- "type": "never[]"
1779
- },
1780
- "isOptional": true,
1781
- "defaultValue": "[]"
1782
- },
1783
- {
1784
- "__schema": "VariableLikeSchema",
1785
- "location": {
1786
- "filePath": "forking.main.runtime.ts",
1787
- "line": 371,
1788
- "character": 3
1789
- },
1790
- "signature": "(property) ForkingMain.dependencies: Aspect[]",
1791
- "name": "dependencies",
1792
- "type": {
1793
- "__schema": "InferenceTypeSchema",
1794
- "location": {
1795
- "filePath": "forking.main.runtime.ts",
1796
- "line": 371,
1797
- "character": 3
1798
- },
1799
- "type": "Aspect[]"
1800
- },
1801
- "isOptional": true,
1802
- "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n ScopeAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ]"
1803
- },
1804
- {
1805
- "__schema": "VariableLikeSchema",
1806
- "location": {
1807
- "filePath": "forking.main.runtime.ts",
1808
- "line": 383,
1809
- "character": 3
1810
- },
1811
- "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
1812
- "name": "runtime",
1813
- "type": {
1814
- "__schema": "InferenceTypeSchema",
1815
- "location": {
1816
- "filePath": "forking.main.runtime.ts",
1817
- "line": 383,
1818
- "character": 3
1819
- },
1820
- "type": "RuntimeDefinition"
1821
- },
1822
- "isOptional": true,
1823
- "defaultValue": "MainRuntime"
1824
- },
1825
- {
1826
- "__schema": "FunctionLikeSchema",
1827
- "location": {
1828
- "filePath": "forking.main.runtime.ts",
1829
- "line": 384,
1830
- "character": 3
1831
- },
1832
- "signature": "(method) ForkingMain.provider([cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n ScopeMain,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
1833
- "name": "provider",
1834
- "params": [
1835
- {
1836
- "__schema": "ParameterSchema",
1837
- "location": {
1838
- "filePath": "forking.main.runtime.ts",
1839
- "line": 384,
1840
- "character": 25
1841
- },
1842
- "name": "[ cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
1843
- "type": {
1844
- "__schema": "TupleTypeSchema",
1845
- "location": {
1846
- "filePath": "forking.main.runtime.ts",
1847
- "line": 395,
1848
- "character": 6
1849
- },
1850
- "elements": [
1851
- {
1852
- "__schema": "TypeRefSchema",
1853
- "location": {
1854
- "filePath": "forking.main.runtime.ts",
1855
- "line": 396,
1856
- "character": 5
1857
- },
1858
- "name": "CLIMain"
1859
- },
1860
- {
1861
- "__schema": "TypeRefSchema",
1862
- "location": {
1863
- "filePath": "forking.main.runtime.ts",
1864
- "line": 397,
1865
- "character": 5
1866
- },
1867
- "name": "Workspace"
1868
- },
1869
- {
1870
- "__schema": "TypeRefSchema",
1871
- "location": {
1872
- "filePath": "forking.main.runtime.ts",
1873
- "line": 398,
1874
- "character": 5
1875
- },
1876
- "name": "ScopeMain"
1877
- },
1878
- {
1879
- "__schema": "TypeRefSchema",
1880
- "location": {
1881
- "filePath": "forking.main.runtime.ts",
1882
- "line": 399,
1883
- "character": 5
1884
- },
1885
- "name": "DependencyResolverMain"
1886
- },
1887
- {
1888
- "__schema": "TypeRefSchema",
1889
- "location": {
1890
- "filePath": "forking.main.runtime.ts",
1891
- "line": 400,
1892
- "character": 5
1893
- },
1894
- "name": "ComponentMain"
1895
- },
1896
- {
1897
- "__schema": "TypeRefSchema",
1898
- "location": {
1899
- "filePath": "forking.main.runtime.ts",
1900
- "line": 401,
1901
- "character": 5
1902
- },
1903
- "name": "NewComponentHelperMain"
1904
- },
1905
- {
1906
- "__schema": "TypeRefSchema",
1907
- "location": {
1908
- "filePath": "forking.main.runtime.ts",
1909
- "line": 402,
1910
- "character": 5
1911
- },
1912
- "name": "GraphqlMain"
1913
- },
1914
- {
1915
- "__schema": "TypeRefSchema",
1916
- "location": {
1917
- "filePath": "forking.main.runtime.ts",
1918
- "line": 403,
1919
- "character": 5
1920
- },
1921
- "name": "RefactoringMain"
1922
- },
1923
- {
1924
- "__schema": "TypeRefSchema",
1925
- "location": {
1926
- "filePath": "forking.main.runtime.ts",
1927
- "line": 404,
1928
- "character": 5
1929
- },
1930
- "name": "PkgMain"
1931
- },
1932
- {
1933
- "__schema": "TypeRefSchema",
1934
- "location": {
1935
- "filePath": "forking.main.runtime.ts",
1936
- "line": 405,
1937
- "character": 5
1938
- },
1939
- "name": "InstallMain"
1940
- }
1941
- ]
1942
- },
1943
- "isOptional": false,
1944
- "isSpread": false
1945
- }
1946
- ],
1947
- "returnType": {
1948
- "__schema": "InferenceTypeSchema",
1949
- "location": {
1950
- "filePath": "forking.main.runtime.ts",
1951
- "line": 384,
1952
- "character": 3
1953
- },
1954
- "type": "Promise<ForkingMain>"
1955
- },
1956
- "modifiers": [
1957
- "static",
1958
- "async"
1959
- ]
1960
- }
1961
- ],
1962
- "extendsNodes": [],
1963
- "implementNodes": []
1964
- },
1965
- {
1966
- "__schema": "TypeSchema",
1967
- "location": {
1968
- "filePath": "forking.main.runtime.ts",
1969
- "line": 429,
1970
- "character": 1
1971
- },
1972
- "signature": "type ForkConfig = {\n forkedFrom: ComponentIdObj;\n}",
1973
- "name": "ForkConfig",
1974
- "type": {
1975
- "__schema": "TypeLiteralSchema",
1976
- "location": {
1977
- "filePath": "forking.main.runtime.ts",
1978
- "line": 429,
1979
- "character": 26
1980
- },
1981
- "members": [
1982
- {
1983
- "__schema": "VariableLikeSchema",
1984
- "location": {
1985
- "filePath": "forking.main.runtime.ts",
1986
- "line": 430,
1987
- "character": 3
1988
- },
1989
- "signature": "(property) forkedFrom: ComponentIdObj",
1990
- "name": "forkedFrom",
1991
- "type": {
1992
- "__schema": "TypeRefSchema",
1993
- "location": {
1994
- "filePath": "forking.main.runtime.ts",
1995
- "line": 430,
1996
- "character": 3
1997
- },
1998
- "name": "ComponentIdObj",
1999
- "componentId": {
2000
- "scope": "teambit.component",
2001
- "name": "component-id",
2002
- "version": "1.2.2"
2003
- }
2004
- },
2005
- "isOptional": false
2006
- }
2007
- ]
2008
- }
2009
- }
2010
- ],
2011
- "internals": [
2012
- {
2013
- "__schema": "TypeSchema",
2014
- "location": {
2015
- "filePath": "forking.main.runtime.ts",
2016
- "line": 30,
2017
- "character": 1
2018
- },
2019
- "signature": "type MultipleForkInfo = {\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n}",
2020
- "name": "MultipleForkInfo",
2021
- "type": {
2022
- "__schema": "TypeLiteralSchema",
2023
- "location": {
2024
- "filePath": "forking.main.runtime.ts",
2025
- "line": 30,
2026
- "character": 25
2027
- },
2028
- "members": [
2029
- {
2030
- "__schema": "VariableLikeSchema",
2031
- "location": {
2032
- "filePath": "forking.main.runtime.ts",
2033
- "line": 31,
2034
- "character": 3
2035
- },
2036
- "signature": "(property) targetCompId: ComponentID",
2037
- "name": "targetCompId",
2038
- "type": {
2039
- "__schema": "TypeRefSchema",
2040
- "location": {
2041
- "filePath": "forking.main.runtime.ts",
2042
- "line": 31,
2043
- "character": 3
2044
- },
2045
- "name": "ComponentID",
2046
- "componentId": {
2047
- "scope": "teambit.component",
2048
- "name": "component-id",
2049
- "version": "1.2.2"
2050
- }
2051
- },
2052
- "isOptional": false
2053
- },
2054
- {
2055
- "__schema": "VariableLikeSchema",
2056
- "location": {
2057
- "filePath": "forking.main.runtime.ts",
2058
- "line": 32,
2059
- "character": 3
2060
- },
2061
- "signature": "(property) sourceId: string",
2062
- "name": "sourceId",
2063
- "type": {
2064
- "__schema": "KeywordTypeSchema",
2065
- "location": {
2066
- "filePath": "forking.main.runtime.ts",
2067
- "line": 32,
2068
- "character": 13
2069
- },
2070
- "name": "string"
2071
- },
2072
- "isOptional": false
2073
- },
2074
- {
2075
- "__schema": "VariableLikeSchema",
2076
- "location": {
2077
- "filePath": "forking.main.runtime.ts",
2078
- "line": 33,
2079
- "character": 3
2080
- },
2081
- "signature": "(property) component: Component",
2082
- "name": "component",
2083
- "type": {
2084
- "__schema": "TypeRefSchema",
2085
- "location": {
2086
- "filePath": "forking.main.runtime.ts",
2087
- "line": 33,
2088
- "character": 3
2089
- },
2090
- "name": "Component",
2091
- "componentId": {
2092
- "scope": "teambit.component",
2093
- "name": "component"
2094
- }
2095
- },
2096
- "isOptional": false
2097
- }
2098
- ]
2099
- }
2100
- },
2101
- {
2102
- "__schema": "TypeSchema",
2103
- "location": {
2104
- "filePath": "forking.main.runtime.ts",
2105
- "line": 36,
2106
- "character": 1
2107
- },
2108
- "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}[]",
2109
- "name": "MultipleComponentsToFork",
2110
- "type": {
2111
- "__schema": "TypeRefSchema",
2112
- "location": {
2113
- "filePath": "forking.main.runtime.ts",
2114
- "line": 36,
2115
- "character": 33
2116
- },
2117
- "name": "Array",
2118
- "typeArgs": [
2119
- {
2120
- "__schema": "TypeLiteralSchema",
2121
- "location": {
2122
- "filePath": "forking.main.runtime.ts",
2123
- "line": 36,
2124
- "character": 39
2125
- },
2126
- "members": [
2127
- {
2128
- "__schema": "VariableLikeSchema",
2129
- "location": {
2130
- "filePath": "forking.main.runtime.ts",
2131
- "line": 37,
2132
- "character": 3
2133
- },
2134
- "signature": "(property) sourceId: string",
2135
- "name": "sourceId",
2136
- "type": {
2137
- "__schema": "KeywordTypeSchema",
2138
- "location": {
2139
- "filePath": "forking.main.runtime.ts",
2140
- "line": 37,
2141
- "character": 13
2142
- },
2143
- "name": "string"
2144
- },
2145
- "isOptional": false
2146
- },
2147
- {
2148
- "__schema": "VariableLikeSchema",
2149
- "location": {
2150
- "filePath": "forking.main.runtime.ts",
2151
- "line": 38,
2152
- "character": 3
2153
- },
2154
- "signature": "(property) targetId?: string | undefined",
2155
- "name": "targetId",
2156
- "type": {
2157
- "__schema": "KeywordTypeSchema",
2158
- "location": {
2159
- "filePath": "forking.main.runtime.ts",
2160
- "line": 38,
2161
- "character": 14
2162
- },
2163
- "name": "string"
2164
- },
2165
- "isOptional": true
2166
- },
2167
- {
2168
- "__schema": "VariableLikeSchema",
2169
- "location": {
2170
- "filePath": "forking.main.runtime.ts",
2171
- "line": 39,
2172
- "character": 3
2173
- },
2174
- "signature": "(property) targetScope?: string | undefined",
2175
- "name": "targetScope",
2176
- "type": {
2177
- "__schema": "KeywordTypeSchema",
2178
- "location": {
2179
- "filePath": "forking.main.runtime.ts",
2180
- "line": 39,
2181
- "character": 17
2182
- },
2183
- "name": "string"
2184
- },
2185
- "isOptional": true
2186
- },
2187
- {
2188
- "__schema": "VariableLikeSchema",
2189
- "location": {
2190
- "filePath": "forking.main.runtime.ts",
2191
- "line": 40,
2192
- "character": 3
2193
- },
2194
- "signature": "(property) path?: string | undefined",
2195
- "name": "path",
2196
- "type": {
2197
- "__schema": "KeywordTypeSchema",
2198
- "location": {
2199
- "filePath": "forking.main.runtime.ts",
2200
- "line": 40,
2201
- "character": 10
2202
- },
2203
- "name": "string"
2204
- },
2205
- "isOptional": true
2206
- },
2207
- {
2208
- "__schema": "VariableLikeSchema",
2209
- "location": {
2210
- "filePath": "forking.main.runtime.ts",
2211
- "line": 41,
2212
- "character": 3
2213
- },
2214
- "signature": "(property) env?: string | undefined",
2215
- "name": "env",
2216
- "type": {
2217
- "__schema": "KeywordTypeSchema",
2218
- "location": {
2219
- "filePath": "forking.main.runtime.ts",
2220
- "line": 41,
2221
- "character": 9
2222
- },
2223
- "name": "string"
2224
- },
2225
- "isOptional": true
2226
- },
2227
- {
2228
- "__schema": "VariableLikeSchema",
2229
- "location": {
2230
- "filePath": "forking.main.runtime.ts",
2231
- "line": 42,
2232
- "character": 3
2233
- },
2234
- "signature": "(property) config?: ComponentConfig | undefined",
2235
- "name": "config",
2236
- "type": {
2237
- "__schema": "TypeRefSchema",
2238
- "location": {
2239
- "filePath": "forking.main.runtime.ts",
2240
- "line": 42,
2241
- "character": 12
2242
- },
2243
- "name": "ComponentConfig"
2244
- },
2245
- "isOptional": true
2246
- }
2247
- ]
2248
- }
2249
- ]
2250
- }
2251
- },
2252
- {
2253
- "__schema": "TypeSchema",
2254
- "location": {
2255
- "filePath": "forking.main.runtime.ts",
2256
- "line": 45,
2257
- "character": 1
2258
- },
2259
- "signature": "type MultipleForkOptions = {\n refactor?: boolean | undefined;\n scope?: string | undefined;\n install?: boolean | undefined;\n ast?: boolean | undefined;\n compile?: boolean | undefined;\n}",
2260
- "name": "MultipleForkOptions",
2261
- "type": {
2262
- "__schema": "TypeLiteralSchema",
2263
- "location": {
2264
- "filePath": "forking.main.runtime.ts",
2265
- "line": 45,
2266
- "character": 28
2267
- },
2268
- "members": [
2269
- {
2270
- "__schema": "VariableLikeSchema",
2271
- "location": {
2272
- "filePath": "forking.main.runtime.ts",
2273
- "line": 46,
2274
- "character": 3
2275
- },
2276
- "signature": "(property) refactor?: boolean | undefined",
2277
- "name": "refactor",
2278
- "type": {
2279
- "__schema": "KeywordTypeSchema",
2280
- "location": {
2281
- "filePath": "forking.main.runtime.ts",
2282
- "line": 46,
2283
- "character": 14
2284
- },
2285
- "name": "boolean"
2286
- },
2287
- "isOptional": true
2288
- },
2289
- {
2290
- "__schema": "VariableLikeSchema",
2291
- "location": {
2292
- "filePath": "forking.main.runtime.ts",
2293
- "line": 47,
2294
- "character": 3
2295
- },
2296
- "signature": "(property) scope?: string | undefined",
2297
- "name": "scope",
2298
- "type": {
2299
- "__schema": "KeywordTypeSchema",
2300
- "location": {
2301
- "filePath": "forking.main.runtime.ts",
2302
- "line": 47,
2303
- "character": 11
2304
- },
2305
- "name": "string"
2306
- },
2307
- "isOptional": true
2308
- },
2309
- {
2310
- "__schema": "VariableLikeSchema",
2311
- "location": {
2312
- "filePath": "forking.main.runtime.ts",
2313
- "line": 48,
2314
- "character": 3
2315
- },
2316
- "signature": "(property) install?: boolean | undefined",
2317
- "name": "install",
2318
- "type": {
2319
- "__schema": "KeywordTypeSchema",
2320
- "location": {
2321
- "filePath": "forking.main.runtime.ts",
2322
- "line": 48,
2323
- "character": 13
2324
- },
2325
- "name": "boolean"
2326
- },
2327
- "isOptional": true
2328
- },
2329
- {
2330
- "__schema": "VariableLikeSchema",
2331
- "location": {
2332
- "filePath": "forking.main.runtime.ts",
2333
- "line": 49,
2334
- "character": 3
2335
- },
2336
- "signature": "(property) ast?: boolean | undefined",
2337
- "name": "ast",
2338
- "type": {
2339
- "__schema": "KeywordTypeSchema",
2340
- "location": {
2341
- "filePath": "forking.main.runtime.ts",
2342
- "line": 49,
2343
- "character": 9
2344
- },
2345
- "name": "boolean"
2346
- },
2347
- "isOptional": true
2348
- },
2349
- {
2350
- "__schema": "VariableLikeSchema",
2351
- "location": {
2352
- "filePath": "forking.main.runtime.ts",
2353
- "line": 50,
2354
- "character": 3
2355
- },
2356
- "signature": "(property) compile?: boolean | undefined",
2357
- "name": "compile",
2358
- "type": {
2359
- "__schema": "KeywordTypeSchema",
2360
- "location": {
2361
- "filePath": "forking.main.runtime.ts",
2362
- "line": 50,
2363
- "character": 13
2364
- },
2365
- "name": "boolean"
2366
- },
2367
- "isOptional": true
2368
- }
2369
- ]
2370
- }
2371
- },
2372
- {
2373
- "__schema": "UnImplementedSchema",
2374
- "location": {
2375
- "filePath": "forking.main.runtime.ts",
2376
- "line": 427,
2377
- "character": 1
2378
- },
2379
- "name": "ForkingAspect.addRuntime(ForkingMain);",
2380
- "type": "ExpressionStatement"
2381
- }
2382
- ]
2383
- },
2384
- {
2385
- "__schema": "ModuleSchema",
2386
- "location": {
2387
- "filePath": "forking.aspect.ts",
2388
- "line": 1,
2389
- "character": 1
2390
- },
2391
- "exports": [
2392
- {
2393
- "__schema": "VariableLikeSchema",
2394
- "location": {
2395
- "filePath": "forking.aspect.ts",
2396
- "line": 3,
2397
- "character": 14
2398
- },
2399
- "signature": "const ForkingAspect: Aspect",
2400
- "name": "ForkingAspect",
2401
- "type": {
2402
- "__schema": "TypeRefSchema",
2403
- "location": {
2404
- "filePath": "forking.aspect.ts",
2405
- "line": 3,
2406
- "character": 14
2407
- },
2408
- "name": "Aspect",
2409
- "componentId": {
2410
- "scope": "teambit.harmony",
2411
- "name": "harmony",
2412
- "version": "0.4.6"
2413
- }
2414
- },
2415
- "isOptional": false,
2416
- "defaultValue": "Aspect.create({\n id: 'teambit.component/forking',\n})"
2417
- }
2418
- ],
2419
- "internals": []
2420
- }
2421
- ],
2422
- "componentId": {
2423
- "scope": "teambit.component",
2424
- "name": "forking",
2425
- "version": "1.0.509"
2426
- },
2427
- "taggedModuleExports": []
2428
- }