@teambit/renaming 1.0.256 → 1.0.258

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