@teambit/config 0.0.979 → 0.0.980

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.harmony/config@0.0.979" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/config@0.0.980" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -48,7 +48,8 @@
48
48
  "line": 33,
49
49
  "character": 40
50
50
  },
51
- "name": "WorkspaceConfig"
51
+ "name": "WorkspaceConfig",
52
+ "internalFilePath": "workspace-config.ts"
52
53
  },
53
54
  "isOptional": true,
54
55
  "isSpread": false
@@ -68,7 +69,8 @@
68
69
  "line": 33,
69
70
  "character": 78
70
71
  },
71
- "name": "WorkspaceConfig"
72
+ "name": "WorkspaceConfig",
73
+ "internalFilePath": "workspace-config.ts"
72
74
  },
73
75
  "isOptional": true,
74
76
  "isSpread": false
@@ -129,7 +131,8 @@
129
131
  "line": 42,
130
132
  "character": 15
131
133
  },
132
- "name": "PathOsBased"
134
+ "name": "PathOsBased",
135
+ "packageName": "@teambit/legacy/dist/utils/path"
133
136
  },
134
137
  {
135
138
  "__schema": "KeywordTypeSchema",
@@ -167,7 +170,8 @@
167
170
  "line": 46,
168
171
  "character": 17
169
172
  },
170
- "name": "HostConfig"
173
+ "name": "HostConfig",
174
+ "internalFilePath": "types.ts"
171
175
  },
172
176
  {
173
177
  "__schema": "KeywordTypeSchema",
@@ -267,7 +271,8 @@
267
271
  "line": 63,
268
272
  "character": 14
269
273
  },
270
- "name": "PathOsBasedAbsolute"
274
+ "name": "PathOsBasedAbsolute",
275
+ "packageName": "@teambit/legacy/dist/utils/path"
271
276
  }
272
277
  },
273
278
  {
@@ -286,7 +291,8 @@
286
291
  "line": 64,
287
292
  "character": 14
288
293
  },
289
- "name": "WorkspaceConfigFileProps"
294
+ "name": "WorkspaceConfigFileProps",
295
+ "internalFilePath": "workspace-config.ts"
290
296
  }
291
297
  },
292
298
  {
@@ -313,7 +319,8 @@
313
319
  "line": 65,
314
320
  "character": 24
315
321
  },
316
- "name": "WorkspaceConfig"
322
+ "name": "WorkspaceConfig",
323
+ "internalFilePath": "workspace-config.ts"
317
324
  }
318
325
  ]
319
326
  }
@@ -348,7 +355,8 @@
348
355
  "line": 69,
349
356
  "character": 20
350
357
  },
351
- "name": "PathOsBasedAbsolute"
358
+ "name": "PathOsBasedAbsolute",
359
+ "packageName": "@teambit/legacy/dist/utils/path"
352
360
  },
353
361
  "isOptional": false,
354
362
  "isSpread": false
@@ -368,7 +376,8 @@
368
376
  "line": 70,
369
377
  "character": 16
370
378
  },
371
- "name": "PathOsBasedAbsolute"
379
+ "name": "PathOsBasedAbsolute",
380
+ "packageName": "@teambit/legacy/dist/utils/path"
372
381
  },
373
382
  "isOptional": false,
374
383
  "isSpread": false
@@ -388,7 +397,8 @@
388
397
  "line": 71,
389
398
  "character": 27
390
399
  },
391
- "name": "WorkspaceConfigFileProps"
400
+ "name": "WorkspaceConfigFileProps",
401
+ "internalFilePath": "workspace-config.ts"
392
402
  },
393
403
  "isOptional": true,
394
404
  "defaultValue": "{} as any",
@@ -444,7 +454,8 @@
444
454
  "line": 77,
445
455
  "character": 21
446
456
  },
447
- "name": "ExtensionDataList"
457
+ "name": "ExtensionDataList",
458
+ "packageName": "@teambit/legacy/dist/consumer/config"
448
459
  },
449
460
  {
450
461
  "__schema": "KeywordTypeSchema",
@@ -524,7 +535,8 @@
524
535
  "line": 81,
525
536
  "character": 59
526
537
  },
527
- "name": "ExtensionDataEntry"
538
+ "name": "ExtensionDataEntry",
539
+ "packageName": "@teambit/legacy/dist/consumer/config"
528
540
  },
529
541
  {
530
542
  "__schema": "KeywordTypeSchema",
@@ -624,7 +636,8 @@
624
636
  "line": 85,
625
637
  "character": 75
626
638
  },
627
- "name": "SetExtensionOptions"
639
+ "name": "SetExtensionOptions",
640
+ "internalFilePath": "config.main.runtime.ts"
628
641
  },
629
642
  "isOptional": false,
630
643
  "isSpread": false
@@ -836,7 +849,12 @@
836
849
  "line": 102,
837
850
  "character": 58
838
851
  },
839
- "name": "Harmony"
852
+ "name": "Harmony",
853
+ "componentId": {
854
+ "scope": "teambit.harmony",
855
+ "name": "harmony",
856
+ "version": "0.4.6"
857
+ }
840
858
  },
841
859
  "isOptional": false,
842
860
  "isSpread": false
@@ -937,7 +955,8 @@
937
955
  "line": 38,
938
956
  "character": 42
939
957
  },
940
- "name": "ComponentScopeDirMapEntry"
958
+ "name": "ComponentScopeDirMapEntry",
959
+ "internalFilePath": "workspace-config.ts"
941
960
  }
942
961
  ]
943
962
  }
