@teambit/refactoring 1.0.188 → 1.0.190

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