@teambit/multi-compiler 1.0.510 → 1.0.511

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