@@ -968,7 +987,8 @@
968
987
  "line": 385,
969
988
  "character": 67
970
989
  },
971
- "name": "CommentJSONValue"
990
+ "name": "CommentJSONValue",
991
+ "packageName": "comment-json"
972
992
  }
973
993
  ]
974
994
  },
@@ -1002,7 +1022,8 @@
1002
1022
  "line": 397,
1003
1023
  "character": 59
1004
1024
  },
1005
- "name": "CommentJSONValue"
1025
+ "name": "CommentJSONValue",
1026
+ "packageName": "comment-json"
1006
1027
  },
1007
1028
  "isOptional": false,
1008
1029
  "isSpread": false
@@ -1186,7 +1207,8 @@
1186
1207
  "line": 33,
1187
1208
  "character": 40
1188
1209
  },
1189
- "name": "WorkspaceConfig"
1210
+ "name": "WorkspaceConfig",
1211
+ "internalFilePath": "workspace-config.ts"
1190
1212
  },
1191
1213
  "isOptional": true,
1192
1214
  "isSpread": false
@@ -1206,7 +1228,8 @@
1206
1228
  "line": 33,
1207
1229
  "character": 78
1208
1230
  },
1209
- "name": "WorkspaceConfig"
1231
+ "name": "WorkspaceConfig",
1232
+ "internalFilePath": "workspace-config.ts"
1210
1233
  },
1211
1234
  "isOptional": true,
1212
1235
  "isSpread": false
@@ -1267,7 +1290,8 @@
1267
1290
  "line": 42,
1268
1291
  "character": 15
1269
1292
  },
1270
- "name": "PathOsBased"
1293
+ "name": "PathOsBased",
1294
+ "packageName": "@teambit/legacy/dist/utils/path"
1271
1295
  },
1272
1296
  {
1273
1297
  "__schema": "KeywordTypeSchema",
@@ -1305,7 +1329,8 @@
1305
1329
  "line": 46,
1306
1330
  "character": 17
1307
1331
  },
1308
- "name": "HostConfig"
1332
+ "name": "HostConfig",
1333
+ "internalFilePath": "types.ts"
1309
1334
  },
1310
1335
  {
1311
1336
  "__schema": "KeywordTypeSchema",
@@ -1405,7 +1430,8 @@
1405
1430
  "line": 63,
1406
1431
  "character": 14
1407
1432
  },
1408
- "name": "PathOsBasedAbsolute"
1433
+ "name": "PathOsBasedAbsolute",
1434
+ "packageName": "@teambit/legacy/dist/utils/path"
1409
1435
  }
1410
1436
  },
1411
1437
  {
@@ -1424,7 +1450,8 @@
1424
1450
  "line": 64,
1425
1451
  "character": 14
1426
1452
  },
1427
- "name": "WorkspaceConfigFileProps"
1453
+ "name": "WorkspaceConfigFileProps",
1454
+ "internalFilePath": "workspace-config.ts"
1428
1455
  }
1429
1456
  },
1430
1457
  {
@@ -1451,7 +1478,8 @@
1451
1478
  "line": 65,
1452
1479
  "character": 24
1453
1480
  },
1454
- "name": "WorkspaceConfig"
1481
+ "name": "WorkspaceConfig",
1482
+ "internalFilePath": "workspace-config.ts"
1455
1483
  }
1456
1484
  ]
1457
1485
  }
@@ -1486,7 +1514,8 @@
1486
1514
  "line": 69,
1487
1515
  "character": 20
1488
1516
  },
1489
- "name": "PathOsBasedAbsolute"
1517
+ "name": "PathOsBasedAbsolute",
1518
+ "packageName": "@teambit/legacy/dist/utils/path"
1490
1519
  },
1491
1520
  "isOptional": false,
1492
1521
  "isSpread": false
@@ -1506,7 +1535,8 @@
1506
1535
  "line": 70,
1507
1536
  "character": 16
1508
1537
  },
1509
- "name": "PathOsBasedAbsolute"
1538
+ "name": "PathOsBasedAbsolute",
1539
+ "packageName": "@teambit/legacy/dist/utils/path"
1510
1540
  },
1511
1541
  "isOptional": false,
1512
1542
  "isSpread": false
@@ -1526,7 +1556,8 @@
1526
1556
  "line": 71,
1527
1557
  "character": 27
1528
1558
  },
1529
- "name": "WorkspaceConfigFileProps"
1559
+ "name": "WorkspaceConfigFileProps",
1560
+ "internalFilePath": "workspace-config.ts"
1530
1561
  },
1531
1562
  "isOptional": true,
1532
1563
  "defaultValue": "{} as any",
@@ -1582,7 +1613,8 @@
1582
1613
  "line": 77,
1583
1614
  "character": 21
1584
1615
  },
1585
- "name": "ExtensionDataList"
1616
+ "name": "ExtensionDataList",
1617
+ "packageName": "@teambit/legacy/dist/consumer/config"
1586
1618
  },
1587
1619
  {
1588
1620
  "__schema": "KeywordTypeSchema",
@@ -1662,7 +1694,8 @@
1662
1694
  "line": 81,
1663
1695
  "character": 59
1664
1696
  },
1665
- "name": "ExtensionDataEntry"
1697
+ "name": "ExtensionDataEntry",
1698
+ "packageName": "@teambit/legacy/dist/consumer/config"
1666
1699
  },
1667
1700
  {
1668
1701
  "__schema": "KeywordTypeSchema",
@@ -1762,7 +1795,8 @@
1762
1795
  "line": 85,
1763
1796
  "character": 75
1764
1797
  },
