@teambit/host-initializer 0.0.229 → 0.0.231

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.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/host-initializer",
3
- "version": "0.0.229",
3
+ "version": "0.0.231",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/host-initializer",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "host-initializer",
9
- "version": "0.0.229"
9
+ "version": "0.0.231"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -15,14 +15,14 @@
15
15
  "@teambit/harmony": "0.4.6",
16
16
  "@teambit/bit-error": "0.0.404",
17
17
  "@teambit/component.sources": "0.0.73",
18
- "@teambit/config": "0.0.1267",
18
+ "@teambit/config": "0.0.1269",
19
19
  "@teambit/legacy.bit-map": "0.0.78",
20
20
  "@teambit/legacy.consumer": "0.0.21",
21
21
  "@teambit/legacy.scope": "0.0.21",
22
22
  "@teambit/legacy.utils": "0.0.14",
23
23
  "@teambit/toolbox.string.random": "0.0.3",
24
- "@teambit/cli": "0.0.1093",
25
- "@teambit/objects": "0.0.23",
24
+ "@teambit/cli": "0.0.1095",
25
+ "@teambit/objects": "0.0.25",
26
26
  "@teambit/scope.modules.find-scope-path": "0.0.8",
27
27
  "@teambit/toolbox.fs.is-dir-empty": "0.0.3",
28
28
  "@teambit/workspace.modules.workspace-locator": "0.0.8",
@@ -33,7 +33,7 @@
33
33
  "devDependencies": {
34
34
  "@types/lodash": "4.14.165",
35
35
  "@types/fs-extra": "9.0.7",
36
- "@teambit/harmony.envs.core-aspect-env": "0.0.68"
36
+ "@teambit/harmony.envs.core-aspect-env": "0.0.69"
37
37
  },
38
38
  "peerDependencies": {},
