@teambit/new-component-helper 1.0.256 → 1.0.258

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