1765
- "name": "SetExtensionOptions"
1798
+ "name": "SetExtensionOptions",
1799
+ "internalFilePath": "config.main.runtime.ts"
1766
1800
  },
1767
1801
  "isOptional": false,
1768
1802
  "isSpread": false
@@ -1974,7 +2008,12 @@
1974
2008
  "line": 102,
1975
2009
  "character": 58
1976
2010
  },
1977
- "name": "Harmony"
2011
+ "name": "Harmony",
2012
+ "componentId": {
2013
+ "scope": "teambit.harmony",
2014
+ "name": "harmony",
2015
+ "version": "0.4.6"
2016
+ }
1978
2017
  },
1979
2018
  "isOptional": false,
1980
2019
  "isSpread": false
@@ -2066,7 +2105,8 @@
2066
2105
  "line": 125,
2067
2106
  "character": 73
2068
2107
  },
2069
- "name": "WorkspaceConfig"
2108
+ "name": "WorkspaceConfig",
2109
+ "internalFilePath": "workspace-config.ts"
2070
2110
  },
2071
2111
  {
2072
2112
  "__schema": "KeywordTypeSchema",
@@ -2359,7 +2399,8 @@
2359
2399
  "line": 31,
2360
2400
  "character": 5
2361
2401
  },
2362
- "name": "ExtensionsDefs"
2402
+ "name": "ExtensionsDefs",
2403
+ "internalFilePath": "workspace-config.ts"
2363
2404
  }
2364
2405
  ]
2365
2406
  }
@@ -2449,7 +2490,8 @@
2449
2490
  "line": 38,
2450
2491
  "character": 42
2451
2492
  },
2452
- "name": "ComponentScopeDirMapEntry"
2493
+ "name": "ComponentScopeDirMapEntry",
2494
+ "internalFilePath": "workspace-config.ts"
2453
2495
  }
2454
2496
  ]
2455
2497
  }
@@ -2801,7 +2843,8 @@
2801
2843
  "line": 62,
2802
2844
  "character": 30
2803
2845
  },
2804
- "name": "WorkspaceSettingsNewProps"
2846
+ "name": "WorkspaceSettingsNewProps",
2847
+ "internalFilePath": "workspace-config.ts"
2805
2848
  }
2806
2849
  },
2807
2850
  {
@@ -2900,7 +2943,8 @@
2900
2943
  "line": 70,
2901
2944
  "character": 19
2902
2945
  },
2903
- "name": "WorkspaceConfigFileProps"
2946
+ "name": "WorkspaceConfigFileProps",
2947
+ "internalFilePath": "workspace-config.ts"
2904
2948
  },
2905
2949
  "isOptional": false,
2906
2950
  "isSpread": false
@@ -2920,7 +2964,8 @@
2920
2964
  "line": 71,
2921
2965
  "character": 20
2922
2966
  },
2923
- "name": "PathOsBasedAbsolute"
2967
+ "name": "PathOsBasedAbsolute",
2968
+ "packageName": "@teambit/legacy/dist/utils/path"
2924
2969
  },
2925
2970
  "isOptional": false,
2926
2971
  "isSpread": false
@@ -2940,7 +2985,8 @@
2940
2985
  "line": 72,
2941
2986
  "character": 25
2942
2987
  },
2943
- "name": "PathOsBasedAbsolute"
2988
+ "name": "PathOsBasedAbsolute",
2989
+ "packageName": "@teambit/legacy/dist/utils/path"
2944
2990
  },
2945
2991
  "isOptional": true,
2946
2992
  "isSpread": false
@@ -2973,7 +3019,8 @@
2973
3019
  "line": 78,
2974
3020
  "character": 15
2975
3021
  },
2976
- "name": "PathOsBased"
3022
+ "name": "PathOsBased",
3023
+ "packageName": "@teambit/legacy/dist/utils/path"
2977
3024
  }
2978
3025
  },
2979
3026
  {
@@ -3143,7 +3190,8 @@
3143
3190
  "line": 96,
3144
3191
  "character": 75
3145
3192
  },
3146
- "name": "SetExtensionOptions"
3193
+ "name": "SetExtensionOptions",
3194
+ "internalFilePath": "config.main.runtime.ts"
3147
3195
  },
3148
3196
  "isOptional": false,
3149
3197
  "isSpread": false
@@ -3306,7 +3354,8 @@
3306
3354
  "line": 130,
3307
3355
  "character": 14
3308
3356
  },
3309
- "name": "WorkspaceConfigFileProps"
3357
+ "name": "WorkspaceConfigFileProps",
3358
+ "internalFilePath": "workspace-config.ts"
3310
3359
  }
3311
3360
  },
3312
3361
  {
@@ -3348,7 +3397,8 @@
3348
3397
  "line": 134,
3349
3398
  "character": 27
3350
3399
  },
3351
- "name": "WorkspaceConfigFileProps"
3400
+ "name": "WorkspaceConfigFileProps",
3401
+ "internalFilePath": "workspace-config.ts"
3352
3402
  },
3353
3403
  "isOptional": false,
3354
3404
  "isSpread": false
@@ -3368,7 +3418,8 @@
3368
3418
  "line": 134,
3369
3419
  "character": 73
3370
3420
  },
3371
- "name": "PathOsBased"
3421
+ "name": "PathOsBased",
3422
+ "packageName": "@teambit/legacy/dist/utils/path"
3372
3423
  },
3373
3424
  "isOptional": false,
3374
3425
  "isSpread": false
