@teambit/component-writer 1.0.258 → 1.0.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,13 +22,446 @@
22
22
  },
23
23
  "name": "ComponentWriterMain",
24
24
  "exportNode": {
25
- "__schema": "TypeRefSchema",
25
+ "__schema": "ClassSchema",
26
26
  "location": {
27
- "filePath": "index.ts",
28
- "line": 4,
29
- "character": 3
27
+ "filePath": "component-writer.main.runtime.ts",
28
+ "line": 44,
29
+ "character": 1
30
30
  },
31
- "name": "ComponentWriterMain"
31
+ "signature": "class ComponentWriterMain",
32
+ "name": "ComponentWriterMain",
33
+ "members": [
34
+ {
35
+ "__schema": "ConstructorSchema",
36
+ "location": {
37
+ "filePath": "component-writer.main.runtime.ts",
38
+ "line": 45,
39
+ "character": 3
40
+ },
41
+ "signature": "constructor ComponentWriterMain(installer: InstallMain, compiler: CompilerMain, workspace: Workspace, logger: Logger, mover: MoverMain, configMerge: ConfigMergerMain): ComponentWriterMain",
42
+ "name": "constructor",
43
+ "params": [
44
+ {
45
+ "__schema": "ParameterSchema",
46
+ "location": {
47
+ "filePath": "component-writer.main.runtime.ts",
48
+ "line": 46,
49
+ "character": 5
50
+ },
51
+ "name": "installer",
52
+ "type": {
53
+ "__schema": "TypeRefSchema",
54
+ "location": {
55
+ "filePath": "component-writer.main.runtime.ts",
56
+ "line": 46,
57
+ "character": 24
58
+ },
59
+ "name": "InstallMain",
60
+ "componentId": {
61
+ "scope": "teambit.workspace",
62
+ "name": "install"
63
+ }
64
+ },
65
+ "isOptional": false,
66
+ "isSpread": false
67
+ },
68
+ {
69
+ "__schema": "ParameterSchema",
70
+ "location": {
71
+ "filePath": "component-writer.main.runtime.ts",
72
+ "line": 47,
73
+ "character": 5
74
+ },
75
+ "name": "compiler",
76
+ "type": {
77
+ "__schema": "TypeRefSchema",
78
+ "location": {
79
+ "filePath": "component-writer.main.runtime.ts",
80
+ "line": 47,
81
+ "character": 23
82
+ },
83
+ "name": "CompilerMain",
84
+ "componentId": {
85
+ "scope": "teambit.compilation",
86
+ "name": "compiler"
87
+ }
88
+ },
89
+ "isOptional": false,
90
+ "isSpread": false
91
+ },
92
+ {
93
+ "__schema": "ParameterSchema",
94
+ "location": {
95
+ "filePath": "component-writer.main.runtime.ts",
96
+ "line": 48,
97
+ "character": 5
98
+ },
99
+ "name": "workspace",
100
+ "type": {
101
+ "__schema": "TypeRefSchema",
102
+ "location": {
103
+ "filePath": "component-writer.main.runtime.ts",
104
+ "line": 48,
105
+ "character": 24
106
+ },
107
+ "name": "Workspace",
108
+ "componentId": {
109
+ "scope": "teambit.workspace",
110
+ "name": "workspace"
111
+ }
112
+ },
113
+ "isOptional": false,
114
+ "isSpread": false
115
+ },
116
+ {
117
+ "__schema": "ParameterSchema",
118
+ "location": {
119
+ "filePath": "component-writer.main.runtime.ts",
120
+ "line": 49,
121
+ "character": 5
122
+ },
123
+ "name": "logger",
124
+ "type": {
125
+ "__schema": "TypeRefSchema",
126
+ "location": {
127
+ "filePath": "component-writer.main.runtime.ts",
128
+ "line": 49,
129
+ "character": 21
130
+ },
131
+ "name": "Logger",
132
+ "componentId": {
133
+ "scope": "teambit.harmony",
134
+ "name": "logger"
135
+ }
136
+ },
137
+ "isOptional": false,
138
+ "isSpread": false
139
+ },
140
+ {
141
+ "__schema": "ParameterSchema",
142
+ "location": {
143
+ "filePath": "component-writer.main.runtime.ts",
144
+ "line": 50,
145
+ "character": 5
146
+ },
147
+ "name": "mover",
148
+ "type": {
149
+ "__schema": "TypeRefSchema",
150
+ "location": {
151
+ "filePath": "component-writer.main.runtime.ts",
152
+ "line": 50,
153
+ "character": 20
154
+ },
155
+ "name": "MoverMain",
156
+ "componentId": {
157
+ "scope": "teambit.component",
158
+ "name": "mover"
159
+ }
160
+ },
161
+ "isOptional": false,
162
+ "isSpread": false
163
+ },
164
+ {
165
+ "__schema": "ParameterSchema",
166
+ "location": {
167
+ "filePath": "component-writer.main.runtime.ts",
168
+ "line": 51,
169
+ "character": 5
170
+ },
171
+ "name": "configMerge",
172
+ "type": {
173
+ "__schema": "TypeRefSchema",
174
+ "location": {
175
+ "filePath": "component-writer.main.runtime.ts",
176
+ "line": 51,
177
+ "character": 26
178
+ },
179
+ "name": "ConfigMergerMain",
180
+ "componentId": {
181
+ "scope": "teambit.workspace",
182
+ "name": "config-merger"
183
+ }
184
+ },
185
+ "isOptional": false,
186
+ "isSpread": false
187
+ }
188
+ ],
189
+ "returnType": {
190
+ "__schema": "ThisTypeSchema",
191
+ "location": {
192
+ "filePath": "component-writer.main.runtime.ts",
193
+ "line": 44,
194
+ "character": 1
195
+ },
196
+ "name": "ComponentWriterMain"
197
+ },
198
+ "modifiers": []
199
+ },
200
+ {
201
+ "__schema": "GetAccessorSchema",
202
+ "location": {
203
+ "filePath": "component-writer.main.runtime.ts",
204
+ "line": 54,
205
+ "character": 3
206
+ },
207
+ "signature": "(getter) ComponentWriterMain.consumer: Consumer",
208
+ "name": "consumer",
209
+ "type": {
210
+ "__schema": "TypeRefSchema",
211
+ "location": {
212
+ "filePath": "component-writer.main.runtime.ts",
213
+ "line": 54,
214
+ "character": 3
215
+ },
216
+ "name": "Consumer",
217
+ "packageName": "@teambit/legacy/dist/consumer/consumer"
218
+ }
219
+ },
220
+ {
221
+ "__schema": "FunctionLikeSchema",
222
+ "location": {
223
+ "filePath": "component-writer.main.runtime.ts",
224
+ "line": 58,
225
+ "character": 3
226
+ },
227
+ "signature": "(method) ComponentWriterMain.writeMany(opts: ManyComponentsWriterParams): Promise<ComponentWriterResults>",
228
+ "name": "writeMany",
229
+ "params": [
230
+ {
231
+ "__schema": "ParameterSchema",
232
+ "location": {
233
+ "filePath": "component-writer.main.runtime.ts",
234
+ "line": 58,
235
+ "character": 19
236
+ },
237
+ "name": "opts",
238
+ "type": {
239
+ "__schema": "TypeRefSchema",
240
+ "location": {
241
+ "filePath": "component-writer.main.runtime.ts",
242
+ "line": 58,
243
+ "character": 25
244
+ },
245
+ "name": "ManyComponentsWriterParams"
246
+ },
247
+ "isOptional": false,
248
+ "isSpread": false
249
+ }
250
+ ],
251
+ "returnType": {
252
+ "__schema": "TypeRefSchema",
253
+ "location": {
254
+ "filePath": "component-writer.main.runtime.ts",
255
+ "line": 58,
256
+ "character": 54
257
+ },
258
+ "name": "Promise",
259
+ "typeArgs": [
260
+ {
261
+ "__schema": "TypeRefSchema",
262
+ "location": {
263
+ "filePath": "component-writer.main.runtime.ts",
264
+ "line": 58,
265
+ "character": 62
266
+ },
267
+ "name": "ComponentWriterResults"
268
+ }
269
+ ]
270
+ },
271
+ "modifiers": [
272
+ "async"
273
+ ]
274
+ },
275
+ {
276
+ "__schema": "VariableLikeSchema",
277
+ "location": {
278
+ "filePath": "component-writer.main.runtime.ts",
279
+ "line": 296,
280
+ "character": 3
281
+ },
282
+ "signature": "(property) ComponentWriterMain.slots: never[]",
283
+ "name": "slots",
284
+ "type": {
285
+ "__schema": "InferenceTypeSchema",
286
+ "location": {
287
+ "filePath": "component-writer.main.runtime.ts",
288
+ "line": 296,
289
+ "character": 3
290
+ },
291
+ "type": "never[]"
292
+ },
293
+ "isOptional": true,
294
+ "defaultValue": "[]"
295
+ },
296
+ {
297
+ "__schema": "VariableLikeSchema",
298
+ "location": {
299
+ "filePath": "component-writer.main.runtime.ts",
300
+ "line": 297,
301
+ "character": 3
302
+ },
303
+ "signature": "(property) ComponentWriterMain.dependencies: Aspect[]",
304
+ "name": "dependencies",
305
+ "type": {
306
+ "__schema": "InferenceTypeSchema",
307
+ "location": {
308
+ "filePath": "component-writer.main.runtime.ts",
309
+ "line": 297,
310
+ "character": 3
311
+ },
312
+ "type": "Aspect[]"
313
+ },
314
+ "isOptional": true,
315
+ "defaultValue": "[InstallAspect, CompilerAspect, LoggerAspect, WorkspaceAspect, MoverAspect, ConfigMergerAspect]"
316
+ },
317
+ {
318
+ "__schema": "VariableLikeSchema",
319
+ "location": {
320
+ "filePath": "component-writer.main.runtime.ts",
321
+ "line": 298,
322
+ "character": 3
323
+ },
324
+ "signature": "(property) ComponentWriterMain.runtime: RuntimeDefinition",
325
+ "name": "runtime",
326
+ "type": {
327
+ "__schema": "InferenceTypeSchema",
328
+ "location": {
329
+ "filePath": "component-writer.main.runtime.ts",
330
+ "line": 298,
331
+ "character": 3
332
+ },
333
+ "type": "RuntimeDefinition"
334
+ },
335
+ "isOptional": true,
336
+ "defaultValue": "MainRuntime"
337
+ },
338
+ {
339
+ "__schema": "FunctionLikeSchema",
340
+ "location": {
341
+ "filePath": "component-writer.main.runtime.ts",
342
+ "line": 299,
343
+ "character": 3
344
+ },
345
+ "signature": "(method) ComponentWriterMain.provider([install, compiler, loggerMain, workspace, mover, configMerger]: [\n InstallMain,\n CompilerMain,\n LoggerMain,\n Workspace,\n MoverMain,\n ConfigMergerMain\n]): Promise<ComponentWriterMain>",
346
+ "name": "provider",
347
+ "params": [
348
+ {
349
+ "__schema": "ParameterSchema",
350
+ "location": {
351
+ "filePath": "component-writer.main.runtime.ts",
352
+ "line": 299,
353
+ "character": 25
354
+ },
355
+ "name": "[ install, compiler, loggerMain, workspace, mover, configMerger ]",
356
+ "type": {
357
+ "__schema": "TupleTypeSchema",
358
+ "location": {
359
+ "filePath": "component-writer.main.runtime.ts",
360
+ "line": 299,
361
+ "character": 90
362
+ },
363
+ "elements": [
364
+ {
365
+ "__schema": "TypeRefSchema",
366
+ "location": {
367
+ "filePath": "component-writer.main.runtime.ts",
368
+ "line": 300,
369
+ "character": 5
370
+ },
371
+ "name": "InstallMain",
372
+ "componentId": {
373
+ "scope": "teambit.workspace",
374
+ "name": "install"
375
+ }
376
+ },
377
+ {
378
+ "__schema": "TypeRefSchema",
379
+ "location": {
380
+ "filePath": "component-writer.main.runtime.ts",
381
+ "line": 301,
382
+ "character": 5
383
+ },
384
+ "name": "CompilerMain",
385
+ "componentId": {
386
+ "scope": "teambit.compilation",
387
+ "name": "compiler"
388
+ }
389
+ },
390
+ {
391
+ "__schema": "TypeRefSchema",
392
+ "location": {
393
+ "filePath": "component-writer.main.runtime.ts",
394
+ "line": 302,
395
+ "character": 5
396
+ },
397
+ "name": "LoggerMain",
398
+ "componentId": {
399
+ "scope": "teambit.harmony",
400
+ "name": "logger"
401
+ }
402
+ },
403
+ {
404
+ "__schema": "TypeRefSchema",
405
+ "location": {
406
+ "filePath": "component-writer.main.runtime.ts",
407
+ "line": 303,
408
+ "character": 5
409
+ },
410
+ "name": "Workspace",
411
+ "componentId": {
412
+ "scope": "teambit.workspace",
413
+ "name": "workspace"
414
+ }
415
+ },
416
+ {
417
+ "__schema": "TypeRefSchema",
418
+ "location": {
419
+ "filePath": "component-writer.main.runtime.ts",
420
+ "line": 304,
421
+ "character": 5
422
+ },
423
+ "name": "MoverMain",
424
+ "componentId": {
425
+ "scope": "teambit.component",
426
+ "name": "mover"
427
+ }
428
+ },
429
+ {
430
+ "__schema": "TypeRefSchema",
431
+ "location": {
432
+ "filePath": "component-writer.main.runtime.ts",
433
+ "line": 305,
434
+ "character": 5
435
+ },
436
+ "name": "ConfigMergerMain",
437
+ "componentId": {
438
+ "scope": "teambit.workspace",
439
+ "name": "config-merger"
440
+ }
441
+ }
442
+ ]
443
+ },
444
+ "isOptional": false,
445
+ "isSpread": false
446
+ }
447
+ ],
448
+ "returnType": {
449
+ "__schema": "InferenceTypeSchema",
450
+ "location": {
451
+ "filePath": "component-writer.main.runtime.ts",
452
+ "line": 299,
453
+ "character": 3
454
+ },
455
+ "type": "Promise<ComponentWriterMain>"
456
+ },
457
+ "modifiers": [
458
+ "static",
459
+ "async"
460
+ ]
461
+ }
462
+ ],
463
+ "extendsNodes": [],
464
+ "implementNodes": []
32
465
  }
