@teambit/refactoring 1.0.258 → 1.0.259

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