@@ -3388,7 +3439,8 @@
3388
3439
  "line": 134,
3389
3440
  "character": 98
3390
3441
  },
3391
- "name": "PathOsBasedAbsolute"
3442
+ "name": "PathOsBasedAbsolute",
3443
+ "packageName": "@teambit/legacy/dist/utils/path"
3392
3444
  },
3393
3445
  "isOptional": true,
3394
3446
  "isSpread": false
@@ -3451,7 +3503,8 @@
3451
3503
  "line": 142,
3452
3504
  "character": 14
3453
3505
  },
3454
- "name": "WorkspaceConfigFileProps"
3506
+ "name": "WorkspaceConfigFileProps",
3507
+ "internalFilePath": "workspace-config.ts"
3455
3508
  }
3456
3509
  },
3457
3510
  {
@@ -3493,7 +3546,8 @@
3493
3546
  "line": 146,
3494
3547
  "character": 30
3495
3548
  },
3496
- "name": "WorkspaceConfigFileProps"
3549
+ "name": "WorkspaceConfigFileProps",
3550
+ "internalFilePath": "workspace-config.ts"
3497
3551
  },
3498
3552
  "isOptional": false,
3499
3553
  "isSpread": false
@@ -3513,7 +3567,8 @@
3513
3567
  "line": 146,
3514
3568
  "character": 65
3515
3569
  },
3516
- "name": "PathOsBasedAbsolute"
3570
+ "name": "PathOsBasedAbsolute",
3571
+ "packageName": "@teambit/legacy/dist/utils/path"
3517
3572
  },
3518
3573
  "isOptional": false,
3519
3574
  "isSpread": false
@@ -3533,7 +3588,8 @@
3533
3588
  "line": 146,
3534
3589
  "character": 97
3535
3590
  },
3536
- "name": "PathOsBasedAbsolute"
3591
+ "name": "PathOsBasedAbsolute",
3592
+ "packageName": "@teambit/legacy/dist/utils/path"
3537
3593
  },
3538
3594
  "isOptional": false,
3539
3595
  "isSpread": false
@@ -3595,7 +3651,8 @@
3595
3651
  "line": 160,
3596
3652
  "character": 14
3597
3653
  },
3598
- "name": "PathOsBasedAbsolute"
3654
+ "name": "PathOsBasedAbsolute",
3655
+ "packageName": "@teambit/legacy/dist/utils/path"
3599
3656
  }
3600
3657
  },
3601
3658
  {
@@ -3614,7 +3671,8 @@
3614
3671
  "line": 161,
3615
3672
  "character": 14
3616
3673
  },
3617
- "name": "WorkspaceConfigFileProps"
3674
+ "name": "WorkspaceConfigFileProps",
3675
+ "internalFilePath": "workspace-config.ts"
3618
3676
  }
3619
3677
  },
3620
3678
  {
@@ -3641,7 +3699,8 @@
3641
3699
  "line": 162,
3642
3700
  "character": 24
3643
3701
  },
3644
- "name": "WorkspaceConfig"
3702
+ "name": "WorkspaceConfig",
3703
+ "internalFilePath": "workspace-config.ts"
3645
3704
  }
3646
3705
  ]
3647
3706
  }
@@ -3676,7 +3735,8 @@
3676
3735
  "line": 166,
3677
3736
  "character": 14
3678
3737
  },
3679
- "name": "PathOsBasedAbsolute"
3738
+ "name": "PathOsBasedAbsolute",
3739
+ "packageName": "@teambit/legacy/dist/utils/path"
3680
3740
  },
3681
3741
  "isOptional": false,
3682
3742
  "isSpread": false
@@ -3696,7 +3756,8 @@
3696
3756
  "line": 167,
3697
3757
  "character": 16
3698
3758
  },
3699
- "name": "PathOsBasedAbsolute"
3759
+ "name": "PathOsBasedAbsolute",
3760
+ "packageName": "@teambit/legacy/dist/utils/path"
3700
3761
  },
3701
3762
  "isOptional": false,
3702
3763
  "isSpread": false
@@ -3716,7 +3777,8 @@
3716
3777
  "line": 168,
3717
3778
  "character": 27
3718
3779
  },
3719
- "name": "WorkspaceConfigFileProps"
3780
+ "name": "WorkspaceConfigFileProps",
3781
+ "internalFilePath": "workspace-config.ts"
3720
3782
  },
3721
3783
  "isOptional": true,
3722
3784
  "defaultValue": "{} as any",
@@ -3739,7 +3801,8 @@
3739
3801
  "line": 169,
3740
3802
  "character": 14
3741
3803
  },
3742
- "name": "WorkspaceConfig"
3804
+ "name": "WorkspaceConfig",
3805
+ "internalFilePath": "workspace-config.ts"
3743
3806
  }
3744
3807
  ]
3745
3808
  },
@@ -3773,7 +3836,8 @@
3773
3836
  "line": 186,
3774
3837
  "character": 31
3775
3838
  },
3776
- "name": "PathOsBasedAbsolute"
3839
+ "name": "PathOsBasedAbsolute",
3840
+ "packageName": "@teambit/legacy/dist/utils/path"
3777
3841
  },
3778
3842
  "isOptional": false,
3779
3843
  "isSpread": false
@@ -3867,7 +3931,8 @@
3867
3931
  "line": 198,
3868
3932
  "character": 14
3869
3933
  },
3870
- "name": "PathOsBased"
3934
+ "name": "PathOsBased",
3935
+ "packageName": "@teambit/legacy/dist/utils/path"
3871
3936
  }