33
466
  },
34
467
  {
@@ -40,13 +473,88 @@
40
473
  },
41
474
  "name": "ComponentWriterResults",
42
475
  "exportNode": {
43
- "__schema": "TypeRefSchema",
476
+ "__schema": "TypeSchema",
44
477
  "location": {
45
- "filePath": "index.ts",
46
- "line": 5,
47
- "character": 3
478
+ "filePath": "component-writer.main.runtime.ts",
479
+ "line": 38,
480
+ "character": 1
48
481
  },
49
- "name": "ComponentWriterResults"
482
+ "signature": "type ComponentWriterResults = {\n installationError?: Error | undefined;\n compilationError?: Error | undefined;\n workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult | undefined;\n}",
483
+ "name": "ComponentWriterResults",
484
+ "type": {
485
+ "__schema": "TypeLiteralSchema",
486
+ "location": {
487
+ "filePath": "component-writer.main.runtime.ts",
488
+ "line": 38,
489
+ "character": 38
490
+ },
491
+ "members": [
492
+ {
493
+ "__schema": "VariableLikeSchema",
494
+ "location": {
495
+ "filePath": "component-writer.main.runtime.ts",
496
+ "line": 39,
497
+ "character": 3
498
+ },
499
+ "signature": "(property) installationError?: Error | undefined",
500
+ "name": "installationError",
501
+ "type": {
502
+ "__schema": "TypeRefSchema",
503
+ "location": {
504
+ "filePath": "component-writer.main.runtime.ts",
505
+ "line": 39,
506
+ "character": 23
507
+ },
508
+ "name": "Error"
509
+ },
510
+ "isOptional": true
511
+ },
512
+ {
513
+ "__schema": "VariableLikeSchema",
514
+ "location": {
515
+ "filePath": "component-writer.main.runtime.ts",
516
+ "line": 40,
517
+ "character": 3
518
+ },
519
+ "signature": "(property) compilationError?: Error | undefined",
520
+ "name": "compilationError",
521
+ "type": {
522
+ "__schema": "TypeRefSchema",
523
+ "location": {
524
+ "filePath": "component-writer.main.runtime.ts",
525
+ "line": 40,
526
+ "character": 22
527
+ },
528
+ "name": "Error"
529
+ },
530
+ "isOptional": true
531
+ },
532
+ {
533
+ "__schema": "VariableLikeSchema",
534
+ "location": {
535
+ "filePath": "component-writer.main.runtime.ts",
536
+ "line": 41,
537
+ "character": 3
538
+ },
539
+ "signature": "(property) workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult | undefined",
540
+ "name": "workspaceConfigUpdateResult",
541
+ "type": {
542
+ "__schema": "TypeRefSchema",
543
+ "location": {
544
+ "filePath": "component-writer.main.runtime.ts",
545
+ "line": 41,
546
+ "character": 33
547
+ },
548
+ "name": "WorkspaceConfigUpdateResult",
549
+ "componentId": {
550
+ "scope": "teambit.workspace",
551
+ "name": "config-merger"
552
+ }
553
+ },
554
+ "isOptional": true
555
+ }
556
+ ]
557
+ }
50
558
  }
