@teambit/tracker 1.0.258 → 1.0.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/tracker@1.0.258" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/tracker@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -22,13 +22,462 @@
22
22
  },
23
23
  "name": "TrackerMain",
24
24
  "exportNode": {
25
- "__schema": "TypeRefSchema",
25
+ "__schema": "ClassSchema",
26
26
  "location": {
27
- "filePath": "index.ts",
28
- "line": 3,
29
- "character": 15
27
+ "filePath": "tracker.main.runtime.ts",
28
+ "line": 22,
29
+ "character": 1
30
30
  },
31
- "name": "TrackerMain"
31
+ "signature": "class TrackerMain",
32
+ "name": "TrackerMain",
33
+ "members": [
34
+ {
35
+ "__schema": "ConstructorSchema",
36
+ "location": {
37
+ "filePath": "tracker.main.runtime.ts",
38
+ "line": 23,
39
+ "character": 3
40
+ },
41
+ "signature": "constructor TrackerMain(workspace: Workspace, logger: Logger): TrackerMain",
42
+ "name": "constructor",
43
+ "params": [
44
+ {
45
+ "__schema": "ParameterSchema",
46
+ "location": {
47
+ "filePath": "tracker.main.runtime.ts",
48
+ "line": 23,
49
+ "character": 15
50
+ },
51
+ "name": "workspace",
52
+ "type": {
53
+ "__schema": "TypeRefSchema",
54
+ "location": {
55
+ "filePath": "tracker.main.runtime.ts",
56
+ "line": 23,
57
+ "character": 34
58
+ },
59
+ "name": "Workspace",
60
+ "componentId": {
61
+ "scope": "teambit.workspace",
62
+ "name": "workspace"
63
+ }
64
+ },
65
+ "isOptional": false,
66
+ "isSpread": false
67
+ },
68
+ {
69
+ "__schema": "ParameterSchema",
70
+ "location": {
71
+ "filePath": "tracker.main.runtime.ts",
72
+ "line": 23,
73
+ "character": 45
74
+ },
75
+ "name": "logger",
76
+ "type": {
77
+ "__schema": "TypeRefSchema",
78
+ "location": {
79
+ "filePath": "tracker.main.runtime.ts",
80
+ "line": 23,
81
+ "character": 61
82
+ },
83
+ "name": "Logger",
84
+ "componentId": {
85
+ "scope": "teambit.harmony",
86
+ "name": "logger"
87
+ }
88
+ },
89
+ "isOptional": false,
90
+ "isSpread": false
91
+ }
92
+ ],
93
+ "returnType": {
94
+ "__schema": "ThisTypeSchema",
95
+ "location": {
96
+ "filePath": "tracker.main.runtime.ts",
97
+ "line": 22,
98
+ "character": 1
99
+ },
100
+ "name": "TrackerMain"
101
+ },
102
+ "modifiers": []
103
+ },
104
+ {
105
+ "__schema": "FunctionLikeSchema",
106
+ "location": {
107
+ "filePath": "tracker.main.runtime.ts",
108
+ "line": 30,
109
+ "character": 3
110
+ },
111
+ "doc": {
112
+ "__schema": "DocSchema",
113
+ "location": {
114
+ "filePath": "tracker.main.runtime.ts",
115
+ "line": 25,
116
+ "character": 3
117
+ },
118
+ "raw": "/**\n * add a new component to the .bitmap file.\n * this method only adds the records in memory but doesn't persist to the filesystem.\n * to write the .bitmap file once completed, run \"await this.bitMap.write();\"\n */",
119
+ "comment": "add a new component to the .bitmap file.\nthis method only adds the records in memory but doesn't persist to the filesystem.\nto write the .bitmap file once completed, run \"await this.bitMap.write();\""
120
+ },
121
+ "signature": "(method) TrackerMain.track(trackData: TrackData): Promise<TrackResult>",
122
+ "name": "track",
123
+ "params": [
124
+ {
125
+ "__schema": "ParameterSchema",
126
+ "location": {
127
+ "filePath": "tracker.main.runtime.ts",
128
+ "line": 30,
129
+ "character": 15
130
+ },
131
+ "name": "trackData",
132
+ "type": {
133
+ "__schema": "TypeRefSchema",
134
+ "location": {
135
+ "filePath": "tracker.main.runtime.ts",
136
+ "line": 30,
137
+ "character": 26
138
+ },
139
+ "name": "TrackData",
140
+ "internalFilePath": "tracker.main.runtime.ts"
141
+ },
142
+ "isOptional": false,
143
+ "isSpread": false
144
+ }
145
+ ],
146
+ "returnType": {
147
+ "__schema": "TypeRefSchema",
148
+ "location": {
149
+ "filePath": "tracker.main.runtime.ts",
150
+ "line": 30,
151
+ "character": 38
152
+ },
153
+ "name": "Promise",
154
+ "typeArgs": [
155
+ {
156
+ "__schema": "TypeRefSchema",
157
+ "location": {
158
+ "filePath": "tracker.main.runtime.ts",
159
+ "line": 30,
160
+ "character": 46
161
+ },
162
+ "name": "TrackResult",
163
+ "internalFilePath": "tracker.main.runtime.ts"
164
+ }
165
+ ]
166
+ },
167
+ "modifiers": [
168
+ "async"
169
+ ]
170
+ },
171
+ {
172
+ "__schema": "FunctionLikeSchema",
173
+ "location": {
174
+ "filePath": "tracker.main.runtime.ts",
175
+ "line": 52,
176
+ "character": 3
177
+ },
178
+ "signature": "(method) TrackerMain.addForCLI(addProps: AddProps): Promise<AddActionResults>",
179
+ "name": "addForCLI",
180
+ "params": [
181
+ {
182
+ "__schema": "ParameterSchema",
183
+ "location": {
184
+ "filePath": "tracker.main.runtime.ts",
185
+ "line": 52,
186
+ "character": 19
187
+ },
188
+ "name": "addProps",
189
+ "type": {
190
+ "__schema": "TypeRefSchema",
191
+ "location": {
192
+ "filePath": "tracker.main.runtime.ts",
193
+ "line": 52,
194
+ "character": 29
195
+ },
196
+ "name": "AddProps",
197
+ "internalFilePath": "add-components.ts"
198
+ },
199
+ "isOptional": false,
200
+ "isSpread": false
201
+ }
202
+ ],
203
+ "returnType": {
204
+ "__schema": "TypeRefSchema",
205
+ "location": {
206
+ "filePath": "tracker.main.runtime.ts",
207
+ "line": 52,
208
+ "character": 40
209
+ },
210
+ "name": "Promise",
211
+ "typeArgs": [
212
+ {
213
+ "__schema": "TypeRefSchema",
214
+ "location": {
215
+ "filePath": "tracker.main.runtime.ts",
216
+ "line": 52,
217
+ "character": 48
218
+ },
219
+ "name": "AddActionResults",
220
+ "internalFilePath": "add-components.ts"
221
+ }
222
+ ]
223
+ },
224
+ "modifiers": [
225
+ "async"
226
+ ]
227
+ },
228
+ {
229
+ "__schema": "FunctionLikeSchema",
230
+ "location": {
231
+ "filePath": "tracker.main.runtime.ts",
232
+ "line": 68,
233
+ "character": 3
234
+ },
235
+ "signature": "(method) TrackerMain.addEnvToConfig(env: string, config: {\n [aspectName: string]: any;\n}): Promise<void>",
236
+ "name": "addEnvToConfig",
237
+ "params": [
238
+ {
239
+ "__schema": "ParameterSchema",
240
+ "location": {
241
+ "filePath": "tracker.main.runtime.ts",
242
+ "line": 68,
243
+ "character": 24
244
+ },
245
+ "name": "env",
246
+ "type": {
247
+ "__schema": "KeywordTypeSchema",
248
+ "location": {
249
+ "filePath": "tracker.main.runtime.ts",
250
+ "line": 68,
251
+ "character": 29
252
+ },
253
+ "name": "string"
254
+ },
255
+ "isOptional": false,
256
+ "isSpread": false
257
+ },
258
+ {
259
+ "__schema": "ParameterSchema",
260
+ "location": {
261
+ "filePath": "tracker.main.runtime.ts",
262
+ "line": 68,
263
+ "character": 37
264
+ },
265
+ "name": "config",
266
+ "type": {
267
+ "__schema": "TypeLiteralSchema",
268
+ "location": {
269
+ "filePath": "tracker.main.runtime.ts",
270
+ "line": 68,
271
+ "character": 45
272
+ },
273
+ "members": [
274
+ {
275
+ "__schema": "IndexSignatureSchema",
276
+ "location": {
277
+ "filePath": "tracker.main.runtime.ts",
278
+ "line": 68,
279
+ "character": 47
280
+ },
281
+ "keyType": {
282
+ "__schema": "ParameterSchema",
283
+ "location": {
284
+ "filePath": "tracker.main.runtime.ts",
285
+ "line": 68,
286
+ "character": 48
287
+ },
288
+ "name": "aspectName",
289
+ "type": {
290
+ "__schema": "KeywordTypeSchema",
291
+ "location": {
292
+ "filePath": "tracker.main.runtime.ts",
293
+ "line": 68,
294
+ "character": 60
295
+ },
296
+ "name": "string"
297
+ },
298
+ "isOptional": false,
299
+ "isSpread": false
300
+ },
301
+ "valueType": {
302
+ "__schema": "KeywordTypeSchema",
303
+ "location": {
304
+ "filePath": "tracker.main.runtime.ts",
305
+ "line": 68,
306
+ "character": 69
307
+ },
308
+ "name": "any"
309
+ }
310
+ }
311
+ ]
312
+ },
313
+ "isOptional": false,
314
+ "isSpread": false
315
+ }
316
+ ],
317
+ "returnType": {
318
+ "__schema": "InferenceTypeSchema",
319
+ "location": {
320
+ "filePath": "tracker.main.runtime.ts",
321
+ "line": 68,
322
+ "character": 3
323
+ },
324
+ "type": "Promise<void>"
325
+ },
326
+ "modifiers": [
327
+ "async"
328
+ ]
329
+ },
330
+ {
331
+ "__schema": "VariableLikeSchema",
332
+ "location": {
333
+ "filePath": "tracker.main.runtime.ts",
334
+ "line": 114,
335
+ "character": 3
336
+ },
337
+ "signature": "(property) TrackerMain.slots: never[]",
338
+ "name": "slots",
339
+ "type": {
340
+ "__schema": "InferenceTypeSchema",
341
+ "location": {
342
+ "filePath": "tracker.main.runtime.ts",
343
+ "line": 114,
344
+ "character": 3
345
+ },
346
+ "type": "never[]"
347
+ },
348
+ "isOptional": true,
349
+ "defaultValue": "[]"
350
+ },
351
+ {
352
+ "__schema": "VariableLikeSchema",
353
+ "location": {
354
+ "filePath": "tracker.main.runtime.ts",
355
+ "line": 115,
356
+ "character": 3
357
+ },
358
+ "signature": "(property) TrackerMain.dependencies: Aspect[]",
359
+ "name": "dependencies",
360
+ "type": {
361
+ "__schema": "InferenceTypeSchema",
362
+ "location": {
363
+ "filePath": "tracker.main.runtime.ts",
364
+ "line": 115,
365
+ "character": 3
366
+ },
367
+ "type": "Aspect[]"
368
+ },
369
+ "isOptional": true,
370
+ "defaultValue": "[CLIAspect, WorkspaceAspect, LoggerAspect]"
371
+ },
372
+ {
373
+ "__schema": "VariableLikeSchema",
374
+ "location": {
375
+ "filePath": "tracker.main.runtime.ts",
376
+ "line": 116,
377
+ "character": 3
378
+ },
379
+ "signature": "(property) TrackerMain.runtime: RuntimeDefinition",
380
+ "name": "runtime",
381
+ "type": {
382
+ "__schema": "InferenceTypeSchema",
383
+ "location": {
384
+ "filePath": "tracker.main.runtime.ts",
385
+ "line": 116,
386
+ "character": 3
387
+ },
388
+ "type": "RuntimeDefinition"
389
+ },
390
+ "isOptional": true,
391
+ "defaultValue": "MainRuntime"
392
+ },
393
+ {
394
+ "__schema": "FunctionLikeSchema",
395
+ "location": {
396
+ "filePath": "tracker.main.runtime.ts",
397
+ "line": 117,
398
+ "character": 3
399
+ },
400
+ "signature": "(method) TrackerMain.provider([cli, workspace, loggerMain]: [CLIMain, Workspace, LoggerMain]): Promise<TrackerMain>",
401
+ "name": "provider",
402
+ "params": [
403
+ {
404
+ "__schema": "ParameterSchema",
405
+ "location": {
406
+ "filePath": "tracker.main.runtime.ts",
407
+ "line": 117,
408
+ "character": 25
409
+ },
410
+ "name": "[ cli, workspace, loggerMain ]",
411
+ "type": {
412
+ "__schema": "TupleTypeSchema",
413
+ "location": {
414
+ "filePath": "tracker.main.runtime.ts",
415
+ "line": 117,
416
+ "character": 55
417
+ },
418
+ "elements": [
419
+ {
420
+ "__schema": "TypeRefSchema",
421
+ "location": {
422
+ "filePath": "tracker.main.runtime.ts",
423
+ "line": 117,
424
+ "character": 56
425
+ },
426
+ "name": "CLIMain",
427
+ "componentId": {
428
+ "scope": "teambit.harmony",
429
+ "name": "cli"
430
+ }
431
+ },
432
+ {
433
+ "__schema": "TypeRefSchema",
434
+ "location": {
435
+ "filePath": "tracker.main.runtime.ts",
436
+ "line": 117,
437
+ "character": 65
438
+ },
439
+ "name": "Workspace",
440
+ "componentId": {
441
+ "scope": "teambit.workspace",
442
+ "name": "workspace"
443
+ }
444
+ },
445
+ {
446
+ "__schema": "TypeRefSchema",
447
+ "location": {
448
+ "filePath": "tracker.main.runtime.ts",
449
+ "line": 117,
450
+ "character": 76
451
+ },
452
+ "name": "LoggerMain",
453
+ "componentId": {
454
+ "scope": "teambit.harmony",
455
+ "name": "logger"
456
+ }
457
+ }
458
+ ]
459
+ },
460
+ "isOptional": false,
461
+ "isSpread": false
462
+ }
463
+ ],
464
+ "returnType": {
465
+ "__schema": "InferenceTypeSchema",
466
+ "location": {
467
+ "filePath": "tracker.main.runtime.ts",
468
+ "line": 117,
469
+ "character": 3
470
+ },
471
+ "type": "Promise<TrackerMain>"
472
+ },
473
+ "modifiers": [
474
+ "static",
475
+ "async"
476
+ ]
477
+ }
478
+ ],
479
+ "extendsNodes": [],
480
+ "implementNodes": []
32
481
  }
