@teambit/multi-compiler 1.0.188 → 1.0.189

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