@teambit/renaming 1.0.157 → 1.0.159

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