33
482
  },
34
483
  {
@@ -50,23 +499,841 @@
50
499
  },
51
500
  "name": "TrackerAspect",
52
501
  "exportNode": {
53
- "__schema": "TypeRefSchema",
502
+ "__schema": "VariableLikeSchema",
54
503
  "location": {
55
- "filePath": "index.ts",
56
- "line": 5,
57
- "character": 10
504
+ "filePath": "tracker.aspect.ts",
505
+ "line": 3,
506
+ "character": 14
58
507
  },
59
- "name": "TrackerAspect"
508
+ "signature": "const TrackerAspect: Aspect",
509
+ "name": "TrackerAspect",
510
+ "type": {
511
+ "__schema": "TypeRefSchema",
512
+ "location": {
513
+ "filePath": "tracker.aspect.ts",
514
+ "line": 3,
515
+ "character": 14
516
+ },
517
+ "name": "Aspect",
518
+ "componentId": {
519
+ "scope": "teambit.harmony",
520
+ "name": "harmony",
521
+ "version": "0.4.6"
522
+ }
523
+ },
524
+ "isOptional": false,
525
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/tracker',\n})"
60
526
  }
61
527
  }
62
528
  ],
63
529
  "internals": []
64
530
  },
65
- "internals": [],
531
+ "internals": [
532
+ {
533
+ "__schema": "ModuleSchema",
534
+ "location": {
535
+ "filePath": "tracker.main.runtime.ts",
536
+ "line": 1,
537
+ "character": 1
538
+ },
539
+ "exports": [
540
+ {
541
+ "__schema": "TypeSchema",
542
+ "location": {
543
+ "filePath": "tracker.main.runtime.ts",
544
+ "line": 12,
545
+ "character": 1
546
+ },
547
+ "signature": "type TrackResult = {\n files: string[];\n warnings: Warnings;\n componentId: ComponentID;\n}",
548
+ "name": "TrackResult",
549
+ "type": {
550
+ "__schema": "TypeLiteralSchema",
551
+ "location": {
552
+ "filePath": "tracker.main.runtime.ts",
553
+ "line": 12,
554
+ "character": 27
555
+ },
556
+ "members": [
557
+ {
558
+ "__schema": "VariableLikeSchema",
559
+ "location": {
560
+ "filePath": "tracker.main.runtime.ts",
561
+ "line": 12,
562
+ "character": 29
563
+ },
564
+ "signature": "(property) files: string[]",
565
+ "name": "files",
566
+ "type": {
567
+ "__schema": "TypeArraySchema",
568
+ "location": {
569
+ "filePath": "tracker.main.runtime.ts",
570
+ "line": 12,
571
+ "character": 36
572
+ },
573
+ "type": {
574
+ "__schema": "KeywordTypeSchema",
575
+ "location": {
576
+ "filePath": "tracker.main.runtime.ts",
577
+ "line": 12,
578
+ "character": 36
579
+ },
580
+ "name": "string"
581
+ }
582
+ },
583
+ "isOptional": false
584
+ },
585
+ {
586
+ "__schema": "VariableLikeSchema",
587
+ "location": {
588
+ "filePath": "tracker.main.runtime.ts",
589
+ "line": 12,
590
+ "character": 46
591
+ },
592
+ "signature": "(property) warnings: Warnings",
593
+ "name": "warnings",
594
+ "type": {
595
+ "__schema": "TypeRefSchema",
596
+ "location": {
597
+ "filePath": "tracker.main.runtime.ts",
598
+ "line": 12,
599
+ "character": 46
600
+ },
601
+ "name": "Warnings",
602
+ "internalFilePath": "add-components.ts"
603
+ },
604
+ "isOptional": false
605
+ },
606
+ {
607
+ "__schema": "VariableLikeSchema",
608
+ "location": {
609
+ "filePath": "tracker.main.runtime.ts",
610
+ "line": 12,
611
+ "character": 66
612
+ },
613
+ "signature": "(property) componentId: ComponentID",
614
+ "name": "componentId",
615
+ "type": {
616
+ "__schema": "TypeRefSchema",
617
+ "location": {
618
+ "filePath": "tracker.main.runtime.ts",
619
+ "line": 12,
620
+ "character": 66
621
+ },
622
+ "name": "ComponentID",
623
+ "componentId": {
624
+ "scope": "teambit.component",
625
+ "name": "component-id",
626
+ "version": "1.2.0"
627
+ }
628
+ },
629
+ "isOptional": false
630
+ }
631
+ ]
632
+ }
633
+ },
634
+ {
635
+ "__schema": "TypeSchema",
636
+ "location": {
637
+ "filePath": "tracker.main.runtime.ts",
638
+ "line": 14,
639
+ "character": 1
640
+ },
641
+ "signature": "type TrackData = {\n rootDir: PathOsBasedRelative | PathOsBasedAbsolute;\n componentName?: string | undefined;\n mainFile?: string | undefined;\n defaultScope?: string | undefined;\n config?: {\n [aspectName: string]: any;\n } | undefined;\n}",
642
+ "name": "TrackData",
643
+ "type": {
644
+ "__schema": "TypeLiteralSchema",
645
+ "location": {
646
+ "filePath": "tracker.main.runtime.ts",
647
+ "line": 14,
648
+ "character": 25
649
+ },
650
+ "members": [
651
+ {
652
+ "__schema": "VariableLikeSchema",
653
+ "location": {
654
+ "filePath": "tracker.main.runtime.ts",
655
+ "line": 15,
656
+ "character": 3
657
+ },
658
+ "signature": "(property) rootDir: string",
659
+ "name": "rootDir",
660
+ "type": {
661
+ "__schema": "TypeUnionSchema",
662
+ "location": {
663
+ "filePath": "tracker.main.runtime.ts",
664
+ "line": 15,
665
+ "character": 12
666
+ },
667
+ "types": [
668
+ {
669
+ "__schema": "TypeRefSchema",
670
+ "location": {
671
+ "filePath": "tracker.main.runtime.ts",
672
+ "line": 15,
673
+ "character": 12
674
+ },
675
+ "name": "PathOsBasedRelative",
676
+ "packageName": "@teambit/legacy/dist/utils/path"
677
+ },
678
+ {
679
+ "__schema": "TypeRefSchema",
680
+ "location": {
681
+ "filePath": "tracker.main.runtime.ts",
682
+ "line": 15,
683
+ "character": 34
684
+ },
685
+ "name": "PathOsBasedAbsolute",
686
+ "packageName": "@teambit/legacy/dist/utils/path"
687
+ }
688
+ ]
689
+ },
690
+ "isOptional": false
691
+ },
692
+ {
693
+ "__schema": "VariableLikeSchema",
694
+ "location": {
695
+ "filePath": "tracker.main.runtime.ts",
696
+ "line": 16,
697
+ "character": 3
698
+ },
699
+ "signature": "(property) componentName?: string | undefined",
700
+ "name": "componentName",
701
+ "type": {
702
+ "__schema": "KeywordTypeSchema",
703
+ "location": {
704
+ "filePath": "tracker.main.runtime.ts",
705
+ "line": 16,
706
+ "character": 19
707
+ },
708
+ "name": "string"
709
+ },
710
+ "isOptional": true
711
+ },
712
+ {
713
+ "__schema": "VariableLikeSchema",
714
+ "location": {
715
+ "filePath": "tracker.main.runtime.ts",
716
+ "line": 17,
717
+ "character": 3
718
+ },
719
+ "signature": "(property) mainFile?: string | undefined",
720
+ "name": "mainFile",
721
+ "type": {
722
+ "__schema": "KeywordTypeSchema",
723
+ "location": {
724
+ "filePath": "tracker.main.runtime.ts",
725
+ "line": 17,
726
+ "character": 14
727
+ },
728
+ "name": "string"
729
+ },
730
+ "isOptional": true
731
+ },
732
+ {
733
+ "__schema": "VariableLikeSchema",
734
+ "location": {
735
+ "filePath": "tracker.main.runtime.ts",
736
+ "line": 18,
737
+ "character": 3
738
+ },
739
+ "signature": "(property) defaultScope?: string | undefined",
740
+ "name": "defaultScope",
741
+ "type": {
742
+ "__schema": "KeywordTypeSchema",
743
+ "location": {
744
+ "filePath": "tracker.main.runtime.ts",
745
+ "line": 18,
746
+ "character": 18
747
+ },
748
+ "name": "string"
749
+ },
750
+ "isOptional": true
751
+ },
752
+ {
753
+ "__schema": "VariableLikeSchema",
754
+ "location": {
755
+ "filePath": "tracker.main.runtime.ts",
756
+ "line": 19,
757
+ "character": 3
758
+ },
759
+ "signature": "(property) config?: {\n [aspectName: string]: any;\n} | undefined",
760
+ "name": "config",
761
+ "type": {
762
+ "__schema": "TypeLiteralSchema",
763
+ "location": {
764
+ "filePath": "tracker.main.runtime.ts",
765
+ "line": 19,
766
+ "character": 12
767
+ },
768
+ "members": [
769
+ {
770
+ "__schema": "IndexSignatureSchema",
771
+ "location": {
772
+ "filePath": "tracker.main.runtime.ts",
773
+ "line": 19,
774
+ "character": 14
775
+ },
776
+ "keyType": {
777
+ "__schema": "ParameterSchema",
778
+ "location": {
779
+ "filePath": "tracker.main.runtime.ts",
780
+ "line": 19,
781
+ "character": 15
782
+ },
783
+ "name": "aspectName",
784
+ "type": {
785
+ "__schema": "KeywordTypeSchema",
786
+ "location": {
787
+ "filePath": "tracker.main.runtime.ts",
788
+ "line": 19,
789
+ "character": 27
790
+ },
791
+ "name": "string"
792
+ },
793
+ "isOptional": false,
794
+ "isSpread": false
795
+ },
796
+ "valueType": {
797
+ "__schema": "KeywordTypeSchema",
798
+ "location": {
799
+ "filePath": "tracker.main.runtime.ts",
800
+ "line": 19,
801
+ "character": 36
802
+ },
803
+ "name": "any"
804
+ }
805
+ }
806
+ ]
807
+ },
808
+ "isOptional": true
809
+ }
810
+ ]
811
+ }
812
+ },
813
+ {
814
+ "__schema": "ClassSchema",
815
+ "location": {
816
+ "filePath": "tracker.main.runtime.ts",
817
+ "line": 22,
818
+ "character": 1
819
+ },
820
+ "signature": "class TrackerMain",
821
+ "name": "TrackerMain",
822
+ "members": [
823
+ {
824
+ "__schema": "ConstructorSchema",
825
+ "location": {
826
+ "filePath": "tracker.main.runtime.ts",
827
+ "line": 23,
828
+ "character": 3
829
+ },
830
+ "signature": "constructor TrackerMain(workspace: Workspace, logger: Logger): TrackerMain",
831
+ "name": "constructor",
832
+ "params": [
833
+ {
834
+ "__schema": "ParameterSchema",
835
+ "location": {
836
+ "filePath": "tracker.main.runtime.ts",
837
+ "line": 23,
838
+ "character": 15
839
+ },
840
+ "name": "workspace",
841
+ "type": {
842
+ "__schema": "TypeRefSchema",
843
+ "location": {
844
+ "filePath": "tracker.main.runtime.ts",
845
+ "line": 23,
846
+ "character": 34
847
+ },
848
+ "name": "Workspace",
849
+ "componentId": {
850
+ "scope": "teambit.workspace",
851
+ "name": "workspace"
852
+ }
853
+ },
854
+ "isOptional": false,
855
+ "isSpread": false
856
+ },
857
+ {
858
+ "__schema": "ParameterSchema",
859
+ "location": {
860
+ "filePath": "tracker.main.runtime.ts",
861
+ "line": 23,
862
+ "character": 45
863
+ },
864
+ "name": "logger",
865
+ "type": {
866
+ "__schema": "TypeRefSchema",
867
+ "location": {
868
+ "filePath": "tracker.main.runtime.ts",
869
+ "line": 23,
870
+ "character": 61
871
+ },
872
+ "name": "Logger",
873
+ "componentId": {
874
+ "scope": "teambit.harmony",
875
+ "name": "logger"
876
+ }
877
+ },
878
+ "isOptional": false,
879
+ "isSpread": false
880
+ }
881
+ ],
882
+ "returnType": {
883
+ "__schema": "ThisTypeSchema",
884
+ "location": {
885
+ "filePath": "tracker.main.runtime.ts",
886
+ "line": 22,
887
+ "character": 1
888
+ },
889
+ "name": "TrackerMain"
890
+ },
891
+ "modifiers": []
892
+ },
893
+ {
894
+ "__schema": "FunctionLikeSchema",
895
+ "location": {
896
+ "filePath": "tracker.main.runtime.ts",
897
+ "line": 30,
898
+ "character": 3
899
+ },
900
+ "doc": {
901
+ "__schema": "DocSchema",
902
+ "location": {
903
+ "filePath": "tracker.main.runtime.ts",
904
+ "line": 25,
905
+ "character": 3
906
+ },
907
+ "raw": "/**\n * add a new component to the .bitmap file.\n * this method only adds the records in memory but doesn't persist to the filesystem.\n * to write the .bitmap file once completed, run \"await this.bitMap.write();\"\n */",
908
+ "comment": "add a new component to the .bitmap file.\nthis method only adds the records in memory but doesn't persist to the filesystem.\nto write the .bitmap file once completed, run \"await this.bitMap.write();\""
909
+ },
910
+ "signature": "(method) TrackerMain.track(trackData: TrackData): Promise<TrackResult>",
911
+ "name": "track",
912
+ "params": [
913
+ {
914
+ "__schema": "ParameterSchema",
915
+ "location": {
916
+ "filePath": "tracker.main.runtime.ts",
917
+ "line": 30,
918
+ "character": 15
919
+ },
920
+ "name": "trackData",
921
+ "type": {
922
+ "__schema": "TypeRefSchema",
923
+ "location": {
924
+ "filePath": "tracker.main.runtime.ts",
925
+ "line": 30,
926
+ "character": 26
927
+ },
928
+ "name": "TrackData",
929
+ "internalFilePath": "tracker.main.runtime.ts"
930
+ },
931
+ "isOptional": false,
932
+ "isSpread": false
933
+ }
934
+ ],
935
+ "returnType": {
936
+ "__schema": "TypeRefSchema",
937
+ "location": {
938
+ "filePath": "tracker.main.runtime.ts",
939
+ "line": 30,
940
+ "character": 38
941
+ },
942
+ "name": "Promise",
943
+ "typeArgs": [
944
+ {
945
+ "__schema": "TypeRefSchema",
946
+ "location": {
947
+ "filePath": "tracker.main.runtime.ts",
948
+ "line": 30,
949
+ "character": 46
950
+ },
951
+ "name": "TrackResult",
952
+ "internalFilePath": "tracker.main.runtime.ts"
953
+ }
954
+ ]
955
+ },
956
+ "modifiers": [
957
+ "async"
958
+ ]
959
+ },
960
+ {
961
+ "__schema": "FunctionLikeSchema",
962
+ "location": {
963
+ "filePath": "tracker.main.runtime.ts",
964
+ "line": 52,
965
+ "character": 3
966
+ },
967
+ "signature": "(method) TrackerMain.addForCLI(addProps: AddProps): Promise<AddActionResults>",
968
+ "name": "addForCLI",
969
+ "params": [
970
+ {
971
+ "__schema": "ParameterSchema",
972
+ "location": {
973
+ "filePath": "tracker.main.runtime.ts",
974
+ "line": 52,
975
+ "character": 19
976
+ },
977
+ "name": "addProps",
978
+ "type": {
979
+ "__schema": "TypeRefSchema",
980
+ "location": {
981
+ "filePath": "tracker.main.runtime.ts",
982
+ "line": 52,
983
+ "character": 29
984
+ },
985
+ "name": "AddProps",
986
+ "internalFilePath": "add-components.ts"
987
+ },
988
+ "isOptional": false,
989
+ "isSpread": false
990
+ }
991
+ ],
992
+ "returnType": {
993
+ "__schema": "TypeRefSchema",
994
+ "location": {
995
+ "filePath": "tracker.main.runtime.ts",
996
+ "line": 52,
997
+ "character": 40
998
+ },
999
+ "name": "Promise",
1000
+ "typeArgs": [
1001
+ {
1002
+ "__schema": "TypeRefSchema",
1003
+ "location": {
1004
+ "filePath": "tracker.main.runtime.ts",
1005
+ "line": 52,
1006
+ "character": 48
1007
+ },
1008
+ "name": "AddActionResults",
1009
+ "internalFilePath": "add-components.ts"
1010
+ }
1011
+ ]
1012
+ },
1013
+ "modifiers": [
1014
+ "async"
1015
+ ]
1016
+ },
1017
+ {
1018
+ "__schema": "FunctionLikeSchema",
1019
+ "location": {
1020
+ "filePath": "tracker.main.runtime.ts",
1021
+ "line": 68,
1022
+ "character": 3
1023
+ },
1024
+ "signature": "(method) TrackerMain.addEnvToConfig(env: string, config: {\n [aspectName: string]: any;\n}): Promise<void>",
1025
+ "name": "addEnvToConfig",
1026
+ "params": [
1027
+ {
1028
+ "__schema": "ParameterSchema",
1029
+ "location": {
1030
+ "filePath": "tracker.main.runtime.ts",
1031
+ "line": 68,
1032
+ "character": 24
1033
+ },
1034
+ "name": "env",
1035
+ "type": {
1036
+ "__schema": "KeywordTypeSchema",
1037
+ "location": {
1038
+ "filePath": "tracker.main.runtime.ts",
1039
+ "line": 68,
1040
+ "character": 29
1041
+ },
1042
+ "name": "string"
1043
+ },
1044
+ "isOptional": false,
1045
+ "isSpread": false
1046
+ },
1047
+ {
1048
+ "__schema": "ParameterSchema",
1049
+ "location": {
1050
+ "filePath": "tracker.main.runtime.ts",
1051
+ "line": 68,
1052
+ "character": 37
1053
+ },
1054
+ "name": "config",
1055
+ "type": {
1056
+ "__schema": "TypeLiteralSchema",
1057
+ "location": {
1058
+ "filePath": "tracker.main.runtime.ts",
1059
+ "line": 68,
1060
+ "character": 45
1061
+ },
1062
+ "members": [
1063
+ {
1064
+ "__schema": "IndexSignatureSchema",
1065
+ "location": {
1066
+ "filePath": "tracker.main.runtime.ts",
1067
+ "line": 68,
1068
+ "character": 47
1069
+ },
1070
+ "keyType": {
1071
+ "__schema": "ParameterSchema",
1072
+ "location": {
1073
+ "filePath": "tracker.main.runtime.ts",
1074
+ "line": 68,
1075
+ "character": 48
1076
+ },
1077
+ "name": "aspectName",
1078
+ "type": {
1079
+ "__schema": "KeywordTypeSchema",
1080
+ "location": {
1081
+ "filePath": "tracker.main.runtime.ts",
1082
+ "line": 68,
1083
+ "character": 60
1084
+ },
1085
+ "name": "string"
1086
+ },
1087
+ "isOptional": false,
1088
+ "isSpread": false
1089
+ },
1090
+ "valueType": {
1091
+ "__schema": "KeywordTypeSchema",
1092
+ "location": {
1093
+ "filePath": "tracker.main.runtime.ts",
1094
+ "line": 68,
1095
+ "character": 69
1096
+ },
1097
+ "name": "any"
1098
+ }
1099
+ }
1100
+ ]
1101
+ },
1102
+ "isOptional": false,
1103
+ "isSpread": false
1104
+ }
1105
+ ],
1106
+ "returnType": {
1107
+ "__schema": "InferenceTypeSchema",
1108
+ "location": {
1109
+ "filePath": "tracker.main.runtime.ts",
1110
+ "line": 68,
1111
+ "character": 3
1112
+ },
1113
+ "type": "Promise<void>"
1114
+ },
1115
+ "modifiers": [
1116
+ "async"
1117
+ ]
1118
+ },
1119
+ {
1120
+ "__schema": "VariableLikeSchema",
1121
+ "location": {
1122
+ "filePath": "tracker.main.runtime.ts",
1123
+ "line": 114,
1124
+ "character": 3
1125
+ },
1126
+ "signature": "(property) TrackerMain.slots: never[]",
1127
+ "name": "slots",
1128
+ "type": {
1129
+ "__schema": "InferenceTypeSchema",
1130
+ "location": {
1131
+ "filePath": "tracker.main.runtime.ts",
1132
+ "line": 114,
1133
+ "character": 3
1134
+ },
1135
+ "type": "never[]"
1136
+ },
1137
+ "isOptional": true,
1138
+ "defaultValue": "[]"
1139
+ },
1140
+ {
1141
+ "__schema": "VariableLikeSchema",
1142
+ "location": {
1143
+ "filePath": "tracker.main.runtime.ts",
1144
+ "line": 115,
1145
+ "character": 3
1146
+ },
1147
+ "signature": "(property) TrackerMain.dependencies: Aspect[]",
1148
+ "name": "dependencies",
1149
+ "type": {
1150
+ "__schema": "InferenceTypeSchema",
1151
+ "location": {
1152
+ "filePath": "tracker.main.runtime.ts",
1153
+ "line": 115,
1154
+ "character": 3
1155
+ },
1156
+ "type": "Aspect[]"
1157
+ },
1158
+ "isOptional": true,
1159
+ "defaultValue": "[CLIAspect, WorkspaceAspect, LoggerAspect]"
1160
+ },
1161
+ {
1162
+ "__schema": "VariableLikeSchema",
1163
+ "location": {
1164
+ "filePath": "tracker.main.runtime.ts",
1165
+ "line": 116,
1166
+ "character": 3
1167
+ },
1168
+ "signature": "(property) TrackerMain.runtime: RuntimeDefinition",
1169
+ "name": "runtime",
1170
+ "type": {
1171
+ "__schema": "InferenceTypeSchema",
1172
+ "location": {
1173
+ "filePath": "tracker.main.runtime.ts",
1174
+ "line": 116,
1175
+ "character": 3
1176
+ },
1177
+ "type": "RuntimeDefinition"
1178
+ },
1179
+ "isOptional": true,
1180
+ "defaultValue": "MainRuntime"
1181
+ },
1182
+ {
1183
+ "__schema": "FunctionLikeSchema",
1184
+ "location": {
1185
+ "filePath": "tracker.main.runtime.ts",
1186
+ "line": 117,
1187
+ "character": 3
1188
+ },
1189
+ "signature": "(method) TrackerMain.provider([cli, workspace, loggerMain]: [CLIMain, Workspace, LoggerMain]): Promise<TrackerMain>",
1190
+ "name": "provider",
1191
+ "params": [
1192
+ {
1193
+ "__schema": "ParameterSchema",
1194
+ "location": {
1195
+ "filePath": "tracker.main.runtime.ts",
1196
+ "line": 117,
1197
+ "character": 25
1198
+ },
1199
+ "name": "[ cli, workspace, loggerMain ]",
1200
+ "type": {
1201
+ "__schema": "TupleTypeSchema",
1202
+ "location": {
1203
+ "filePath": "tracker.main.runtime.ts",
1204
+ "line": 117,
1205
+ "character": 55
1206
+ },
1207
+ "elements": [
1208
+ {
1209
+ "__schema": "TypeRefSchema",
1210
+ "location": {
1211
+ "filePath": "tracker.main.runtime.ts",
1212
+ "line": 117,
1213
+ "character": 56
1214
+ },
1215
+ "name": "CLIMain",
1216
+ "componentId": {
1217
+ "scope": "teambit.harmony",
1218
+ "name": "cli"
1219
+ }
1220
+ },
1221
+ {
1222
+ "__schema": "TypeRefSchema",
1223
+ "location": {
1224
+ "filePath": "tracker.main.runtime.ts",
1225
+ "line": 117,
1226
+ "character": 65
1227
+ },
1228
+ "name": "Workspace",
1229
+ "componentId": {
1230
+ "scope": "teambit.workspace",
1231
+ "name": "workspace"
1232
+ }
1233
+ },
1234
+ {
1235
+ "__schema": "TypeRefSchema",
1236
+ "location": {
1237
+ "filePath": "tracker.main.runtime.ts",
1238
+ "line": 117,
1239
+ "character": 76
1240
+ },
1241
+ "name": "LoggerMain",
1242
+ "componentId": {
1243
+ "scope": "teambit.harmony",
1244
+ "name": "logger"
1245
+ }
1246
+ }
1247
+ ]
1248
+ },
1249
+ "isOptional": false,
1250
+ "isSpread": false
1251
+ }
1252
+ ],
1253
+ "returnType": {
1254
+ "__schema": "InferenceTypeSchema",
1255
+ "location": {
1256
+ "filePath": "tracker.main.runtime.ts",
1257
+ "line": 117,
1258
+ "character": 3
1259
+ },
1260
+ "type": "Promise<TrackerMain>"
1261
+ },
1262
+ "modifiers": [
1263
+ "static",
1264
+ "async"
1265
+ ]
1266
+ }
1267
+ ],
1268
+ "extendsNodes": [],
1269
+ "implementNodes": []
1270
+ },
1271
+ {
1272
+ "__schema": "UnImplementedSchema",
1273
+ "location": {
1274
+ "filePath": "tracker.main.runtime.ts",
1275
+ "line": 127,
1276
+ "character": 16
1277
+ },
1278
+ "name": "TrackerMain",
1279
+ "type": "Identifier"
1280
+ }
1281
+ ],
1282
+ "internals": [
1283
+ {
1284
+ "__schema": "UnImplementedSchema",
1285
+ "location": {
1286
+ "filePath": "tracker.main.runtime.ts",
1287
+ "line": 125,
1288
+ "character": 1
1289
+ },
1290
+ "name": "TrackerAspect.addRuntime(TrackerMain);",
1291
+ "type": "ExpressionStatement"
1292
+ }
1293
+ ]
1294
+ },
1295
+ {
1296
+ "__schema": "ModuleSchema",
1297
+ "location": {
1298
+ "filePath": "tracker.aspect.ts",
1299
+ "line": 1,
1300
+ "character": 1
1301
+ },
1302
+ "exports": [
1303
+ {
1304
+ "__schema": "VariableLikeSchema",
1305
+ "location": {
1306
+ "filePath": "tracker.aspect.ts",
1307
+ "line": 3,
1308
+ "character": 14
1309
+ },
1310
+ "signature": "const TrackerAspect: Aspect",
1311
+ "name": "TrackerAspect",
1312
+ "type": {
1313
+ "__schema": "TypeRefSchema",
1314
+ "location": {
1315
+ "filePath": "tracker.aspect.ts",
1316
+ "line": 3,
1317
+ "character": 14
1318
+ },
1319
+ "name": "Aspect",
1320
+ "componentId": {
1321
+ "scope": "teambit.harmony",
1322
+ "name": "harmony",
1323
+ "version": "0.4.6"
1324
+ }
1325
+ },
1326
+ "isOptional": false,
1327
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/tracker',\n})"
1328
+ }
1329
+ ],
1330
+ "internals": []
1331
+ }
1332
+ ],
66
1333
  "componentId": {
67
1334
  "scope": "teambit.component",
68
1335
  "name": "tracker",
69
- "version": "1.0.258"
1336
+ "version": "1.0.259"
70
1337
  },
71
1338
  "taggedModuleExports": []
72
1339
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/tracker",
3
- "version": "1.0.258",
3
+ "version": "1.0.259",
4
4
  "homepage": "https://bit.cloud/teambit/component/tracker",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "tracker",
9
- "version": "1.0.258"
9
+ "version": "1.0.259"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -19,11 +19,11 @@
19
19
  "@teambit/component-id": "1.2.0",
20
20
  "@teambit/legacy-bit-id": "1.1.1",
21
21
  "@teambit/harmony": "0.4.6",
22
- "@teambit/cli": "0.0.862",
23
- "@teambit/workspace.modules.node-modules-linker": "0.0.171",
24
- "@teambit/workspace": "1.0.258",
25
- "@teambit/envs": "1.0.258",
26
- "@teambit/logger": "0.0.955"
22
+ "@teambit/cli": "0.0.863",
23
+ "@teambit/workspace.modules.node-modules-linker": "0.0.172",
24
+ "@teambit/workspace": "1.0.259",
25
+ "@teambit/envs": "1.0.259",
26
+ "@teambit/logger": "0.0.956"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/fs-extra": "9.0.7",