@teambit/babel 1.0.183 → 1.0.185

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