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