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