51
559
  },
52
560
  {
@@ -58,13 +566,266 @@
58
566
  },
59
567
  "name": "ManyComponentsWriterParams",
60
568
  "exportNode": {
61
- "__schema": "TypeRefSchema",
569
+ "__schema": "InterfaceSchema",
62
570
  "location": {
63
- "filePath": "index.ts",
64
- "line": 6,
65
- "character": 3
571
+ "filePath": "component-writer.main.runtime.ts",
572
+ "line": 23,
573
+ "character": 1
66
574
  },
67
- "name": "ManyComponentsWriterParams"
575
+ "signature": "interface ManyComponentsWriterParams",
576
+ "name": "ManyComponentsWriterParams",
577
+ "members": [
578
+ {
579
+ "__schema": "VariableLikeSchema",
580
+ "location": {
581
+ "filePath": "component-writer.main.runtime.ts",
582
+ "line": 24,
583
+ "character": 3
584
+ },
585
+ "signature": "(property) ManyComponentsWriterParams.components: ConsumerComponent[]",
586
+ "name": "components",
587
+ "type": {
588
+ "__schema": "TypeArraySchema",
589
+ "location": {
590
+ "filePath": "component-writer.main.runtime.ts",
591
+ "line": 24,
592
+ "character": 15
593
+ },
594
+ "type": {
595
+ "__schema": "TypeRefSchema",
596
+ "location": {
597
+ "filePath": "component-writer.main.runtime.ts",
598
+ "line": 24,
599
+ "character": 15
600
+ },
601
+ "name": "ConsumerComponent",
602
+ "packageName": "@teambit/legacy/dist/consumer/component"
603
+ }
604
+ },
605
+ "isOptional": false
606
+ },
607
+ {
608
+ "__schema": "VariableLikeSchema",
609
+ "location": {
610
+ "filePath": "component-writer.main.runtime.ts",
611
+ "line": 25,
612
+ "character": 3
613
+ },
614
+ "signature": "(property) ManyComponentsWriterParams.writeToPath?: string | undefined",
615
+ "name": "writeToPath",
616
+ "type": {
617
+ "__schema": "KeywordTypeSchema",
618
+ "location": {
619
+ "filePath": "component-writer.main.runtime.ts",
620
+ "line": 25,
621
+ "character": 17
622
+ },
623
+ "name": "string"
624
+ },
625
+ "isOptional": true
626
+ },
627
+ {
628
+ "__schema": "VariableLikeSchema",
629
+ "location": {
630
+ "filePath": "component-writer.main.runtime.ts",
631
+ "line": 26,
632
+ "character": 3
633
+ },
634
+ "signature": "(property) ManyComponentsWriterParams.throwForExistingDir?: boolean | undefined",
635
+ "name": "throwForExistingDir",
636
+ "type": {
637
+ "__schema": "KeywordTypeSchema",
638
+ "location": {
639
+ "filePath": "component-writer.main.runtime.ts",
640
+ "line": 26,
641
+ "character": 25
642
+ },
643
+ "name": "boolean"
644
+ },
645
+ "isOptional": true
646
+ },
647
+ {
648
+ "__schema": "VariableLikeSchema",
649
+ "location": {
650
+ "filePath": "component-writer.main.runtime.ts",
651
+ "line": 27,
652
+ "character": 3
653
+ },
654
+ "signature": "(property) ManyComponentsWriterParams.writeConfig?: boolean | undefined",
655
+ "name": "writeConfig",
656
+ "type": {
657
+ "__schema": "KeywordTypeSchema",
658
+ "location": {
659
+ "filePath": "component-writer.main.runtime.ts",
660
+ "line": 27,
661
+ "character": 17
662
+ },
663
+ "name": "boolean"
664
+ },
665
+ "isOptional": true
666
+ },
667
+ {
668
+ "__schema": "VariableLikeSchema",
669
+ "location": {
670
+ "filePath": "component-writer.main.runtime.ts",
671
+ "line": 28,
672
+ "character": 3
673
+ },
674
+ "signature": "(property) ManyComponentsWriterParams.skipDependencyInstallation?: boolean | undefined",
675
+ "name": "skipDependencyInstallation",
676
+ "type": {
677
+ "__schema": "KeywordTypeSchema",
678
+ "location": {
679
+ "filePath": "component-writer.main.runtime.ts",
680
+ "line": 28,
681
+ "character": 32
682
+ },
683
+ "name": "boolean"
684
+ },
685
+ "isOptional": true
686
+ },
687
+ {
688
+ "__schema": "VariableLikeSchema",
689
+ "location": {
690
+ "filePath": "component-writer.main.runtime.ts",
691
+ "line": 29,
692
+ "character": 3
693
+ },
694
+ "signature": "(property) ManyComponentsWriterParams.verbose?: boolean | undefined",
695
+ "name": "verbose",
696
+ "type": {
697
+ "__schema": "KeywordTypeSchema",
698
+ "location": {
699
+ "filePath": "component-writer.main.runtime.ts",
700
+ "line": 29,
701
+ "character": 13
702
+ },
703
+ "name": "boolean"
704
+ },
705
+ "isOptional": true
706
+ },
707
+ {
708
+ "__schema": "VariableLikeSchema",
709
+ "location": {
710
+ "filePath": "component-writer.main.runtime.ts",
711
+ "line": 30,
712
+ "character": 3
713
+ },
714
+ "signature": "(property) ManyComponentsWriterParams.resetConfig?: boolean | undefined",
715
+ "name": "resetConfig",
716
+ "type": {
717
+ "__schema": "KeywordTypeSchema",
718
+ "location": {
719
+ "filePath": "component-writer.main.runtime.ts",
720
+ "line": 30,
721
+ "character": 17
722
+ },
723
+ "name": "boolean"
724
+ },
725
+ "isOptional": true
726
+ },
727
+ {
728
+ "__schema": "VariableLikeSchema",
729
+ "location": {
730
+ "filePath": "component-writer.main.runtime.ts",
731
+ "line": 31,
732
+ "character": 3
733
+ },
734
+ "signature": "(property) ManyComponentsWriterParams.skipWritingToFs?: boolean | undefined",
735
+ "name": "skipWritingToFs",
736
+ "type": {
737
+ "__schema": "KeywordTypeSchema",
738
+ "location": {
739
+ "filePath": "component-writer.main.runtime.ts",
740
+ "line": 31,
741
+ "character": 21
742
+ },
743
+ "name": "boolean"
744
+ },
745
+ "isOptional": true
746
+ },
747
+ {
748
+ "__schema": "VariableLikeSchema",
749
+ "location": {
750
+ "filePath": "component-writer.main.runtime.ts",
751
+ "line": 32,
752
+ "character": 3
753
+ },
754
+ "signature": "(property) ManyComponentsWriterParams.skipUpdatingBitMap?: boolean | undefined",
755
+ "name": "skipUpdatingBitMap",
756
+ "type": {
757
+ "__schema": "KeywordTypeSchema",
758
+ "location": {
759
+ "filePath": "component-writer.main.runtime.ts",
760
+ "line": 32,
761
+ "character": 24
762
+ },
763
+ "name": "boolean"
764
+ },
765
+ "isOptional": true
766
+ },
767
+ {
768
+ "__schema": "VariableLikeSchema",
769
+ "location": {
770
+ "filePath": "component-writer.main.runtime.ts",
771
+ "line": 33,
772
+ "character": 3
773
+ },
774
+ "signature": "(property) ManyComponentsWriterParams.skipWriteConfigFiles?: boolean | undefined",
775
+ "name": "skipWriteConfigFiles",
776
+ "type": {
777
+ "__schema": "KeywordTypeSchema",
778
+ "location": {
779
+ "filePath": "component-writer.main.runtime.ts",
780
+ "line": 33,
781
+ "character": 26
782
+ },
783
+ "name": "boolean"
784
+ },
785
+ "isOptional": true
786
+ },
787
+ {
788
+ "__schema": "VariableLikeSchema",
789
+ "location": {
790
+ "filePath": "component-writer.main.runtime.ts",
791
+ "line": 34,
792
+ "character": 3
793
+ },
794
+ "signature": "(property) ManyComponentsWriterParams.reasonForBitmapChange?: string | undefined",
795
+ "name": "reasonForBitmapChange",
796
+ "type": {
797
+ "__schema": "KeywordTypeSchema",
798
+ "location": {
799
+ "filePath": "component-writer.main.runtime.ts",
800
+ "line": 34,
801
+ "character": 27
802
+ },
803
+ "name": "string"
804
+ },
805
+ "isOptional": true
806
+ },
807
+ {
808
+ "__schema": "VariableLikeSchema",
809
+ "location": {
810
+ "filePath": "component-writer.main.runtime.ts",
811
+ "line": 35,
812
+ "character": 3
813
+ },
814
+ "signature": "(property) ManyComponentsWriterParams.shouldUpdateWorkspaceConfig?: boolean | undefined",
815
+ "name": "shouldUpdateWorkspaceConfig",
816
+ "type": {
817
+ "__schema": "KeywordTypeSchema",
818
+ "location": {
819
+ "filePath": "component-writer.main.runtime.ts",
820
+ "line": 35,
821
+ "character": 33
822
+ },
823
+ "name": "boolean"
824
+ },
825
+ "isOptional": true
826
+ }
827
+ ],
828
+ "extendsNodes": []
68
829
  }