3872
3937
  },
3873
3938
  {
@@ -3885,7 +3950,8 @@
3885
3950
  "line": 199,
3886
3951
  "character": 16
3887
3952
  },
3888
- "name": "PathOsBased"
3953
+ "name": "PathOsBased",
3954
+ "packageName": "@teambit/legacy/dist/utils/path"
3889
3955
  }
3890
3956
  },
3891
3957
  {
@@ -3918,7 +3984,8 @@
3918
3984
  "line": 202,
3919
3985
  "character": 45
3920
3986
  },
3921
- "name": "PathOsBased"
3987
+ "name": "PathOsBased",
3988
+ "packageName": "@teambit/legacy/dist/utils/path"
3922
3989
  },
3923
3990
  "isOptional": false,
3924
3991
  "isSpread": false
@@ -3963,7 +4030,8 @@
3963
4030
  "line": 206,
3964
4031
  "character": 47
3965
4032
  },
3966
- "name": "PathOsBased"
4033
+ "name": "PathOsBased",
4034
+ "packageName": "@teambit/legacy/dist/utils/path"
3967
4035
  },
3968
4036
  "isOptional": false,
3969
4037
  "isSpread": false
@@ -4041,7 +4109,8 @@
4041
4109
  "line": 215,
4042
4110
  "character": 33
4043
4111
  },
4044
- "name": "PathOsBased"
4112
+ "name": "PathOsBased",
4113
+ "packageName": "@teambit/legacy/dist/utils/path"
4045
4114
  },
4046
4115
  "isOptional": false,
4047
4116
  "isSpread": false
@@ -4133,7 +4202,8 @@
4133
4202
  "line": 227,
4134
4203
  "character": 14
4135
4204
  },
4136
- "name": "PathOsBased"
4205
+ "name": "PathOsBased",
4206
+ "packageName": "@teambit/legacy/dist/utils/path"
4137
4207
  }
4138
4208
  },
4139
4209
  {
@@ -4175,7 +4245,8 @@
4175
4245
  "line": 228,
4176
4246
  "character": 25
4177
4247
  },
4178
- "name": "WorkspaceConfig"
4248
+ "name": "WorkspaceConfig",
4249
+ "internalFilePath": "workspace-config.ts"
4179
4250
  },
4180
4251
  {
4181
4252
  "__schema": "KeywordTypeSchema",
@@ -4222,7 +4293,8 @@
4222
4293
  "line": 232,
4223
4294
  "character": 14
4224
4295
  },
4225
- "name": "PathOsBased"
4296
+ "name": "PathOsBased",
4297
+ "packageName": "@teambit/legacy/dist/utils/path"
4226
4298
  },
4227
4299
  "isOptional": false,
4228
4300
  "isSpread": false
@@ -4242,7 +4314,8 @@
4242
4314
  "line": 233,
4243
4315
  "character": 17
4244
4316
  },
4245
- "name": "PathOsBasedAbsolute"
4317
+ "name": "PathOsBasedAbsolute",
4318
+ "packageName": "@teambit/legacy/dist/utils/path"
4246
4319
  },
4247
4320
  "isOptional": true,
4248
4321
  "isSpread": false
@@ -4272,7 +4345,8 @@
4272
4345
  "line": 234,
4273
4346
  "character": 14
4274
4347
  },
4275
- "name": "WorkspaceConfig"
4348
+ "name": "WorkspaceConfig",
4349
+ "internalFilePath": "workspace-config.ts"
4276
4350
  },
4277
4351
  {
4278
4352
  "__schema": "KeywordTypeSchema",
@@ -4317,7 +4391,8 @@
4317
4391
  "line": 244,
4318
4392
  "character": 60
4319
4393
  },
4320
- "name": "PathOsBased"
4394
+ "name": "PathOsBased",
4395
+ "packageName": "@teambit/legacy/dist/utils/path"
4321
4396
  },
4322
4397
  "isOptional": false,
4323
4398
  "isSpread": false
@@ -4359,7 +4434,8 @@
4359
4434
  "line": 244,
4360
4435
  "character": 102
4361
4436
  },
4362
- "name": "WorkspaceConfig"
4437
+ "name": "WorkspaceConfig",
4438
+ "internalFilePath": "workspace-config.ts"
4363
4439
  }
4364
4440
  ]
4365
4441
  },
@@ -4410,7 +4486,8 @@
4410
4486
  "line": 255,
4411
4487
  "character": 49
4412
4488
  },
4413
- "name": "PathOsBasedAbsolute"
4489
+ "name": "PathOsBasedAbsolute",
4490
+ "packageName": "@teambit/legacy/dist/utils/path"
4414
4491
  },
4415
4492
  "isOptional": true
4416
4493
  },
@@ -4455,7 +4532,8 @@
4455
4532
  "line": 255,
4456
4533
  "character": 49
4457
4534
  },
4458
- "name": "PathOsBasedAbsolute"
4535
+ "name": "PathOsBasedAbsolute",
4536
+ "packageName": "@teambit/legacy/dist/utils/path"
4459
4537
  },
4460
4538
  "isOptional": true
4461
4539
  },
@@ -4618,7 +4696,8 @@
4618
4696
  "line": 316,
4619
4697
  "character": 31
4620
4698
  },
4621
- "name": "PathOsBasedAbsolute"
4699
+ "name": "PathOsBasedAbsolute",
4700
+ "packageName": "@teambit/legacy/dist/utils/path"
4622
4701
  },
4623
4702
  "isOptional": false,
