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