69
830
  },
70
831
  {
@@ -76,13 +837,76 @@
76
837
  },
77
838
  "name": "incrementPathRecursively",
78
839
  "exportNode": {
79
- "__schema": "TypeRefSchema",
840
+ "__schema": "FunctionLikeSchema",
80
841
  "location": {
81
- "filePath": "index.ts",
82
- "line": 8,
83
- "character": 10
842
+ "filePath": "component-writer.main.runtime.ts",
843
+ "line": 316,
844
+ "character": 1
84
845
  },
85
- "name": "incrementPathRecursively"
846
+ "signature": "function incrementPathRecursively(p: string, allPaths: string[]): string",
847
+ "name": "incrementPathRecursively",
848
+ "params": [
849
+ {
850
+ "__schema": "ParameterSchema",
851
+ "location": {
852
+ "filePath": "component-writer.main.runtime.ts",
853
+ "line": 316,
854
+ "character": 42
855
+ },
856
+ "name": "p",
857
+ "type": {
858
+ "__schema": "KeywordTypeSchema",
859
+ "location": {
860
+ "filePath": "component-writer.main.runtime.ts",
861
+ "line": 316,
862
+ "character": 45
863
+ },
864
+ "name": "string"
865
+ },
866
+ "isOptional": false,
867
+ "isSpread": false
868
+ },
869
+ {
870
+ "__schema": "ParameterSchema",
871
+ "location": {
872
+ "filePath": "component-writer.main.runtime.ts",
873
+ "line": 316,
874
+ "character": 53
875
+ },
876
+ "name": "allPaths",
877
+ "type": {
878
+ "__schema": "TypeArraySchema",
879
+ "location": {
880
+ "filePath": "component-writer.main.runtime.ts",
881
+ "line": 316,
882
+ "character": 63
883
+ },
884
+ "type": {
885
+ "__schema": "KeywordTypeSchema",
886
+ "location": {
887
+ "filePath": "component-writer.main.runtime.ts",
888
+ "line": 316,
889
+ "character": 63
890
+ },
891
+ "name": "string"
892
+ }
893
+ },
894
+ "isOptional": false,
895
+ "isSpread": false
896
+ }
897
+ ],
898
+ "returnType": {
899
+ "__schema": "InferenceTypeSchema",
900
+ "location": {
901
+ "filePath": "component-writer.main.runtime.ts",
902
+ "line": 316,
903
+ "character": 1
904
+ },
905
+ "type": "string"
906
+ },
907
+ "modifiers": [
908
+ "export"
909
+ ]
86
910
  }
87
911
  },
88
912
  {
@@ -104,23 +928,970 @@
104
928
  },
105
929
  "name": "ComponentWriterAspect",
106
930
  "exportNode": {
107
- "__schema": "TypeRefSchema",
931
+ "__schema": "VariableLikeSchema",
108
932
  "location": {
109
- "filePath": "index.ts",
110
- "line": 10,
111
- "character": 10
933
+ "filePath": "component-writer.aspect.ts",
934
+ "line": 3,
935
+ "character": 14
936
+ },
937
+ "signature": "const ComponentWriterAspect: Aspect",
938
+ "name": "ComponentWriterAspect",
939
+ "type": {
940
+ "__schema": "TypeRefSchema",
941
+ "location": {
942
+ "filePath": "component-writer.aspect.ts",
943
+ "line": 3,
944
+ "character": 14
945
+ },
946
+ "name": "Aspect",
947
+ "componentId": {
948
+ "scope": "teambit.harmony",
949
+ "name": "harmony",
950
+ "version": "0.4.6"
951
+ }
112
952
  },
113
- "name": "ComponentWriterAspect"
953
+ "isOptional": false,
954
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/component-writer',\n})"
114
955
  }
115
956
  }
116
957
  ],
117
958
  "internals": []
118
959
  },