4624
4703
  "isSpread": false
@@ -4655,7 +4734,8 @@
4655
4734
  "line": 316,
4656
4735
  "character": 61
4657
4736
  },
4658
- "name": "AbstractVinyl"
4737
+ "name": "AbstractVinyl",
4738
+ "packageName": "@teambit/legacy/dist/consumer/component/sources"
4659
4739
  }
4660
4740
  },
4661
4741
  {
@@ -4737,7 +4817,8 @@
4737
4817
  "line": 18,
4738
4818
  "character": 9
4739
4819
  },
4740
- "name": "PathOsBased"
4820
+ "name": "PathOsBased",
4821
+ "packageName": "@teambit/legacy/dist/utils/path"
4741
4822
  },
4742
4823
  "doc": {
4743
4824
  "__schema": "DocSchema",
@@ -4839,9 +4920,10 @@
4839
4920
  "line": 22,
4840
4921
  "character": 63
4841
4922
  },
4842
- "name": "ExtensionDataEntry"
4923
+ "name": "ExtensionDataEntry",
4924
+ "packageName": "@teambit/legacy/dist/consumer/config"
4843
4925
  },
4844
- "signature": "(extensionId: string, ignoreVersion: boolean): ExtensionDataEntry"
4926
+ "signature": "(extensionId: string, ignoreVersion: boolean): \u001b[2m(package: @teambit/legacy/dist/consumer/config)\u001b[22m ExtensionDataEntry"
4845
4927
  }
4846
4928
  },
4847
4929
  {
@@ -4931,7 +5013,8 @@
4931
5013
  "line": 24,
4932
5014
  "character": 75
4933
5015
  },
4934
- "name": "SetExtensionOptions"
5016
+ "name": "SetExtensionOptions",
5017
+ "internalFilePath": "config.main.runtime.ts"
4935
5018
  }
4936
5019
  }
4937
5020
  ],
@@ -4973,7 +5056,8 @@
4973
5056
  "line": 26,
4974
5057
  "character": 15
4975
5058
  },
4976
- "name": "WriteOptions"
5059
+ "name": "WriteOptions",
5060
+ "internalFilePath": "types.ts"
4977
5061
  }
4978
5062
  }
4979
5063
  ],
@@ -5104,7 +5188,8 @@
5104
5188
  "line": 385,
5105
5189
  "character": 67
5106
5190
  },
5107
- "name": "CommentJSONValue"
5191
+ "name": "CommentJSONValue",
5192
+ "packageName": "comment-json"
5108
5193
  }
5109
5194
  ]
5110
5195
  },
@@ -5138,7 +5223,8 @@
5138
5223
  "line": 397,
5139
5224
  "character": 59
5140
5225
  },
5141
- "name": "CommentJSONValue"
5226
+ "name": "CommentJSONValue",
5227
+ "packageName": "comment-json"
5142
5228
  },
5143
5229
  "isOptional": false,
5144
5230
  "isSpread": false
@@ -5197,7 +5283,7 @@
5197
5283
  "componentId": {
5198
5284
  "scope": "teambit.harmony",
5199
5285
  "name": "config",
5200
- "version": "0.0.979"
5286
+ "version": "0.0.980"
5201
5287
  },
5202
5288
  "taggedModuleExports": []
5203
5289
  }