39
39
  "license": "Apache-2.0",
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.harmony/host-initializer@0.0.229" tests="0" failures="0" errors="0" skipped="0"/>
4
- </testsuites>
@@ -1 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports["teambit.harmony/host-initializer-preview"]=o():e["teambit.harmony/host-initializer-preview"]=o()}(self,(()=>(()=>{"use strict";var e={d:(o,t)=>{for(var i in t)e.o(t,i)&&!e.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:t[i]})},o:(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},o={};e.r(o),e.d(o,{compositions:()=>t,compositions_metadata:()=>r,overview:()=>i});const t=[],i=[],r={compositions:[]};return o})()));
@@ -1,1137 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ExportSchema",
18
- "location": {
19
- "filePath": "index.ts",
20
- "line": 3,
21
- "character": 10
22
- },
23
- "signature": "class HostInitializerMain",
24
- "name": "HostInitializerMain",
25
- "exportNode": {
26
- "__schema": "ClassSchema",
27
- "location": {
28
- "filePath": "host-initializer.main.runtime.ts",
29
- "line": 16,
30
- "character": 1
31
- },
32
- "signature": "class HostInitializerMain",
33
- "name": "HostInitializerMain",
34
- "members": [
35
- {
36
- "__schema": "FunctionLikeSchema",
37
- "location": {
38
- "filePath": "host-initializer.main.runtime.ts",
39
- "line": 17,
40
- "character": 3
41
- },
42
- "signature": "(method) HostInitializerMain.init(absPath?: string, noGit?: boolean, noPackageJson?: boolean, reset?: boolean, resetNew?: boolean, resetLaneNew?: boolean, resetHard?: boolean, resetScope?: boolean, force?: boolean, workspaceConfigProps?: WorkspaceExtensionProps, generator?: string): Promise<Consumer>",
43
- "name": "init",
44
- "params": [
45
- {
46
- "__schema": "ParameterSchema",
47
- "location": {
48
- "filePath": "host-initializer.main.runtime.ts",
49
- "line": 18,
50
- "character": 5
51
- },
52
- "name": "absPath",
53
- "type": {
54
- "__schema": "KeywordTypeSchema",
55
- "location": {
56
- "filePath": "host-initializer.main.runtime.ts",
57
- "line": 18,
58
- "character": 15
59
- },
60
- "name": "string"
61
- },
62
- "isOptional": true,
63
- "isSpread": false
64
- },
65
- {
66
- "__schema": "ParameterSchema",
67
- "location": {
68
- "filePath": "host-initializer.main.runtime.ts",
69
- "line": 19,
70
- "character": 5
71
- },
72
- "name": "noGit",
73
- "type": {
74
- "__schema": "InferenceTypeSchema",
75
- "location": {
76
- "filePath": "host-initializer.main.runtime.ts",
77
- "line": 19,
78
- "character": 5
79
- },
80
- "type": "boolean"
81
- },
82
- "isOptional": true,
83
- "defaultValue": "false",
84
- "isSpread": false
85
- },
86
- {
87
- "__schema": "ParameterSchema",
88
- "location": {
89
- "filePath": "host-initializer.main.runtime.ts",
90
- "line": 20,
91
- "character": 5
92
- },
93
- "name": "noPackageJson",
94
- "type": {
95
- "__schema": "InferenceTypeSchema",
96
- "location": {
97
- "filePath": "host-initializer.main.runtime.ts",
98
- "line": 20,
99
- "character": 5
100
- },
101
- "type": "boolean"
102
- },
103
- "isOptional": true,
104
- "defaultValue": "false",
105
- "isSpread": false
106
- },
107
- {
108
- "__schema": "ParameterSchema",
109
- "location": {
110
- "filePath": "host-initializer.main.runtime.ts",
111
- "line": 21,
112
- "character": 5
113
- },
114
- "name": "reset",
115
- "type": {
116
- "__schema": "InferenceTypeSchema",
117
- "location": {
118
- "filePath": "host-initializer.main.runtime.ts",
119
- "line": 21,
120
- "character": 5
121
- },
122
- "type": "boolean"
123
- },
124
- "isOptional": true,
125
- "defaultValue": "false",
126
- "isSpread": false
127
- },
128
- {
129
- "__schema": "ParameterSchema",
130
- "location": {
131
- "filePath": "host-initializer.main.runtime.ts",
132
- "line": 22,
133
- "character": 5
134
- },
135
- "name": "resetNew",
136
- "type": {
137
- "__schema": "InferenceTypeSchema",
138
- "location": {
139
- "filePath": "host-initializer.main.runtime.ts",
140
- "line": 22,
141
- "character": 5
142
- },
143
- "type": "boolean"
144
- },
145
- "isOptional": true,
146
- "defaultValue": "false",
147
- "isSpread": false
148
- },
149
- {
150
- "__schema": "ParameterSchema",
151
- "location": {
152
- "filePath": "host-initializer.main.runtime.ts",
153
- "line": 23,
154
- "character": 5
155
- },
156
- "name": "resetLaneNew",
157
- "type": {
158
- "__schema": "InferenceTypeSchema",
159
- "location": {
160
- "filePath": "host-initializer.main.runtime.ts",
161
- "line": 23,
162
- "character": 5
163
- },
164
- "type": "boolean"
165
- },
166
- "isOptional": true,
167
- "defaultValue": "false",
168
- "isSpread": false
169
- },
170
- {
171
- "__schema": "ParameterSchema",
172
- "location": {
173
- "filePath": "host-initializer.main.runtime.ts",
174
- "line": 24,
175
- "character": 5
176
- },
177
- "name": "resetHard",
178
- "type": {
179
- "__schema": "InferenceTypeSchema",
180
- "location": {
181
- "filePath": "host-initializer.main.runtime.ts",
182
- "line": 24,
183
- "character": 5
184
- },
185
- "type": "boolean"
186
- },
187
- "isOptional": true,
188
- "defaultValue": "false",
189
- "isSpread": false
190
- },
191
- {
192
- "__schema": "ParameterSchema",
193
- "location": {
194
- "filePath": "host-initializer.main.runtime.ts",
195
- "line": 25,
196
- "character": 5
197
- },
198
- "name": "resetScope",
199
- "type": {
200
- "__schema": "InferenceTypeSchema",
201
- "location": {
202
- "filePath": "host-initializer.main.runtime.ts",
203
- "line": 25,
204
- "character": 5
205
- },
206
- "type": "boolean"
207
- },
208
- "isOptional": true,
209
- "defaultValue": "false",
210
- "isSpread": false
211
- },
212
- {
213
- "__schema": "ParameterSchema",
214
- "location": {
215
- "filePath": "host-initializer.main.runtime.ts",
216
- "line": 26,
217
- "character": 5
218
- },
219
- "name": "force",
220
- "type": {
221
- "__schema": "InferenceTypeSchema",
222
- "location": {
223
- "filePath": "host-initializer.main.runtime.ts",
224
- "line": 26,
225
- "character": 5
226
- },
227
- "type": "boolean"
228
- },
229
- "isOptional": true,
230
- "defaultValue": "false",
231
- "isSpread": false
232
- },
233
- {
234
- "__schema": "ParameterSchema",
235
- "location": {
236
- "filePath": "host-initializer.main.runtime.ts",
237
- "line": 27,
238
- "character": 5
239
- },
240
- "name": "workspaceConfigProps",
241
- "type": {
242
- "__schema": "TypeRefSchema",
243
- "location": {
244
- "filePath": "host-initializer.main.runtime.ts",
245
- "line": 27,
246
- "character": 27
247
- },
248
- "name": "WorkspaceExtensionProps",
249
- "componentId": {
250
- "scope": "teambit.harmony",
251
- "name": "config"
252
- }
253
- },
254
- "isOptional": true,
255
- "defaultValue": "{}",
256
- "isSpread": false
257
- },
258
- {
259
- "__schema": "ParameterSchema",
260
- "location": {
261
- "filePath": "host-initializer.main.runtime.ts",
262
- "line": 28,
263
- "character": 5
264
- },
265
- "name": "generator",
266
- "type": {
267
- "__schema": "KeywordTypeSchema",
268
- "location": {
269
- "filePath": "host-initializer.main.runtime.ts",
270
- "line": 28,
271
- "character": 17
272
- },
273
- "name": "string"
274
- },
275
- "isOptional": true,
276
- "isSpread": false
277
- }
278
- ],
279
- "returnType": {
280
- "__schema": "TypeRefSchema",
281
- "location": {
282
- "filePath": "host-initializer.main.runtime.ts",
283
- "line": 29,
284
- "character": 6
285
- },
286
- "name": "Promise",
287
- "typeArgs": [
288
- {
289
- "__schema": "TypeRefSchema",
290
- "location": {
291
- "filePath": "host-initializer.main.runtime.ts",
292
- "line": 29,
293
- "character": 14
294
- },
295
- "name": "Consumer",
296
- "componentId": {
297
- "scope": "teambit.legacy",
298
- "name": "consumer",
299
- "version": "0.0.21"
300
- }
301
- }
302
- ]
303
- },
304
- "modifiers": [
305
- "static",
306
- "async"
307
- ]
308
- },
309
- {
310
- "__schema": "VariableLikeSchema",
311
- "location": {
312
- "filePath": "host-initializer.main.runtime.ts",
313
- "line": 83,
314
- "character": 3
315
- },
316
- "signature": "(property) HostInitializerMain.slots: never[]",
317
- "name": "slots",
318
- "type": {
319
- "__schema": "InferenceTypeSchema",
320
- "location": {
321
- "filePath": "host-initializer.main.runtime.ts",
322
- "line": 83,
323
- "character": 3
324
- },
325
- "type": "never[]"
326
- },
327
- "isOptional": true,
328
- "defaultValue": "[]"
329
- },
330
- {
331
- "__schema": "VariableLikeSchema",
332
- "location": {
333
- "filePath": "host-initializer.main.runtime.ts",
334
- "line": 84,
335
- "character": 3
336
- },
337
- "signature": "(property) HostInitializerMain.dependencies: Aspect[]",
338
- "name": "dependencies",
339
- "type": {
340
- "__schema": "InferenceTypeSchema",
341
- "location": {
342
- "filePath": "host-initializer.main.runtime.ts",
343
- "line": 84,
344
- "character": 3
345
- },
346
- "type": "Aspect[]"
347
- },
348
- "isOptional": true,
349
- "defaultValue": "[CLIAspect]"
350
- },
351
- {
352
- "__schema": "VariableLikeSchema",
353
- "location": {
354
- "filePath": "host-initializer.main.runtime.ts",
355
- "line": 85,
356
- "character": 3
357
- },
358
- "signature": "(property) HostInitializerMain.runtime: RuntimeDefinition",
359
- "name": "runtime",
360
- "type": {
361
- "__schema": "InferenceTypeSchema",
362
- "location": {
363
- "filePath": "host-initializer.main.runtime.ts",
364
- "line": 85,
365
- "character": 3
366
- },
367
- "type": "RuntimeDefinition"
368
- },
369
- "isOptional": true,
370
- "defaultValue": "MainRuntime"
371
- },
372
- {
373
- "__schema": "FunctionLikeSchema",
374
- "location": {
375
- "filePath": "host-initializer.main.runtime.ts",
376
- "line": 86,
377
- "character": 3
378
- },
379
- "signature": "(method) HostInitializerMain.provider([cli]: [CLIMain]): Promise<HostInitializerMain>",
380
- "name": "provider",
381
- "params": [
382
- {
383
- "__schema": "ParameterSchema",
384
- "location": {
385
- "filePath": "host-initializer.main.runtime.ts",
386
- "line": 86,
387
- "character": 25
388
- },
389
- "name": "[ cli ]",
390
- "type": {
391
- "__schema": "TupleTypeSchema",
392
- "location": {
393
- "filePath": "host-initializer.main.runtime.ts",
394
- "line": 86,
395
- "character": 32
396
- },
397
- "elements": [
398
- {
399
- "__schema": "TypeRefSchema",
400
- "location": {
401
- "filePath": "host-initializer.main.runtime.ts",
402
- "line": 86,
403
- "character": 33
404
- },
405
- "name": "CLIMain",
406
- "componentId": {
407
- "scope": "teambit.harmony",
408
- "name": "cli"
409
- }
410
- }
411
- ]
412
- },
413
- "isOptional": false,
414
- "isSpread": false
415
- }
416
- ],
417
- "returnType": {
418
- "__schema": "InferenceTypeSchema",
419
- "location": {
420
- "filePath": "host-initializer.main.runtime.ts",
421
- "line": 86,
422
- "character": 3
423
- },
424
- "type": "Promise<HostInitializerMain>"
425
- },
426
- "modifiers": [
427
- "static",
428
- "async"
429
- ]
430
- }
431
- ],
432
- "extendsNodes": [],
433
- "implementNodes": []
434
- }
435
- },
436
- {
437
- "__schema": "ExportSchema",
438
- "location": {
439
- "filePath": "index.ts",
440
- "line": 4,
441
- "character": 10
442
- },
443
- "signature": "class ObjectsWithoutConsumer",
444
- "name": "ObjectsWithoutConsumer",
445
- "exportNode": {
446
- "__schema": "ClassSchema",
447
- "location": {
448
- "filePath": "objects-without-consumer.ts",
449
- "line": 4,
450
- "character": 1
451
- },
452
- "signature": "class ObjectsWithoutConsumer",
453
- "name": "ObjectsWithoutConsumer",
454
- "members": [
455
- {
456
- "__schema": "ConstructorSchema",
457
- "location": {
458
- "filePath": "objects-without-consumer.ts",
459
- "line": 5,
460
- "character": 3
461
- },
462
- "signature": "constructor ObjectsWithoutConsumer(scopePath: string): ObjectsWithoutConsumer",
463
- "name": "constructor",
464
- "params": [
465
- {
466
- "__schema": "ParameterSchema",
467
- "location": {
468
- "filePath": "objects-without-consumer.ts",
469
- "line": 5,
470
- "character": 15
471
- },
472
- "name": "scopePath",
473
- "type": {
474
- "__schema": "KeywordTypeSchema",
475
- "location": {
476
- "filePath": "objects-without-consumer.ts",
477
- "line": 5,
478
- "character": 33
479
- },
480
- "name": "string"
481
- },
482
- "isOptional": false,
483
- "isSpread": false
484
- }
485
- ],
486
- "returnType": {
487
- "__schema": "ThisTypeSchema",
488
- "location": {
489
- "filePath": "objects-without-consumer.ts",
490
- "line": 4,
491
- "character": 1
492
- },
493
- "name": "ObjectsWithoutConsumer"
494
- },
495
- "modifiers": []
496
- }
497
- ],
498
- "extendsNodes": [
499
- {
500
- "__schema": "ExpressionWithTypeArgumentsSchema",
501
- "location": {
502
- "filePath": "objects-without-consumer.ts",
503
- "line": 4,
504
- "character": 45
505
- },
506
- "name": "extends BitError",
507
- "typeArgs": [],
508
- "expression": {
509
- "__schema": "TypeRefSchema",
510
- "location": {
511
- "filePath": "objects-without-consumer.ts",
512
- "line": 4,
513
- "character": 45
514
- },
515
- "name": "BitError",
516
- "componentId": {
517
- "_legacy": {
518
- "scope": "teambit.harmony",
519
- "name": "host-initializer",
520
- "version": "0.0.229"
521
- },
522
- "_scope": "teambit.harmony"
523
- }
524
- }
525
- }
526
- ],
527
- "implementNodes": []
528
- }
529
- },
530
- {
531
- "__schema": "UnImplementedSchema",
532
- "location": {
533
- "filePath": "index.ts",
534
- "line": 5,
535
- "character": 16
536
- },
537
- "name": "HostInitializerAspect",
538
- "type": "Identifier"
539
- },
540
- {
541
- "__schema": "ExportSchema",
542
- "location": {
543
- "filePath": "index.ts",
544
- "line": 6,
545
- "character": 10
546
- },
547
- "signature": "const HostInitializerAspect: Aspect",
548
- "name": "HostInitializerAspect",
549
- "exportNode": {
550
- "__schema": "VariableLikeSchema",
551
- "location": {
552
- "filePath": "host-initializer.aspect.ts",
553
- "line": 3,
554
- "character": 14
555
- },
556
- "signature": "const HostInitializerAspect: Aspect",
557
- "name": "HostInitializerAspect",
558
- "type": {
559
- "__schema": "TypeRefSchema",
560
- "location": {
561
- "filePath": "host-initializer.aspect.ts",
562
- "line": 3,
563
- "character": 14
564
- },
565
- "name": "Aspect",
566
- "componentId": {
567
- "scope": "teambit.harmony",
568
- "name": "harmony",
569
- "version": "0.4.6"
570
- }
571
- },
572
- "isOptional": false,
573
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/host-initializer',\n})"
574
- }
575
- }
576
- ],
577
- "internals": []
578
- },
579
- "internals": [
580
- {
581
- "__schema": "ModuleSchema",
582
- "location": {
583
- "filePath": "host-initializer.main.runtime.ts",
584
- "line": 1,
585
- "character": 1
586
- },
587
- "exports": [
588
- {
589
- "__schema": "ClassSchema",
590
- "location": {
591
- "filePath": "host-initializer.main.runtime.ts",
592
- "line": 16,
593
- "character": 1
594
- },
595
- "signature": "class HostInitializerMain",
596
- "name": "HostInitializerMain",
597
- "members": [
598
- {
599
- "__schema": "FunctionLikeSchema",
600
- "location": {
601
- "filePath": "host-initializer.main.runtime.ts",
602
- "line": 17,
603
- "character": 3
604
- },
605
- "signature": "(method) HostInitializerMain.init(absPath?: string, noGit?: boolean, noPackageJson?: boolean, reset?: boolean, resetNew?: boolean, resetLaneNew?: boolean, resetHard?: boolean, resetScope?: boolean, force?: boolean, workspaceConfigProps?: WorkspaceExtensionProps, generator?: string): Promise<Consumer>",
606
- "name": "init",
607
- "params": [
608
- {
609
- "__schema": "ParameterSchema",
610
- "location": {
611
- "filePath": "host-initializer.main.runtime.ts",
612
- "line": 18,
613
- "character": 5
614
- },
615
- "name": "absPath",
616
- "type": {
617
- "__schema": "KeywordTypeSchema",
618
- "location": {
619
- "filePath": "host-initializer.main.runtime.ts",
620
- "line": 18,
621
- "character": 15
622
- },
623
- "name": "string"
624
- },
625
- "isOptional": true,
626
- "isSpread": false
627
- },
628
- {
629
- "__schema": "ParameterSchema",
630
- "location": {
631
- "filePath": "host-initializer.main.runtime.ts",
632
- "line": 19,
633
- "character": 5
634
- },
635
- "name": "noGit",
636
- "type": {
637
- "__schema": "InferenceTypeSchema",
638
- "location": {
639
- "filePath": "host-initializer.main.runtime.ts",
640
- "line": 19,
641
- "character": 5
642
- },
643
- "type": "boolean"
644
- },
645
- "isOptional": true,
646
- "defaultValue": "false",
647
- "isSpread": false
648
- },
649
- {
650
- "__schema": "ParameterSchema",
651
- "location": {
652
- "filePath": "host-initializer.main.runtime.ts",
653
- "line": 20,
654
- "character": 5
655
- },
656
- "name": "noPackageJson",
657
- "type": {
658
- "__schema": "InferenceTypeSchema",
659
- "location": {
660
- "filePath": "host-initializer.main.runtime.ts",
661
- "line": 20,
662
- "character": 5
663
- },
664
- "type": "boolean"
665
- },
666
- "isOptional": true,
667
- "defaultValue": "false",
668
- "isSpread": false
669
- },
670
- {
671
- "__schema": "ParameterSchema",
672
- "location": {
673
- "filePath": "host-initializer.main.runtime.ts",
674
- "line": 21,
675
- "character": 5
676
- },
677
- "name": "reset",
678
- "type": {
679
- "__schema": "InferenceTypeSchema",
680
- "location": {
681
- "filePath": "host-initializer.main.runtime.ts",
682
- "line": 21,
683
- "character": 5
684
- },
685
- "type": "boolean"
686
- },
687
- "isOptional": true,
688
- "defaultValue": "false",
689
- "isSpread": false
690
- },
691
- {
692
- "__schema": "ParameterSchema",
693
- "location": {
694
- "filePath": "host-initializer.main.runtime.ts",
695
- "line": 22,
696
- "character": 5
697
- },
698
- "name": "resetNew",
699
- "type": {
700
- "__schema": "InferenceTypeSchema",
701
- "location": {
702
- "filePath": "host-initializer.main.runtime.ts",
703
- "line": 22,
704
- "character": 5
705
- },
706
- "type": "boolean"
707
- },
708
- "isOptional": true,
709
- "defaultValue": "false",
710
- "isSpread": false
711
- },
712
- {
713
- "__schema": "ParameterSchema",
714
- "location": {
715
- "filePath": "host-initializer.main.runtime.ts",
716
- "line": 23,
717
- "character": 5
718
- },
719
- "name": "resetLaneNew",
720
- "type": {
721
- "__schema": "InferenceTypeSchema",
722
- "location": {
723
- "filePath": "host-initializer.main.runtime.ts",
724
- "line": 23,
725
- "character": 5
726
- },
727
- "type": "boolean"
728
- },
729
- "isOptional": true,
730
- "defaultValue": "false",
731
- "isSpread": false
732
- },
733
- {
734
- "__schema": "ParameterSchema",
735
- "location": {
736
- "filePath": "host-initializer.main.runtime.ts",
737
- "line": 24,
738
- "character": 5
739
- },
740
- "name": "resetHard",
741
- "type": {
742
- "__schema": "InferenceTypeSchema",
743
- "location": {
744
- "filePath": "host-initializer.main.runtime.ts",
745
- "line": 24,
746
- "character": 5
747
- },
748
- "type": "boolean"
749
- },
750
- "isOptional": true,
751
- "defaultValue": "false",
752
- "isSpread": false
753
- },
754
- {
755
- "__schema": "ParameterSchema",
756
- "location": {
757
- "filePath": "host-initializer.main.runtime.ts",
758
- "line": 25,
759
- "character": 5
760
- },
761
- "name": "resetScope",
762
- "type": {
763
- "__schema": "InferenceTypeSchema",
764
- "location": {
765
- "filePath": "host-initializer.main.runtime.ts",
766
- "line": 25,
767
- "character": 5
768
- },
769
- "type": "boolean"
770
- },
771
- "isOptional": true,
772
- "defaultValue": "false",
773
- "isSpread": false
774
- },
775
- {
776
- "__schema": "ParameterSchema",
777
- "location": {
778
- "filePath": "host-initializer.main.runtime.ts",
779
- "line": 26,
780
- "character": 5
781
- },
782
- "name": "force",
783
- "type": {
784
- "__schema": "InferenceTypeSchema",
785
- "location": {
786
- "filePath": "host-initializer.main.runtime.ts",
787
- "line": 26,
788
- "character": 5
789
- },
790
- "type": "boolean"
791
- },
792
- "isOptional": true,
793
- "defaultValue": "false",
794
- "isSpread": false
795
- },
796
- {
797
- "__schema": "ParameterSchema",
798
- "location": {
799
- "filePath": "host-initializer.main.runtime.ts",
800
- "line": 27,
801
- "character": 5
802
- },
803
- "name": "workspaceConfigProps",
804
- "type": {
805
- "__schema": "TypeRefSchema",
806
- "location": {
807
- "filePath": "host-initializer.main.runtime.ts",
808
- "line": 27,
809
- "character": 27
810
- },
811
- "name": "WorkspaceExtensionProps",
812
- "componentId": {
813
- "scope": "teambit.harmony",
814
- "name": "config"
815
- }
816
- },
817
- "isOptional": true,
818
- "defaultValue": "{}",
819
- "isSpread": false
820
- },
821
- {
822
- "__schema": "ParameterSchema",
823
- "location": {
824
- "filePath": "host-initializer.main.runtime.ts",
825
- "line": 28,
826
- "character": 5
827
- },
828
- "name": "generator",
829
- "type": {
830
- "__schema": "KeywordTypeSchema",
831
- "location": {
832
- "filePath": "host-initializer.main.runtime.ts",
833
- "line": 28,
834
- "character": 17
835
- },
836
- "name": "string"
837
- },
838
- "isOptional": true,
839
- "isSpread": false
840
- }
841
- ],
842
- "returnType": {
843
- "__schema": "TypeRefSchema",
844
- "location": {
845
- "filePath": "host-initializer.main.runtime.ts",
846
- "line": 29,
847
- "character": 6
848
- },
849
- "name": "Promise",
850
- "typeArgs": [
851
- {
852
- "__schema": "TypeRefSchema",
853
- "location": {
854
- "filePath": "host-initializer.main.runtime.ts",
855
- "line": 29,
856
- "character": 14
857
- },
858
- "name": "Consumer",
859
- "componentId": {
860
- "scope": "teambit.legacy",
861
- "name": "consumer",
862
- "version": "0.0.21"
863
- }
864
- }
865
- ]
866
- },
867
- "modifiers": [
868
- "static",
869
- "async"
870
- ]
871
- },
872
- {
873
- "__schema": "VariableLikeSchema",
874
- "location": {
875
- "filePath": "host-initializer.main.runtime.ts",
876
- "line": 83,
877
- "character": 3
878
- },
879
- "signature": "(property) HostInitializerMain.slots: never[]",
880
- "name": "slots",
881
- "type": {
882
- "__schema": "InferenceTypeSchema",
883
- "location": {
884
- "filePath": "host-initializer.main.runtime.ts",
885
- "line": 83,
886
- "character": 3
887
- },
888
- "type": "never[]"
889
- },
890
- "isOptional": true,
891
- "defaultValue": "[]"
892
- },
893
- {
894
- "__schema": "VariableLikeSchema",
895
- "location": {
896
- "filePath": "host-initializer.main.runtime.ts",
897
- "line": 84,
898
- "character": 3
899
- },
900
- "signature": "(property) HostInitializerMain.dependencies: Aspect[]",
901
- "name": "dependencies",
902
- "type": {
903
- "__schema": "InferenceTypeSchema",
904
- "location": {
905
- "filePath": "host-initializer.main.runtime.ts",
906
- "line": 84,
907
- "character": 3
908
- },
909
- "type": "Aspect[]"
910
- },
911
- "isOptional": true,
912
- "defaultValue": "[CLIAspect]"
913
- },
914
- {
915
- "__schema": "VariableLikeSchema",
916
- "location": {
917
- "filePath": "host-initializer.main.runtime.ts",
918
- "line": 85,
919
- "character": 3
920
- },
921
- "signature": "(property) HostInitializerMain.runtime: RuntimeDefinition",
922
- "name": "runtime",
923
- "type": {
924
- "__schema": "InferenceTypeSchema",
925
- "location": {
926
- "filePath": "host-initializer.main.runtime.ts",
927
- "line": 85,
928
- "character": 3
929
- },
930
- "type": "RuntimeDefinition"
931
- },
932
- "isOptional": true,
933
- "defaultValue": "MainRuntime"
934
- },
935
- {
936
- "__schema": "FunctionLikeSchema",
937
- "location": {
938
- "filePath": "host-initializer.main.runtime.ts",
939
- "line": 86,
940
- "character": 3
941
- },
942
- "signature": "(method) HostInitializerMain.provider([cli]: [CLIMain]): Promise<HostInitializerMain>",
943
- "name": "provider",
944
- "params": [
945
- {
946
- "__schema": "ParameterSchema",
947
- "location": {
948
- "filePath": "host-initializer.main.runtime.ts",
949
- "line": 86,
950
- "character": 25
951
- },
952
- "name": "[ cli ]",
953
- "type": {
954
- "__schema": "TupleTypeSchema",
955
- "location": {
956
- "filePath": "host-initializer.main.runtime.ts",
957
- "line": 86,
958
- "character": 32
959
- },
960
- "elements": [
961
- {
962
- "__schema": "TypeRefSchema",
963
- "location": {
964
- "filePath": "host-initializer.main.runtime.ts",
965
- "line": 86,
966
- "character": 33
967
- },
968
- "name": "CLIMain",
969
- "componentId": {
970
- "scope": "teambit.harmony",
971
- "name": "cli"
972
- }
973
- }
974
- ]
975
- },
976
- "isOptional": false,
977
- "isSpread": false
978
- }
979
- ],
980
- "returnType": {
981
- "__schema": "InferenceTypeSchema",
982
- "location": {
983
- "filePath": "host-initializer.main.runtime.ts",
984
- "line": 86,
985
- "character": 3
986
- },
987
- "type": "Promise<HostInitializerMain>"
988
- },
989
- "modifiers": [
990
- "static",
991
- "async"
992
- ]
993
- }
994
- ],
995
- "extendsNodes": [],
996
- "implementNodes": []
997
- },
998
- {
999
- "__schema": "UnImplementedSchema",
1000
- "location": {
1001
- "filePath": "host-initializer.main.runtime.ts",
1002
- "line": 96,
1003
- "character": 16
1004
- },
1005
- "name": "HostInitializerMain",
1006
- "type": "Identifier"
1007
- }
1008
- ],
1009
- "internals": [
1010
- {
1011
- "__schema": "UnImplementedSchema",
1012
- "location": {
1013
- "filePath": "host-initializer.main.runtime.ts",
1014
- "line": 94,
1015
- "character": 1
1016
- },
1017
- "name": "HostInitializerAspect.addRuntime(HostInitializerMain);",
1018
- "type": "ExpressionStatement"
1019
- },
1020
- {
1021
- "__schema": "FunctionLikeSchema",
1022
- "location": {
1023
- "filePath": "host-initializer.main.runtime.ts",
1024
- "line": 106,
1025
- "character": 1
1026
- },
1027
- "doc": {
1028
- "__schema": "DocSchema",
1029
- "location": {
1030
- "filePath": "host-initializer.main.runtime.ts",
1031
- "line": 98,
1032
- "character": 1
1033
- },
1034
- "raw": "/**\n * throw an error when .bitmap is empty but a scope has objects.\n * a user may got into this state for reasons such as:\n * 1. deleting manually .bitmap hoping to re-start Bit from scratch. (probably unaware of `--reset-hard` flag).\n * 2. switching to a branch where Bit wasn't initialized\n * in which case, it's better to stop and show an error describing what needs to be done.\n * it can always be ignored by entering `--force` flag.\n */",
1035
- "comment": "throw an error when .bitmap is empty but a scope has objects.\na user may got into this state for reasons such as:\n1. deleting manually .bitmap hoping to re-start Bit from scratch. (probably unaware of `--reset-hard` flag).\n2. switching to a branch where Bit wasn't initialized\nin which case, it's better to stop and show an error describing what needs to be done.\nit can always be ignored by entering `--force` flag.",
1036
- "tags": []
1037
- },
1038
- "signature": "function throwForOutOfSyncScope(consumer: Consumer): Promise<void>",
1039
- "name": "throwForOutOfSyncScope",
1040
- "params": [
1041
- {
1042
- "__schema": "ParameterSchema",
1043
- "location": {
1044
- "filePath": "host-initializer.main.runtime.ts",
1045
- "line": 106,
1046
- "character": 39
1047
- },
1048
- "name": "consumer",
1049
- "type": {
1050
- "__schema": "TypeRefSchema",
1051
- "location": {
1052
- "filePath": "host-initializer.main.runtime.ts",
1053
- "line": 106,
1054
- "character": 49
1055
- },
1056
- "name": "Consumer",
1057
- "componentId": {
1058
- "scope": "teambit.legacy",
1059
- "name": "consumer",
1060
- "version": "0.0.21"
1061
- }
1062
- },
1063
- "isOptional": false,
1064
- "isSpread": false
1065
- }
1066
- ],
1067
- "returnType": {
1068
- "__schema": "TypeRefSchema",
1069
- "location": {
1070
- "filePath": "host-initializer.main.runtime.ts",
1071
- "line": 106,
1072
- "character": 60
1073
- },
1074
- "name": "Promise",
1075
- "typeArgs": [
1076
- {
1077
- "__schema": "KeywordTypeSchema",
1078
- "location": {
1079
- "filePath": "host-initializer.main.runtime.ts",
1080
- "line": 106,
1081
- "character": 68
1082
- },
1083
- "name": "void"
1084
- }
1085
- ]
1086
- },
1087
- "modifiers": [
1088
- "async"
1089
- ]
1090
- }
1091
- ]
1092
- },
1093
- {
1094
- "__schema": "ModuleSchema",
1095
- "location": {
1096
- "filePath": "host-initializer.aspect.ts",
1097
- "line": 1,
1098
- "character": 1
1099
- },
1100
- "exports": [
1101
- {
1102
- "__schema": "VariableLikeSchema",
1103
- "location": {
1104
- "filePath": "host-initializer.aspect.ts",
1105
- "line": 3,
1106
- "character": 14
1107
- },
1108
- "signature": "const HostInitializerAspect: Aspect",
1109
- "name": "HostInitializerAspect",
1110
- "type": {
1111
- "__schema": "TypeRefSchema",
1112
- "location": {
1113
- "filePath": "host-initializer.aspect.ts",
1114
- "line": 3,
1115
- "character": 14
1116
- },
1117
- "name": "Aspect",
1118
- "componentId": {
1119
- "scope": "teambit.harmony",
1120
- "name": "harmony",
1121
- "version": "0.4.6"
1122
- }
1123
- },
1124
- "isOptional": false,
1125
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/host-initializer',\n})"
1126
- }
1127
- ],
1128
- "internals": []
1129
- }
1130
- ],
1131
- "componentId": {
1132
- "scope": "teambit.harmony",
1133
- "name": "host-initializer",
1134
- "version": "0.0.229"
1135
- },
1136
- "taggedModuleExports": []
1137
- }