119
- "internals": [],
960
+ "internals": [
961
+ {
962
+ "__schema": "ModuleSchema",
963
+ "location": {
964
+ "filePath": "component-writer.main.runtime.ts",
965
+ "line": 1,
966
+ "character": 1
967
+ },
968
+ "exports": [
969
+ {
970
+ "__schema": "InterfaceSchema",
971
+ "location": {
972
+ "filePath": "component-writer.main.runtime.ts",
973
+ "line": 23,
974
+ "character": 1
975
+ },
976
+ "signature": "interface ManyComponentsWriterParams",
977
+ "name": "ManyComponentsWriterParams",
978
+ "members": [
979
+ {
980
+ "__schema": "VariableLikeSchema",
981
+ "location": {
982
+ "filePath": "component-writer.main.runtime.ts",
983
+ "line": 24,
984
+ "character": 3
985
+ },
986
+ "signature": "(property) ManyComponentsWriterParams.components: ConsumerComponent[]",
987
+ "name": "components",
988
+ "type": {
989
+ "__schema": "TypeArraySchema",
990
+ "location": {
991
+ "filePath": "component-writer.main.runtime.ts",
992
+ "line": 24,
993
+ "character": 15
994
+ },
995
+ "type": {
996
+ "__schema": "TypeRefSchema",
997
+ "location": {
998
+ "filePath": "component-writer.main.runtime.ts",
999
+ "line": 24,
1000
+ "character": 15
1001
+ },
1002
+ "name": "ConsumerComponent",
1003
+ "packageName": "@teambit/legacy/dist/consumer/component"
1004
+ }
1005
+ },
1006
+ "isOptional": false
1007
+ },
1008
+ {
1009
+ "__schema": "VariableLikeSchema",
1010
+ "location": {
1011
+ "filePath": "component-writer.main.runtime.ts",
1012
+ "line": 25,
1013
+ "character": 3
1014
+ },
1015
+ "signature": "(property) ManyComponentsWriterParams.writeToPath?: string | undefined",
1016
+ "name": "writeToPath",
1017
+ "type": {
1018
+ "__schema": "KeywordTypeSchema",
1019
+ "location": {
1020
+ "filePath": "component-writer.main.runtime.ts",
1021
+ "line": 25,
1022
+ "character": 17
1023
+ },
1024
+ "name": "string"
1025
+ },
1026
+ "isOptional": true
1027
+ },
1028
+ {
1029
+ "__schema": "VariableLikeSchema",
1030
+ "location": {
1031
+ "filePath": "component-writer.main.runtime.ts",
1032
+ "line": 26,
1033
+ "character": 3
1034
+ },
1035
+ "signature": "(property) ManyComponentsWriterParams.throwForExistingDir?: boolean | undefined",
1036
+ "name": "throwForExistingDir",
1037
+ "type": {
1038
+ "__schema": "KeywordTypeSchema",
1039
+ "location": {
1040
+ "filePath": "component-writer.main.runtime.ts",
1041
+ "line": 26,
1042
+ "character": 25
1043
+ },
1044
+ "name": "boolean"
1045
+ },
1046
+ "isOptional": true
1047
+ },
1048
+ {
1049
+ "__schema": "VariableLikeSchema",
1050
+ "location": {
1051
+ "filePath": "component-writer.main.runtime.ts",
1052
+ "line": 27,
1053
+ "character": 3
1054
+ },
1055
+ "signature": "(property) ManyComponentsWriterParams.writeConfig?: boolean | undefined",
1056
+ "name": "writeConfig",
1057
+ "type": {
1058
+ "__schema": "KeywordTypeSchema",
1059
+ "location": {
1060
+ "filePath": "component-writer.main.runtime.ts",
1061
+ "line": 27,
1062
+ "character": 17
1063
+ },
1064
+ "name": "boolean"
1065
+ },
1066
+ "isOptional": true
1067
+ },
1068
+ {
1069
+ "__schema": "VariableLikeSchema",
1070
+ "location": {
1071
+ "filePath": "component-writer.main.runtime.ts",
1072
+ "line": 28,
1073
+ "character": 3
1074
+ },
1075
+ "signature": "(property) ManyComponentsWriterParams.skipDependencyInstallation?: boolean | undefined",
1076
+ "name": "skipDependencyInstallation",
1077
+ "type": {
1078
+ "__schema": "KeywordTypeSchema",
1079
+ "location": {
1080
+ "filePath": "component-writer.main.runtime.ts",
1081
+ "line": 28,
1082
+ "character": 32
1083
+ },
1084
+ "name": "boolean"
1085
+ },
1086
+ "isOptional": true
1087
+ },
1088
+ {
1089
+ "__schema": "VariableLikeSchema",
1090
+ "location": {
1091
+ "filePath": "component-writer.main.runtime.ts",
1092
+ "line": 29,
1093
+ "character": 3
1094
+ },
1095
+ "signature": "(property) ManyComponentsWriterParams.verbose?: boolean | undefined",
1096
+ "name": "verbose",
1097
+ "type": {
1098
+ "__schema": "KeywordTypeSchema",
1099
+ "location": {
1100
+ "filePath": "component-writer.main.runtime.ts",
1101
+ "line": 29,
1102
+ "character": 13
1103
+ },
1104
+ "name": "boolean"
1105
+ },
1106
+ "isOptional": true
1107
+ },
1108
+ {
1109
+ "__schema": "VariableLikeSchema",
1110
+ "location": {
1111
+ "filePath": "component-writer.main.runtime.ts",
1112
+ "line": 30,
1113
+ "character": 3
1114
+ },
1115
+ "signature": "(property) ManyComponentsWriterParams.resetConfig?: boolean | undefined",
1116
+ "name": "resetConfig",
1117
+ "type": {
1118
+ "__schema": "KeywordTypeSchema",
1119
+ "location": {
1120
+ "filePath": "component-writer.main.runtime.ts",
1121
+ "line": 30,
1122
+ "character": 17
1123
+ },
1124
+ "name": "boolean"
1125
+ },
1126
+ "isOptional": true
1127
+ },
1128
+ {
1129
+ "__schema": "VariableLikeSchema",
1130
+ "location": {
1131
+ "filePath": "component-writer.main.runtime.ts",
1132
+ "line": 31,
1133
+ "character": 3
1134
+ },
1135
+ "signature": "(property) ManyComponentsWriterParams.skipWritingToFs?: boolean | undefined",
1136
+ "name": "skipWritingToFs",
1137
+ "type": {
1138
+ "__schema": "KeywordTypeSchema",
1139
+ "location": {
1140
+ "filePath": "component-writer.main.runtime.ts",
1141
+ "line": 31,
1142
+ "character": 21
1143
+ },
1144
+ "name": "boolean"
1145
+ },
1146
+ "isOptional": true
1147
+ },
1148
+ {
1149
+ "__schema": "VariableLikeSchema",
1150
+ "location": {
1151
+ "filePath": "component-writer.main.runtime.ts",
1152
+ "line": 32,
1153
+ "character": 3
1154
+ },
1155
+ "signature": "(property) ManyComponentsWriterParams.skipUpdatingBitMap?: boolean | undefined",
1156
+ "name": "skipUpdatingBitMap",
1157
+ "type": {
1158
+ "__schema": "KeywordTypeSchema",
1159
+ "location": {
1160
+ "filePath": "component-writer.main.runtime.ts",
1161
+ "line": 32,
1162
+ "character": 24
1163
+ },
1164
+ "name": "boolean"
1165
+ },
1166
+ "isOptional": true
1167
+ },
1168
+ {
1169
+ "__schema": "VariableLikeSchema",
1170
+ "location": {
1171
+ "filePath": "component-writer.main.runtime.ts",
1172
+ "line": 33,
1173
+ "character": 3
1174
+ },
1175
+ "signature": "(property) ManyComponentsWriterParams.skipWriteConfigFiles?: boolean | undefined",
1176
+ "name": "skipWriteConfigFiles",
1177
+ "type": {
1178
+ "__schema": "KeywordTypeSchema",
1179
+ "location": {
1180
+ "filePath": "component-writer.main.runtime.ts",
1181
+ "line": 33,
1182
+ "character": 26
1183
+ },
1184
+ "name": "boolean"
1185
+ },
1186
+ "isOptional": true
1187
+ },
1188
+ {
1189
+ "__schema": "VariableLikeSchema",
1190
+ "location": {
1191
+ "filePath": "component-writer.main.runtime.ts",
1192
+ "line": 34,
1193
+ "character": 3
1194
+ },
1195
+ "signature": "(property) ManyComponentsWriterParams.reasonForBitmapChange?: string | undefined",
1196
+ "name": "reasonForBitmapChange",
1197
+ "type": {
1198
+ "__schema": "KeywordTypeSchema",
1199
+ "location": {
1200
+ "filePath": "component-writer.main.runtime.ts",
1201
+ "line": 34,
1202
+ "character": 27
1203
+ },
1204
+ "name": "string"
1205
+ },
1206
+ "isOptional": true
1207
+ },
1208
+ {
1209
+ "__schema": "VariableLikeSchema",
1210
+ "location": {
1211
+ "filePath": "component-writer.main.runtime.ts",
1212
+ "line": 35,
1213
+ "character": 3
1214
+ },
1215
+ "signature": "(property) ManyComponentsWriterParams.shouldUpdateWorkspaceConfig?: boolean | undefined",
1216
+ "name": "shouldUpdateWorkspaceConfig",
1217
+ "type": {
1218
+ "__schema": "KeywordTypeSchema",
1219
+ "location": {
1220
+ "filePath": "component-writer.main.runtime.ts",
1221
+ "line": 35,
1222
+ "character": 33
1223
+ },
1224
+ "name": "boolean"
1225
+ },
1226
+ "isOptional": true
1227
+ }
1228
+ ],
1229
+ "extendsNodes": []
1230
+ },
1231
+ {
1232
+ "__schema": "TypeSchema",
1233
+ "location": {
1234
+ "filePath": "component-writer.main.runtime.ts",
1235
+ "line": 38,
1236
+ "character": 1
1237
+ },
1238
+ "signature": "type ComponentWriterResults = {\n installationError?: Error | undefined;\n compilationError?: Error | undefined;\n workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult | undefined;\n}",
1239
+ "name": "ComponentWriterResults",
1240
+ "type": {
1241
+ "__schema": "TypeLiteralSchema",
1242
+ "location": {
1243
+ "filePath": "component-writer.main.runtime.ts",
1244
+ "line": 38,
1245
+ "character": 38
1246
+ },
1247
+ "members": [
1248
+ {
1249
+ "__schema": "VariableLikeSchema",
1250
+ "location": {
1251
+ "filePath": "component-writer.main.runtime.ts",
1252
+ "line": 39,
1253
+ "character": 3
1254
+ },
1255
+ "signature": "(property) installationError?: Error | undefined",
1256
+ "name": "installationError",
1257
+ "type": {
1258
+ "__schema": "TypeRefSchema",
1259
+ "location": {
1260
+ "filePath": "component-writer.main.runtime.ts",
1261
+ "line": 39,
1262
+ "character": 23
1263
+ },
1264
+ "name": "Error"
1265
+ },
1266
+ "isOptional": true
1267
+ },
1268
+ {
1269
+ "__schema": "VariableLikeSchema",
1270
+ "location": {
1271
+ "filePath": "component-writer.main.runtime.ts",
1272
+ "line": 40,
1273
+ "character": 3
1274
+ },
1275
+ "signature": "(property) compilationError?: Error | undefined",
1276
+ "name": "compilationError",
1277
+ "type": {
1278
+ "__schema": "TypeRefSchema",
1279
+ "location": {
1280
+ "filePath": "component-writer.main.runtime.ts",
1281
+ "line": 40,
1282
+ "character": 22
1283
+ },
1284
+ "name": "Error"
1285
+ },
1286
+ "isOptional": true
1287
+ },
1288
+ {
1289
+ "__schema": "VariableLikeSchema",
1290
+ "location": {
1291
+ "filePath": "component-writer.main.runtime.ts",
1292
+ "line": 41,
1293
+ "character": 3
1294
+ },
1295
+ "signature": "(property) workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult | undefined",
1296
+ "name": "workspaceConfigUpdateResult",
1297
+ "type": {
1298
+ "__schema": "TypeRefSchema",
1299
+ "location": {
1300
+ "filePath": "component-writer.main.runtime.ts",
1301
+ "line": 41,
1302
+ "character": 33
1303
+ },
1304
+ "name": "WorkspaceConfigUpdateResult",
1305
+ "componentId": {
1306
+ "scope": "teambit.workspace",
1307
+ "name": "config-merger"
1308
+ }
1309
+ },
1310
+ "isOptional": true
1311
+ }
1312
+ ]
1313
+ }
1314
+ },
1315
+ {
1316
+ "__schema": "ClassSchema",
1317
+ "location": {
1318
+ "filePath": "component-writer.main.runtime.ts",
1319
+ "line": 44,
1320
+ "character": 1
1321
+ },
1322
+ "signature": "class ComponentWriterMain",
1323
+ "name": "ComponentWriterMain",
1324
+ "members": [
1325
+ {
1326
+ "__schema": "ConstructorSchema",
1327
+ "location": {
1328
+ "filePath": "component-writer.main.runtime.ts",
1329
+ "line": 45,
1330
+ "character": 3
1331
+ },
1332
+ "signature": "constructor ComponentWriterMain(installer: InstallMain, compiler: CompilerMain, workspace: Workspace, logger: Logger, mover: MoverMain, configMerge: ConfigMergerMain): ComponentWriterMain",
1333
+ "name": "constructor",
1334
+ "params": [
1335
+ {
1336
+ "__schema": "ParameterSchema",
1337
+ "location": {
1338
+ "filePath": "component-writer.main.runtime.ts",
1339
+ "line": 46,
1340
+ "character": 5
1341
+ },
1342
+ "name": "installer",
1343
+ "type": {
1344
+ "__schema": "TypeRefSchema",
1345
+ "location": {
1346
+ "filePath": "component-writer.main.runtime.ts",
1347
+ "line": 46,
1348
+ "character": 24
1349
+ },
1350
+ "name": "InstallMain",
1351
+ "componentId": {
1352
+ "scope": "teambit.workspace",
1353
+ "name": "install"
1354
+ }
1355
+ },
1356
+ "isOptional": false,
1357
+ "isSpread": false
1358
+ },
1359
+ {
1360
+ "__schema": "ParameterSchema",
1361
+ "location": {
1362
+ "filePath": "component-writer.main.runtime.ts",
1363
+ "line": 47,
1364
+ "character": 5
1365
+ },
1366
+ "name": "compiler",
1367
+ "type": {
1368
+ "__schema": "TypeRefSchema",
1369
+ "location": {
1370
+ "filePath": "component-writer.main.runtime.ts",
1371
+ "line": 47,
1372
+ "character": 23
1373
+ },
1374
+ "name": "CompilerMain",
1375
+ "componentId": {
1376
+ "scope": "teambit.compilation",
1377
+ "name": "compiler"
1378
+ }
1379
+ },
1380
+ "isOptional": false,
1381
+ "isSpread": false
1382
+ },
1383
+ {
1384
+ "__schema": "ParameterSchema",
1385
+ "location": {
1386
+ "filePath": "component-writer.main.runtime.ts",
1387
+ "line": 48,
1388
+ "character": 5
1389
+ },
1390
+ "name": "workspace",
1391
+ "type": {
1392
+ "__schema": "TypeRefSchema",
1393
+ "location": {
1394
+ "filePath": "component-writer.main.runtime.ts",
1395
+ "line": 48,
1396
+ "character": 24
1397
+ },
1398
+ "name": "Workspace",
1399
+ "componentId": {
1400
+ "scope": "teambit.workspace",
1401
+ "name": "workspace"
1402
+ }
1403
+ },
1404
+ "isOptional": false,
1405
+ "isSpread": false
1406
+ },
1407
+ {
1408
+ "__schema": "ParameterSchema",
1409
+ "location": {
1410
+ "filePath": "component-writer.main.runtime.ts",
1411
+ "line": 49,
1412
+ "character": 5
1413
+ },
1414
+ "name": "logger",
1415
+ "type": {
1416
+ "__schema": "TypeRefSchema",
1417
+ "location": {
1418
+ "filePath": "component-writer.main.runtime.ts",
1419
+ "line": 49,
1420
+ "character": 21
1421
+ },
1422
+ "name": "Logger",
1423
+ "componentId": {
1424
+ "scope": "teambit.harmony",
1425
+ "name": "logger"
1426
+ }
1427
+ },
1428
+ "isOptional": false,
1429
+ "isSpread": false
1430
+ },
1431
+ {
1432
+ "__schema": "ParameterSchema",
1433
+ "location": {
1434
+ "filePath": "component-writer.main.runtime.ts",
1435
+ "line": 50,
1436
+ "character": 5
1437
+ },
1438
+ "name": "mover",
1439
+ "type": {
1440
+ "__schema": "TypeRefSchema",
1441
+ "location": {
1442
+ "filePath": "component-writer.main.runtime.ts",
1443
+ "line": 50,
1444
+ "character": 20
1445
+ },
1446
+ "name": "MoverMain",
1447
+ "componentId": {
1448
+ "scope": "teambit.component",
1449
+ "name": "mover"
1450
+ }
1451
+ },
1452
+ "isOptional": false,
1453
+ "isSpread": false
1454
+ },
1455
+ {
1456
+ "__schema": "ParameterSchema",
1457
+ "location": {
1458
+ "filePath": "component-writer.main.runtime.ts",
1459
+ "line": 51,
1460
+ "character": 5
1461
+ },
1462
+ "name": "configMerge",
1463
+ "type": {
1464
+ "__schema": "TypeRefSchema",
1465
+ "location": {
1466
+ "filePath": "component-writer.main.runtime.ts",
1467
+ "line": 51,
1468
+ "character": 26
1469
+ },
1470
+ "name": "ConfigMergerMain",
1471
+ "componentId": {
1472
+ "scope": "teambit.workspace",
1473
+ "name": "config-merger"
1474
+ }
1475
+ },
1476
+ "isOptional": false,
1477
+ "isSpread": false
1478
+ }
1479
+ ],
1480
+ "returnType": {
1481
+ "__schema": "ThisTypeSchema",
1482
+ "location": {
1483
+ "filePath": "component-writer.main.runtime.ts",
1484
+ "line": 44,
1485
+ "character": 1
1486
+ },
1487
+ "name": "ComponentWriterMain"
1488
+ },
1489
+ "modifiers": []
1490
+ },
1491
+ {
1492
+ "__schema": "GetAccessorSchema",
1493
+ "location": {
1494
+ "filePath": "component-writer.main.runtime.ts",
1495
+ "line": 54,
1496
+ "character": 3
1497
+ },
1498
+ "signature": "(getter) ComponentWriterMain.consumer: Consumer",
1499
+ "name": "consumer",
1500
+ "type": {
1501
+ "__schema": "TypeRefSchema",
1502
+ "location": {
1503
+ "filePath": "component-writer.main.runtime.ts",
1504
+ "line": 54,
1505
+ "character": 3
1506
+ },
1507
+ "name": "Consumer",
1508
+ "packageName": "@teambit/legacy/dist/consumer/consumer"
1509
+ }
1510
+ },
1511
+ {
1512
+ "__schema": "FunctionLikeSchema",
1513
+ "location": {
1514
+ "filePath": "component-writer.main.runtime.ts",
1515
+ "line": 58,
1516
+ "character": 3
1517
+ },
1518
+ "signature": "(method) ComponentWriterMain.writeMany(opts: ManyComponentsWriterParams): Promise<ComponentWriterResults>",
1519
+ "name": "writeMany",
1520
+ "params": [
1521
+ {
1522
+ "__schema": "ParameterSchema",
1523
+ "location": {
1524
+ "filePath": "component-writer.main.runtime.ts",
1525
+ "line": 58,
1526
+ "character": 19
1527
+ },
1528
+ "name": "opts",
1529
+ "type": {
1530
+ "__schema": "TypeRefSchema",
1531
+ "location": {
1532
+ "filePath": "component-writer.main.runtime.ts",
1533
+ "line": 58,
1534
+ "character": 25
1535
+ },
1536
+ "name": "ManyComponentsWriterParams"
1537
+ },
1538
+ "isOptional": false,
1539
+ "isSpread": false
1540
+ }
1541
+ ],
1542
+ "returnType": {
1543
+ "__schema": "TypeRefSchema",
1544
+ "location": {
1545
+ "filePath": "component-writer.main.runtime.ts",
1546
+ "line": 58,
1547
+ "character": 54
1548
+ },
1549
+ "name": "Promise",
1550
+ "typeArgs": [
1551
+ {
1552
+ "__schema": "TypeRefSchema",
1553
+ "location": {
1554
+ "filePath": "component-writer.main.runtime.ts",
1555
+ "line": 58,
1556
+ "character": 62
1557
+ },
1558
+ "name": "ComponentWriterResults"
1559
+ }
1560
+ ]
1561
+ },
1562
+ "modifiers": [
1563
+ "async"
1564
+ ]
1565
+ },
1566
+ {
1567
+ "__schema": "VariableLikeSchema",
1568
+ "location": {
1569
+ "filePath": "component-writer.main.runtime.ts",
1570
+ "line": 296,
1571
+ "character": 3
1572
+ },
1573
+ "signature": "(property) ComponentWriterMain.slots: never[]",
1574
+ "name": "slots",
1575
+ "type": {
1576
+ "__schema": "InferenceTypeSchema",
1577
+ "location": {
1578
+ "filePath": "component-writer.main.runtime.ts",
1579
+ "line": 296,
1580
+ "character": 3
1581
+ },
1582
+ "type": "never[]"
1583
+ },
1584
+ "isOptional": true,
1585
+ "defaultValue": "[]"
1586
+ },
1587
+ {
1588
+ "__schema": "VariableLikeSchema",
1589
+ "location": {
1590
+ "filePath": "component-writer.main.runtime.ts",
1591
+ "line": 297,
1592
+ "character": 3
1593
+ },
1594
+ "signature": "(property) ComponentWriterMain.dependencies: Aspect[]",
1595
+ "name": "dependencies",
1596
+ "type": {
1597
+ "__schema": "InferenceTypeSchema",
1598
+ "location": {
1599
+ "filePath": "component-writer.main.runtime.ts",
1600
+ "line": 297,
1601
+ "character": 3
1602
+ },
1603
+ "type": "Aspect[]"
1604
+ },
1605
+ "isOptional": true,
1606
+ "defaultValue": "[InstallAspect, CompilerAspect, LoggerAspect, WorkspaceAspect, MoverAspect, ConfigMergerAspect]"
1607
+ },
1608
+ {
1609
+ "__schema": "VariableLikeSchema",
1610
+ "location": {
1611
+ "filePath": "component-writer.main.runtime.ts",
1612
+ "line": 298,
1613
+ "character": 3
1614
+ },
1615
+ "signature": "(property) ComponentWriterMain.runtime: RuntimeDefinition",
1616
+ "name": "runtime",
1617
+ "type": {
1618
+ "__schema": "InferenceTypeSchema",
1619
+ "location": {
1620
+ "filePath": "component-writer.main.runtime.ts",
1621
+ "line": 298,
1622
+ "character": 3
1623
+ },
1624
+ "type": "RuntimeDefinition"
1625
+ },
1626
+ "isOptional": true,
1627
+ "defaultValue": "MainRuntime"
1628
+ },
1629
+ {
1630
+ "__schema": "FunctionLikeSchema",
1631
+ "location": {
1632
+ "filePath": "component-writer.main.runtime.ts",
1633
+ "line": 299,
1634
+ "character": 3
1635
+ },
1636
+ "signature": "(method) ComponentWriterMain.provider([install, compiler, loggerMain, workspace, mover, configMerger]: [\n InstallMain,\n CompilerMain,\n LoggerMain,\n Workspace,\n MoverMain,\n ConfigMergerMain\n]): Promise<ComponentWriterMain>",
1637
+ "name": "provider",
1638
+ "params": [
1639
+ {
1640
+ "__schema": "ParameterSchema",
1641
+ "location": {
1642
+ "filePath": "component-writer.main.runtime.ts",
1643
+ "line": 299,
1644
+ "character": 25
1645
+ },
1646
+ "name": "[ install, compiler, loggerMain, workspace, mover, configMerger ]",
1647
+ "type": {
1648
+ "__schema": "TupleTypeSchema",
1649
+ "location": {
1650
+ "filePath": "component-writer.main.runtime.ts",
1651
+ "line": 299,
1652
+ "character": 90
1653
+ },
1654
+ "elements": [
1655
+ {
1656
+ "__schema": "TypeRefSchema",
1657
+ "location": {
1658
+ "filePath": "component-writer.main.runtime.ts",
1659
+ "line": 300,
1660
+ "character": 5
1661
+ },
1662
+ "name": "InstallMain",
1663
+ "componentId": {
1664
+ "scope": "teambit.workspace",
1665
+ "name": "install"
1666
+ }
1667
+ },
1668
+ {
1669
+ "__schema": "TypeRefSchema",
1670
+ "location": {
1671
+ "filePath": "component-writer.main.runtime.ts",
1672
+ "line": 301,
1673
+ "character": 5
1674
+ },
1675
+ "name": "CompilerMain",
1676
+ "componentId": {
1677
+ "scope": "teambit.compilation",
1678
+ "name": "compiler"
1679
+ }
1680
+ },
1681
+ {
1682
+ "__schema": "TypeRefSchema",
1683
+ "location": {
1684
+ "filePath": "component-writer.main.runtime.ts",
1685
+ "line": 302,
1686
+ "character": 5
1687
+ },
1688
+ "name": "LoggerMain",
1689
+ "componentId": {
1690
+ "scope": "teambit.harmony",
1691
+ "name": "logger"
1692
+ }
1693
+ },
1694
+ {
1695
+ "__schema": "TypeRefSchema",
1696
+ "location": {
1697
+ "filePath": "component-writer.main.runtime.ts",
1698
+ "line": 303,
1699
+ "character": 5
1700
+ },
1701
+ "name": "Workspace",
1702
+ "componentId": {
1703
+ "scope": "teambit.workspace",
1704
+ "name": "workspace"
1705
+ }
1706
+ },
1707
+ {
1708
+ "__schema": "TypeRefSchema",
1709
+ "location": {
1710
+ "filePath": "component-writer.main.runtime.ts",
1711
+ "line": 304,
1712
+ "character": 5
1713
+ },
1714
+ "name": "MoverMain",
1715
+ "componentId": {
1716
+ "scope": "teambit.component",
1717
+ "name": "mover"
1718
+ }
1719
+ },
1720
+ {
1721
+ "__schema": "TypeRefSchema",
1722
+ "location": {
1723
+ "filePath": "component-writer.main.runtime.ts",
1724
+ "line": 305,
1725
+ "character": 5
1726
+ },
1727
+ "name": "ConfigMergerMain",
1728
+ "componentId": {
1729
+ "scope": "teambit.workspace",
1730
+ "name": "config-merger"
1731
+ }
1732
+ }
1733
+ ]
1734
+ },
1735
+ "isOptional": false,
1736
+ "isSpread": false
1737
+ }
1738
+ ],
1739
+ "returnType": {
1740
+ "__schema": "InferenceTypeSchema",
1741
+ "location": {
1742
+ "filePath": "component-writer.main.runtime.ts",
1743
+ "line": 299,
1744
+ "character": 3
1745
+ },
1746
+ "type": "Promise<ComponentWriterMain>"
1747
+ },
1748
+ "modifiers": [
1749
+ "static",
1750
+ "async"
1751
+ ]
1752
+ }
1753
+ ],
1754
+ "extendsNodes": [],
1755
+ "implementNodes": []
1756
+ },
1757
+ {
1758
+ "__schema": "UnImplementedSchema",
1759
+ "location": {
1760
+ "filePath": "component-writer.main.runtime.ts",
1761
+ "line": 314,
1762
+ "character": 16
1763
+ },
1764
+ "name": "ComponentWriterMain",
1765
+ "type": "Identifier"
1766
+ },
1767
+ {
1768
+ "__schema": "FunctionLikeSchema",
1769
+ "location": {
1770
+ "filePath": "component-writer.main.runtime.ts",
1771
+ "line": 316,
1772
+ "character": 1
1773
+ },
1774
+ "signature": "function incrementPathRecursively(p: string, allPaths: string[]): string",
1775
+ "name": "incrementPathRecursively",
1776
+ "params": [
1777
+ {
1778
+ "__schema": "ParameterSchema",
1779
+ "location": {
1780
+ "filePath": "component-writer.main.runtime.ts",
1781
+ "line": 316,
1782
+ "character": 42
1783
+ },
1784
+ "name": "p",
1785
+ "type": {
1786
+ "__schema": "KeywordTypeSchema",
1787
+ "location": {
1788
+ "filePath": "component-writer.main.runtime.ts",
1789
+ "line": 316,
1790
+ "character": 45
1791
+ },
1792
+ "name": "string"
1793
+ },
1794
+ "isOptional": false,
1795
+ "isSpread": false
1796
+ },
1797
+ {
1798
+ "__schema": "ParameterSchema",
1799
+ "location": {
1800
+ "filePath": "component-writer.main.runtime.ts",
1801
+ "line": 316,
1802
+ "character": 53
1803
+ },
1804
+ "name": "allPaths",
1805
+ "type": {
1806
+ "__schema": "TypeArraySchema",
1807
+ "location": {
1808
+ "filePath": "component-writer.main.runtime.ts",
1809
+ "line": 316,
1810
+ "character": 63
1811
+ },
1812
+ "type": {
1813
+ "__schema": "KeywordTypeSchema",
1814
+ "location": {
1815
+ "filePath": "component-writer.main.runtime.ts",
1816
+ "line": 316,
1817
+ "character": 63
1818
+ },
1819
+ "name": "string"
1820
+ }
1821
+ },
1822
+ "isOptional": false,
1823
+ "isSpread": false
1824
+ }
1825
+ ],
1826
+ "returnType": {
1827
+ "__schema": "InferenceTypeSchema",
1828
+ "location": {
1829
+ "filePath": "component-writer.main.runtime.ts",
1830
+ "line": 316,
1831
+ "character": 1
1832
+ },
1833
+ "type": "string"
1834
+ },
1835
+ "modifiers": [
1836
+ "export"
1837
+ ]
1838
+ }
1839
+ ],
1840
+ "internals": [
1841
+ {
1842
+ "__schema": "UnImplementedSchema",
1843
+ "location": {
1844
+ "filePath": "component-writer.main.runtime.ts",
1845
+ "line": 312,
1846
+ "character": 1
1847
+ },
1848
+ "name": "ComponentWriterAspect.addRuntime(ComponentWriterMain);",
1849
+ "type": "ExpressionStatement"
1850
+ }
1851
+ ]
1852
+ },
1853
+ {
1854
+ "__schema": "ModuleSchema",
1855
+ "location": {
1856
+ "filePath": "component-writer.aspect.ts",
1857
+ "line": 1,
1858
+ "character": 1
1859
+ },
1860
+ "exports": [
1861
+ {
1862
+ "__schema": "VariableLikeSchema",
1863
+ "location": {
1864
+ "filePath": "component-writer.aspect.ts",
1865
+ "line": 3,
1866
+ "character": 14
1867
+ },
1868
+ "signature": "const ComponentWriterAspect: Aspect",
1869
+ "name": "ComponentWriterAspect",
1870
+ "type": {
1871
+ "__schema": "TypeRefSchema",
1872
+ "location": {
1873
+ "filePath": "component-writer.aspect.ts",
1874
+ "line": 3,
1875
+ "character": 14
1876
+ },
1877
+ "name": "Aspect",
1878
+ "componentId": {
1879
+ "scope": "teambit.harmony",
1880
+ "name": "harmony",
1881
+ "version": "0.4.6"
1882
+ }
1883
+ },
1884
+ "isOptional": false,
1885
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/component-writer',\n})"
1886
+ }
1887
+ ],
1888
+ "internals": []
1889
+ }
1890
+ ],
120
1891
  "componentId": {
121
1892
  "scope": "teambit.component",
122
1893
  "name": "component-writer",
123
- "version": "1.0.258"
1894
+ "version": "1.0.259"
124
1895
  },
125
1896
  "taggedModuleExports": []
126
1897
  }