@@ -0,0 +1,3 @@
1
+ import { Aspect, RuntimeDefinition } from '@teambit/harmony';
2
+ export declare const ConfigRuntime: RuntimeDefinition;
3
+ export declare const ConfigAspect: Aspect;
@@ -0,0 +1,41 @@
1
+ import { ExtensionDataEntry, ExtensionDataList } from '@teambit/legacy/dist/consumer/config';
2
+ import { PathOsBased, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';
3
+ import { GlobalConfig, Harmony } from '@teambit/harmony';
4
+ import { WorkspaceConfig, WorkspaceConfigFileProps } from './workspace-config';
5
+ import { ConfigType, HostConfig } from './types';
6
+ export type SetExtensionOptions = {
7
+ overrideExisting?: boolean;
8
+ ignoreVersion: boolean;
9
+ mergeIntoExisting?: boolean;
10
+ };
11
+ export type ConfigDeps = [];
12
+ export type ConfigConfig = {};
13
+ export declare class ConfigMain {
14
+ workspaceConfig?: WorkspaceConfig | undefined;
15
+ scopeConfig?: WorkspaceConfig | undefined;
16
+ constructor(workspaceConfig?: WorkspaceConfig | undefined, scopeConfig?: WorkspaceConfig | undefined);
17
+ get type(): ConfigType;
18
+ get path(): PathOsBased | undefined;
19
+ get config(): HostConfig | undefined;
20
+ reloadWorkspaceConfig(cwd: string): Promise<void>;
21
+ /**
22
+ * Ensure the given directory has a workspace config
23
+ * Load if existing and create new if not
24
+ *
25
+ * @static
26
+ * @param {PathOsBasedAbsolute} workspacePath
27
+ * @param {WorkspaceConfigFileProps} [workspaceConfigProps={} as any]
28
+ * @returns {Promise<WorkspaceConfig>}
29
+ * @memberof WorkspaceConfig
30
+ */
31
+ static ensureWorkspace(workspacePath: PathOsBasedAbsolute, scopePath: PathOsBasedAbsolute, workspaceConfigProps?: WorkspaceConfigFileProps): Promise<ConfigMain>;
32
+ get extensions(): ExtensionDataList | undefined;
33
+ extension(extensionId: string, ignoreVersion: boolean): ExtensionDataEntry | undefined;
34
+ setExtension(extensionId: string, config: Record<string, any>, options: SetExtensionOptions): void;
35
+ getHarmonyConfigObject(): GlobalConfig;
36
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
37
+ static slots: never[];
38
+ static dependencies: never[];
39
+ static config: {};
40
+ static provider(_deps: any, _config: any, _slots: any, harmony: Harmony): Promise<any>;
41
+ }
@@ -0,0 +1,5 @@
1
+ import { BitError } from '@teambit/bit-error';
2
+ export declare class ExtensionAlreadyConfigured extends BitError {
3
+ readonly extensionId: string;
4
+ constructor(extensionId: string);
5
+ }
@@ -0,0 +1 @@
1
+ export { ExtensionAlreadyConfigured } from './extension-already-configured';
@@ -0,0 +1,6 @@
1
+ import { BitError } from '@teambit/bit-error';
2
+ export default class InvalidConfigFile extends BitError {
3
+ readonly path: string;
4
+ showDoctorMessage: boolean;
5
+ constructor(path: string);
6
+ }
@@ -0,0 +1,4 @@
1
+ export { ConfigMain } from './config.main.runtime';
2
+ export { ConfigAspect, ConfigRuntime } from './config.aspect';
3
+ export type { ComponentScopeDirMap } from './workspace-config';
4
+ export { getWorkspaceConfigTemplateParsed, stringifyWorkspaceConfig } from './workspace-config';
@@ -0,0 +1,21 @@
1
+ import { ExtensionDataEntry, ExtensionDataList } from '@teambit/legacy/dist/consumer/config';
2
+ import { PathOsBased, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';
3
+ import { SetExtensionOptions } from './config.main.runtime';
4
+ export type WriteOptions = {
5
+ dir?: PathOsBasedAbsolute;
6
+ };
7
+ /**
8
+ * An interface implemented by component host (workspace / scope) config file
9
+ * This used to be able to abstract the workspace/scope config.
10
+ */
11
+ export interface HostConfig {
12
+ /**
13
+ * Path to the actual file
14
+ */
15
+ path: PathOsBased;
16
+ extensions: ExtensionDataList;
17
+ extension: (extensionId: string, ignoreVersion: boolean) => ExtensionDataEntry;
18
+ setExtension(extensionId: string, config: Record<string, any>, options: SetExtensionOptions): void;
19
+ write(opts: WriteOptions): Promise<void>;
20
+ }
21
+ export type ConfigType = 'workspace' | 'scope';
@@ -0,0 +1,123 @@
1
+ import { AbstractVinyl } from '@teambit/legacy/dist/consumer/component/sources';
2
+ import { ExtensionDataList, ILegacyWorkspaceConfig } from '@teambit/legacy/dist/consumer/config';
3
+ import LegacyWorkspaceConfig, { WorkspaceConfigProps as LegacyWorkspaceConfigProps } from '@teambit/legacy/dist/consumer/config/workspace-config';
4
+ import { PathOsBased, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';
5
+ import { CommentJSONValue } from 'comment-json';
6
+ import { SetExtensionOptions } from './config.main.runtime';
7
+ import { HostConfig } from './types';
8
+ export type LegacyInitProps = {
9
+ standAlone?: boolean;
10
+ };
11
+ export type WorkspaceConfigFileProps = {
12
+ $schema?: string;
13
+ $schemaVersion?: string;
14
+ } & ExtensionsDefs;
15
+ export type ComponentScopeDirMapEntry = {
16
+ defaultScope?: string;
17
+ directory: string;
18
+ };
19
+ export type ComponentScopeDirMap = Array<ComponentScopeDirMapEntry>;
20
+ export type WorkspaceExtensionProps = {
21
+ defaultScope?: string;
22
+ defaultDirectory?: string;
23
+ components?: ComponentScopeDirMap;
24
+ };
25
+ export type PackageManagerClients = 'npm' | 'yarn' | undefined;
26
+ export interface DependencyResolverExtensionProps {
27
+ packageManager: PackageManagerClients;
28
+ strictPeerDependencies?: boolean;
29
+ extraArgs?: string[];
30
+ packageManagerProcessOptions?: any;
31
+ useWorkspaces?: boolean;
32
+ manageWorkspaces?: boolean;
33
+ }
34
+ export type WorkspaceSettingsNewProps = {
35
+ 'teambit.workspace/workspace': WorkspaceExtensionProps;
36
+ 'teambit.dependencies/dependency-resolver': DependencyResolverExtensionProps;
37
+ };
38
+ export type ExtensionsDefs = WorkspaceSettingsNewProps;
39
+ export declare class WorkspaceConfig implements HostConfig {
40
+ private data;
41
+ private _path;
42
+ private scopePath?;
43
+ raw?: any;
44
+ _extensions: ExtensionDataList;
45
+ isLegacy: boolean;
46
+ constructor(data: WorkspaceConfigFileProps, _path: PathOsBasedAbsolute, scopePath?: string | undefined);
47
+ get path(): PathOsBased;
48
+ get extensions(): ExtensionDataList;
49
+ private loadExtensions;
50
+ extension(extensionId: string, ignoreVersion: boolean): any;
51
+ setExtension(extensionId: string, config: Record<string, any>, options: SetExtensionOptions): any;
52
+ renameExtensionInRaw(oldExtId: string, newExtId: string): boolean;
53
+ removeExtension(extId: string): boolean;
54
+ /**
55
+ * Create an instance of the WorkspaceConfig by data
56
+ *
57
+ * @static
58
+ * @param {WorkspaceConfigFileProps} data
59
+ * @returns
60
+ * @memberof WorkspaceConfig
61
+ */
62
+ static fromObject(data: WorkspaceConfigFileProps, workspaceJsoncPath: PathOsBased, scopePath?: PathOsBasedAbsolute): WorkspaceConfig;
63
+ /**
64
+ * Create an instance of the WorkspaceConfig by the workspace config template and override values
65
+ *
66
+ * @static
67
+ * @param {WorkspaceConfigFileProps} data values to override in the default template
68
+ * @returns
69
+ * @memberof WorkspaceConfig
70
+ */
71
+ static create(props: WorkspaceConfigFileProps, dirPath: PathOsBasedAbsolute, scopePath: PathOsBasedAbsolute): Promise<WorkspaceConfig>;
72
+ /**
73
+ * Ensure the given directory has a workspace config
74
+ * Load if existing and create new if not
75
+ *
76
+ * @static
77
+ * @param {PathOsBasedAbsolute} dirPath
78
+ * @param {WorkspaceConfigFileProps} [workspaceConfigProps={} as any]
79
+ * @returns {Promise<WorkspaceConfig>}
80
+ * @memberof WorkspaceConfig
81
+ */
82
+ static ensure(dirPath: PathOsBasedAbsolute, scopePath: PathOsBasedAbsolute, workspaceConfigProps?: WorkspaceConfigFileProps): Promise<WorkspaceConfig>;
83
+ static reset(dirPath: PathOsBasedAbsolute, resetHard: boolean): Promise<void>;
84
+ /**
85
+ * Get the path of the workspace.jsonc file by a containing folder
86
+ *
87
+ * @static
88
+ * @param {PathOsBased} dirPath containing dir of the workspace.jsonc file
89
+ * @returns {PathOsBased}
90
+ * @memberof WorkspaceConfig
91
+ */
92
+ static composeWorkspaceJsoncPath(dirPath: PathOsBased): PathOsBased;
93
+ static pathHasWorkspaceJsonc(dirPath: PathOsBased): Promise<boolean>;
94
+ /**
95
+ * Check if the given dir has workspace config (new or legacy)
96
+ * @param dirPath
97
+ */
98
+ static isExist(dirPath: PathOsBased): Promise<boolean | undefined>;
99
+ /**
100
+ * Load the workspace configuration if it's exist
101
+ *
102
+ * @static
103
+ * @param {PathOsBased} dirPath
104
+ * @returns {(Promise<WorkspaceConfig | undefined>)}
105
+ * @memberof WorkspaceConfig
106
+ */
107
+ static loadIfExist(dirPath: PathOsBased, scopePath?: PathOsBasedAbsolute): Promise<WorkspaceConfig | undefined>;
108
+ static _loadFromWorkspaceJsonc(workspaceJsoncPath: PathOsBased, scopePath?: string): Promise<WorkspaceConfig>;
109
+ write({ dir, reasonForChange }?: {
110
+ dir?: PathOsBasedAbsolute;
111
+ reasonForChange?: string;
112
+ }): Promise<void>;
113
+ backupConfigFile(reasonForChange?: string): Promise<void>;
114
+ private getBackupDir;
115
+ getBackupHistoryDir(): string;
116
+ getBackupMetadataFilePath(): string;
117
+ private getParsedHistoryMetadata;
118
+ toVinyl(workspaceDir: PathOsBasedAbsolute): Promise<AbstractVinyl[] | undefined>;
119
+ toLegacy(): ILegacyWorkspaceConfig;
120
+ }
121
+ export declare function transformLegacyPropsToExtensions(legacyConfig: LegacyWorkspaceConfig | LegacyWorkspaceConfigProps): ExtensionsDefs;
122
+ export declare function getWorkspaceConfigTemplateParsed(): Promise<CommentJSONValue>;
123
+ export declare function stringifyWorkspaceConfig(workspaceConfig: CommentJSONValue): string;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/config",
3
- "version": "0.0.979",
3
+ "version": "0.0.980",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/config",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "config",
9
- "version": "0.0.979"
9
+ "version": "0.0.980"
10
10
  },
11
11
  "dependencies": {
12
12
  "comment-json": "3.0.3",
@@ -16,15 +16,15 @@
16
16
  "@teambit/harmony": "0.4.6",
17
17
  "@teambit/scope.modules.find-scope-path": "0.0.1",
18
18
  "@teambit/bit-error": "0.0.404",
19
- "@teambit/cli": "0.0.861",
20
- "@teambit/workspace": "1.0.228"
19
+ "@teambit/cli": "0.0.862",
20
+ "@teambit/workspace": "1.0.229"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/fs-extra": "9.0.7",
24
24
  "@types/lodash": "4.14.165",
25
25
  "@types/mocha": "9.1.0",
26
26
  "chai": "4.3.0",
27
- "@teambit/harmony.envs.core-aspect-env": "0.0.30"
27
+ "@teambit/harmony.envs.core-aspect-env": "0.0.33"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@teambit/legacy": "1.0.624"
package/tsconfig.json CHANGED
@@ -20,8 +20,7 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false,
24
- "composite": true
23
+ "noImplicitAny": false
25
24
  },
26
25
  "exclude": [
27
26
  "artifacts",
@@ -36,13 +35,5 @@
36
35
  "include": [
37
36
  "**/*",
38
37
  "**/*.json"
39
- ],
40
- "references": [
41
- {
42
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
43
- },
44
- {
45
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
46
- }
47
38
  ]
48
39
  }