@teambit/component-writer 1.0.204 → 1.0.206
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 +180 -36
- package/dist/component-writer.main.runtime.d.ts +1 -1
- package/dist/component-writer.main.runtime.js +15 -14
- package/dist/component-writer.main.runtime.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- /package/dist/{preview-1711077715212.js → preview-1711250408684.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.component/component-writer@1.0.
|
|
3
|
+
<testsuite name="teambit.component/component-writer@1.0.206" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"__schema": "VariableLikeSchema",
|
|
269
269
|
"location": {
|
|
270
270
|
"filePath": "component-writer.main.runtime.ts",
|
|
271
|
-
"line":
|
|
271
|
+
"line": 288,
|
|
272
272
|
"character": 3
|
|
273
273
|
},
|
|
274
274
|
"signature": "(property) ComponentWriterMain.slots: never[]",
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"__schema": "InferenceTypeSchema",
|
|
278
278
|
"location": {
|
|
279
279
|
"filePath": "component-writer.main.runtime.ts",
|
|
280
|
-
"line":
|
|
280
|
+
"line": 288,
|
|
281
281
|
"character": 3
|
|
282
282
|
},
|
|
283
283
|
"type": "never[]"
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
"__schema": "VariableLikeSchema",
|
|
290
290
|
"location": {
|
|
291
291
|
"filePath": "component-writer.main.runtime.ts",
|
|
292
|
-
"line":
|
|
292
|
+
"line": 289,
|
|
293
293
|
"character": 3
|
|
294
294
|
},
|
|
295
295
|
"signature": "(property) ComponentWriterMain.dependencies: Aspect[]",
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"__schema": "InferenceTypeSchema",
|
|
299
299
|
"location": {
|
|
300
300
|
"filePath": "component-writer.main.runtime.ts",
|
|
301
|
-
"line":
|
|
301
|
+
"line": 289,
|
|
302
302
|
"character": 3
|
|
303
303
|
},
|
|
304
304
|
"type": "Aspect[]"
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
"__schema": "VariableLikeSchema",
|
|
311
311
|
"location": {
|
|
312
312
|
"filePath": "component-writer.main.runtime.ts",
|
|
313
|
-
"line":
|
|
313
|
+
"line": 290,
|
|
314
314
|
"character": 3
|
|
315
315
|
},
|
|
316
316
|
"signature": "(property) ComponentWriterMain.runtime: RuntimeDefinition",
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
"__schema": "InferenceTypeSchema",
|
|
320
320
|
"location": {
|
|
321
321
|
"filePath": "component-writer.main.runtime.ts",
|
|
322
|
-
"line":
|
|
322
|
+
"line": 290,
|
|
323
323
|
"character": 3
|
|
324
324
|
},
|
|
325
325
|
"type": "RuntimeDefinition"
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
"__schema": "FunctionLikeSchema",
|
|
332
332
|
"location": {
|
|
333
333
|
"filePath": "component-writer.main.runtime.ts",
|
|
334
|
-
"line":
|
|
334
|
+
"line": 291,
|
|
335
335
|
"character": 3
|
|
336
336
|
},
|
|
337
337
|
"signature": "(method) ComponentWriterMain.provider([install, compiler, loggerMain, workspace, mover, configMerger]: [\n InstallMain,\n CompilerMain,\n LoggerMain,\n Workspace,\n MoverMain,\n ConfigMergerMain\n]): Promise<ComponentWriterMain>",
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
"__schema": "ParameterSchema",
|
|
342
342
|
"location": {
|
|
343
343
|
"filePath": "component-writer.main.runtime.ts",
|
|
344
|
-
"line":
|
|
344
|
+
"line": 291,
|
|
345
345
|
"character": 25
|
|
346
346
|
},
|
|
347
347
|
"name": "[ install, compiler, loggerMain, workspace, mover, configMerger ]",
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
"__schema": "TupleTypeSchema",
|
|
350
350
|
"location": {
|
|
351
351
|
"filePath": "component-writer.main.runtime.ts",
|
|
352
|
-
"line":
|
|
352
|
+
"line": 291,
|
|
353
353
|
"character": 90
|
|
354
354
|
},
|
|
355
355
|
"elements": [
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
"__schema": "TypeRefSchema",
|
|
358
358
|
"location": {
|
|
359
359
|
"filePath": "component-writer.main.runtime.ts",
|
|
360
|
-
"line":
|
|
360
|
+
"line": 292,
|
|
361
361
|
"character": 5
|
|
362
362
|
},
|
|
363
363
|
"name": "InstallMain",
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"__schema": "TypeRefSchema",
|
|
371
371
|
"location": {
|
|
372
372
|
"filePath": "component-writer.main.runtime.ts",
|
|
373
|
-
"line":
|
|
373
|
+
"line": 293,
|
|
374
374
|
"character": 5
|
|
375
375
|
},
|
|
376
376
|
"name": "CompilerMain",
|
|
@@ -383,7 +383,7 @@
|
|
|
383
383
|
"__schema": "TypeRefSchema",
|
|
384
384
|
"location": {
|
|
385
385
|
"filePath": "component-writer.main.runtime.ts",
|
|
386
|
-
"line":
|
|
386
|
+
"line": 294,
|
|
387
387
|
"character": 5
|
|
388
388
|
},
|
|
389
389
|
"name": "LoggerMain",
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"__schema": "TypeRefSchema",
|
|
397
397
|
"location": {
|
|
398
398
|
"filePath": "component-writer.main.runtime.ts",
|
|
399
|
-
"line":
|
|
399
|
+
"line": 295,
|
|
400
400
|
"character": 5
|
|
401
401
|
},
|
|
402
402
|
"name": "Workspace",
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"__schema": "TypeRefSchema",
|
|
410
410
|
"location": {
|
|
411
411
|
"filePath": "component-writer.main.runtime.ts",
|
|
412
|
-
"line":
|
|
412
|
+
"line": 296,
|
|
413
413
|
"character": 5
|
|
414
414
|
},
|
|
415
415
|
"name": "MoverMain",
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"__schema": "TypeRefSchema",
|
|
423
423
|
"location": {
|
|
424
424
|
"filePath": "component-writer.main.runtime.ts",
|
|
425
|
-
"line":
|
|
425
|
+
"line": 297,
|
|
426
426
|
"character": 5
|
|
427
427
|
},
|
|
428
428
|
"name": "ConfigMergerMain",
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
"__schema": "InferenceTypeSchema",
|
|
442
442
|
"location": {
|
|
443
443
|
"filePath": "component-writer.main.runtime.ts",
|
|
444
|
-
"line":
|
|
444
|
+
"line": 291,
|
|
445
445
|
"character": 3
|
|
446
446
|
},
|
|
447
447
|
"type": "Promise<ComponentWriterMain>"
|
|
@@ -801,11 +801,83 @@
|
|
|
801
801
|
],
|
|
802
802
|
"extendsNodes": []
|
|
803
803
|
},
|
|
804
|
+
{
|
|
805
|
+
"__schema": "FunctionLikeSchema",
|
|
806
|
+
"location": {
|
|
807
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
808
|
+
"line": 308,
|
|
809
|
+
"character": 1
|
|
810
|
+
},
|
|
811
|
+
"signature": "function incrementPathRecursively(p: string, allPaths: string[]): string",
|
|
812
|
+
"name": "incrementPathRecursively",
|
|
813
|
+
"params": [
|
|
814
|
+
{
|
|
815
|
+
"__schema": "ParameterSchema",
|
|
816
|
+
"location": {
|
|
817
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
818
|
+
"line": 308,
|
|
819
|
+
"character": 42
|
|
820
|
+
},
|
|
821
|
+
"name": "p",
|
|
822
|
+
"type": {
|
|
823
|
+
"__schema": "KeywordTypeSchema",
|
|
824
|
+
"location": {
|
|
825
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
826
|
+
"line": 308,
|
|
827
|
+
"character": 45
|
|
828
|
+
},
|
|
829
|
+
"name": "string"
|
|
830
|
+
},
|
|
831
|
+
"isOptional": false,
|
|
832
|
+
"isSpread": false
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"__schema": "ParameterSchema",
|
|
836
|
+
"location": {
|
|
837
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
838
|
+
"line": 308,
|
|
839
|
+
"character": 53
|
|
840
|
+
},
|
|
841
|
+
"name": "allPaths",
|
|
842
|
+
"type": {
|
|
843
|
+
"__schema": "TypeArraySchema",
|
|
844
|
+
"location": {
|
|
845
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
846
|
+
"line": 308,
|
|
847
|
+
"character": 63
|
|
848
|
+
},
|
|
849
|
+
"type": {
|
|
850
|
+
"__schema": "KeywordTypeSchema",
|
|
851
|
+
"location": {
|
|
852
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
853
|
+
"line": 308,
|
|
854
|
+
"character": 63
|
|
855
|
+
},
|
|
856
|
+
"name": "string"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"isOptional": false,
|
|
860
|
+
"isSpread": false
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"returnType": {
|
|
864
|
+
"__schema": "InferenceTypeSchema",
|
|
865
|
+
"location": {
|
|
866
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
867
|
+
"line": 308,
|
|
868
|
+
"character": 1
|
|
869
|
+
},
|
|
870
|
+
"type": "string"
|
|
871
|
+
},
|
|
872
|
+
"modifiers": [
|
|
873
|
+
"export"
|
|
874
|
+
]
|
|
875
|
+
},
|
|
804
876
|
{
|
|
805
877
|
"__schema": "UnImplementedSchema",
|
|
806
878
|
"location": {
|
|
807
879
|
"filePath": "index.ts",
|
|
808
|
-
"line":
|
|
880
|
+
"line": 9,
|
|
809
881
|
"character": 16
|
|
810
882
|
},
|
|
811
883
|
"name": "ComponentWriterAspect",
|
|
@@ -1450,7 +1522,7 @@
|
|
|
1450
1522
|
"__schema": "VariableLikeSchema",
|
|
1451
1523
|
"location": {
|
|
1452
1524
|
"filePath": "component-writer.main.runtime.ts",
|
|
1453
|
-
"line":
|
|
1525
|
+
"line": 288,
|
|
1454
1526
|
"character": 3
|
|
1455
1527
|
},
|
|
1456
1528
|
"signature": "(property) ComponentWriterMain.slots: never[]",
|
|
@@ -1459,7 +1531,7 @@
|
|
|
1459
1531
|
"__schema": "InferenceTypeSchema",
|
|
1460
1532
|
"location": {
|
|
1461
1533
|
"filePath": "component-writer.main.runtime.ts",
|
|
1462
|
-
"line":
|
|
1534
|
+
"line": 288,
|
|
1463
1535
|
"character": 3
|
|
1464
1536
|
},
|
|
1465
1537
|
"type": "never[]"
|
|
@@ -1471,7 +1543,7 @@
|
|
|
1471
1543
|
"__schema": "VariableLikeSchema",
|
|
1472
1544
|
"location": {
|
|
1473
1545
|
"filePath": "component-writer.main.runtime.ts",
|
|
1474
|
-
"line":
|
|
1546
|
+
"line": 289,
|
|
1475
1547
|
"character": 3
|
|
1476
1548
|
},
|
|
1477
1549
|
"signature": "(property) ComponentWriterMain.dependencies: Aspect[]",
|
|
@@ -1480,7 +1552,7 @@
|
|
|
1480
1552
|
"__schema": "InferenceTypeSchema",
|
|
1481
1553
|
"location": {
|
|
1482
1554
|
"filePath": "component-writer.main.runtime.ts",
|
|
1483
|
-
"line":
|
|
1555
|
+
"line": 289,
|
|
1484
1556
|
"character": 3
|
|
1485
1557
|
},
|
|
1486
1558
|
"type": "Aspect[]"
|
|
@@ -1492,7 +1564,7 @@
|
|
|
1492
1564
|
"__schema": "VariableLikeSchema",
|
|
1493
1565
|
"location": {
|
|
1494
1566
|
"filePath": "component-writer.main.runtime.ts",
|
|
1495
|
-
"line":
|
|
1567
|
+
"line": 290,
|
|
1496
1568
|
"character": 3
|
|
1497
1569
|
},
|
|
1498
1570
|
"signature": "(property) ComponentWriterMain.runtime: RuntimeDefinition",
|
|
@@ -1501,7 +1573,7 @@
|
|
|
1501
1573
|
"__schema": "InferenceTypeSchema",
|
|
1502
1574
|
"location": {
|
|
1503
1575
|
"filePath": "component-writer.main.runtime.ts",
|
|
1504
|
-
"line":
|
|
1576
|
+
"line": 290,
|
|
1505
1577
|
"character": 3
|
|
1506
1578
|
},
|
|
1507
1579
|
"type": "RuntimeDefinition"
|
|
@@ -1513,7 +1585,7 @@
|
|
|
1513
1585
|
"__schema": "FunctionLikeSchema",
|
|
1514
1586
|
"location": {
|
|
1515
1587
|
"filePath": "component-writer.main.runtime.ts",
|
|
1516
|
-
"line":
|
|
1588
|
+
"line": 291,
|
|
1517
1589
|
"character": 3
|
|
1518
1590
|
},
|
|
1519
1591
|
"signature": "(method) ComponentWriterMain.provider([install, compiler, loggerMain, workspace, mover, configMerger]: [\n InstallMain,\n CompilerMain,\n LoggerMain,\n Workspace,\n MoverMain,\n ConfigMergerMain\n]): Promise<ComponentWriterMain>",
|
|
@@ -1523,7 +1595,7 @@
|
|
|
1523
1595
|
"__schema": "ParameterSchema",
|
|
1524
1596
|
"location": {
|
|
1525
1597
|
"filePath": "component-writer.main.runtime.ts",
|
|
1526
|
-
"line":
|
|
1598
|
+
"line": 291,
|
|
1527
1599
|
"character": 25
|
|
1528
1600
|
},
|
|
1529
1601
|
"name": "[ install, compiler, loggerMain, workspace, mover, configMerger ]",
|
|
@@ -1531,7 +1603,7 @@
|
|
|
1531
1603
|
"__schema": "TupleTypeSchema",
|
|
1532
1604
|
"location": {
|
|
1533
1605
|
"filePath": "component-writer.main.runtime.ts",
|
|
1534
|
-
"line":
|
|
1606
|
+
"line": 291,
|
|
1535
1607
|
"character": 90
|
|
1536
1608
|
},
|
|
1537
1609
|
"elements": [
|
|
@@ -1539,7 +1611,7 @@
|
|
|
1539
1611
|
"__schema": "TypeRefSchema",
|
|
1540
1612
|
"location": {
|
|
1541
1613
|
"filePath": "component-writer.main.runtime.ts",
|
|
1542
|
-
"line":
|
|
1614
|
+
"line": 292,
|
|
1543
1615
|
"character": 5
|
|
1544
1616
|
},
|
|
1545
1617
|
"name": "InstallMain",
|
|
@@ -1552,7 +1624,7 @@
|
|
|
1552
1624
|
"__schema": "TypeRefSchema",
|
|
1553
1625
|
"location": {
|
|
1554
1626
|
"filePath": "component-writer.main.runtime.ts",
|
|
1555
|
-
"line":
|
|
1627
|
+
"line": 293,
|
|
1556
1628
|
"character": 5
|
|
1557
1629
|
},
|
|
1558
1630
|
"name": "CompilerMain",
|
|
@@ -1565,7 +1637,7 @@
|
|
|
1565
1637
|
"__schema": "TypeRefSchema",
|
|
1566
1638
|
"location": {
|
|
1567
1639
|
"filePath": "component-writer.main.runtime.ts",
|
|
1568
|
-
"line":
|
|
1640
|
+
"line": 294,
|
|
1569
1641
|
"character": 5
|
|
1570
1642
|
},
|
|
1571
1643
|
"name": "LoggerMain",
|
|
@@ -1578,7 +1650,7 @@
|
|
|
1578
1650
|
"__schema": "TypeRefSchema",
|
|
1579
1651
|
"location": {
|
|
1580
1652
|
"filePath": "component-writer.main.runtime.ts",
|
|
1581
|
-
"line":
|
|
1653
|
+
"line": 295,
|
|
1582
1654
|
"character": 5
|
|
1583
1655
|
},
|
|
1584
1656
|
"name": "Workspace",
|
|
@@ -1591,7 +1663,7 @@
|
|
|
1591
1663
|
"__schema": "TypeRefSchema",
|
|
1592
1664
|
"location": {
|
|
1593
1665
|
"filePath": "component-writer.main.runtime.ts",
|
|
1594
|
-
"line":
|
|
1666
|
+
"line": 296,
|
|
1595
1667
|
"character": 5
|
|
1596
1668
|
},
|
|
1597
1669
|
"name": "MoverMain",
|
|
@@ -1604,7 +1676,7 @@
|
|
|
1604
1676
|
"__schema": "TypeRefSchema",
|
|
1605
1677
|
"location": {
|
|
1606
1678
|
"filePath": "component-writer.main.runtime.ts",
|
|
1607
|
-
"line":
|
|
1679
|
+
"line": 297,
|
|
1608
1680
|
"character": 5
|
|
1609
1681
|
},
|
|
1610
1682
|
"name": "ConfigMergerMain",
|
|
@@ -1623,7 +1695,7 @@
|
|
|
1623
1695
|
"__schema": "InferenceTypeSchema",
|
|
1624
1696
|
"location": {
|
|
1625
1697
|
"filePath": "component-writer.main.runtime.ts",
|
|
1626
|
-
"line":
|
|
1698
|
+
"line": 291,
|
|
1627
1699
|
"character": 3
|
|
1628
1700
|
},
|
|
1629
1701
|
"type": "Promise<ComponentWriterMain>"
|
|
@@ -1641,11 +1713,83 @@
|
|
|
1641
1713
|
"__schema": "UnImplementedSchema",
|
|
1642
1714
|
"location": {
|
|
1643
1715
|
"filePath": "component-writer.main.runtime.ts",
|
|
1644
|
-
"line":
|
|
1716
|
+
"line": 306,
|
|
1645
1717
|
"character": 16
|
|
1646
1718
|
},
|
|
1647
1719
|
"name": "ComponentWriterMain",
|
|
1648
1720
|
"type": "Identifier"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"__schema": "FunctionLikeSchema",
|
|
1724
|
+
"location": {
|
|
1725
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1726
|
+
"line": 308,
|
|
1727
|
+
"character": 1
|
|
1728
|
+
},
|
|
1729
|
+
"signature": "function incrementPathRecursively(p: string, allPaths: string[]): string",
|
|
1730
|
+
"name": "incrementPathRecursively",
|
|
1731
|
+
"params": [
|
|
1732
|
+
{
|
|
1733
|
+
"__schema": "ParameterSchema",
|
|
1734
|
+
"location": {
|
|
1735
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1736
|
+
"line": 308,
|
|
1737
|
+
"character": 42
|
|
1738
|
+
},
|
|
1739
|
+
"name": "p",
|
|
1740
|
+
"type": {
|
|
1741
|
+
"__schema": "KeywordTypeSchema",
|
|
1742
|
+
"location": {
|
|
1743
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1744
|
+
"line": 308,
|
|
1745
|
+
"character": 45
|
|
1746
|
+
},
|
|
1747
|
+
"name": "string"
|
|
1748
|
+
},
|
|
1749
|
+
"isOptional": false,
|
|
1750
|
+
"isSpread": false
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"__schema": "ParameterSchema",
|
|
1754
|
+
"location": {
|
|
1755
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1756
|
+
"line": 308,
|
|
1757
|
+
"character": 53
|
|
1758
|
+
},
|
|
1759
|
+
"name": "allPaths",
|
|
1760
|
+
"type": {
|
|
1761
|
+
"__schema": "TypeArraySchema",
|
|
1762
|
+
"location": {
|
|
1763
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1764
|
+
"line": 308,
|
|
1765
|
+
"character": 63
|
|
1766
|
+
},
|
|
1767
|
+
"type": {
|
|
1768
|
+
"__schema": "KeywordTypeSchema",
|
|
1769
|
+
"location": {
|
|
1770
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1771
|
+
"line": 308,
|
|
1772
|
+
"character": 63
|
|
1773
|
+
},
|
|
1774
|
+
"name": "string"
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"isOptional": false,
|
|
1778
|
+
"isSpread": false
|
|
1779
|
+
}
|
|
1780
|
+
],
|
|
1781
|
+
"returnType": {
|
|
1782
|
+
"__schema": "InferenceTypeSchema",
|
|
1783
|
+
"location": {
|
|
1784
|
+
"filePath": "component-writer.main.runtime.ts",
|
|
1785
|
+
"line": 308,
|
|
1786
|
+
"character": 1
|
|
1787
|
+
},
|
|
1788
|
+
"type": "string"
|
|
1789
|
+
},
|
|
1790
|
+
"modifiers": [
|
|
1791
|
+
"export"
|
|
1792
|
+
]
|
|
1649
1793
|
}
|
|
1650
1794
|
],
|
|
1651
1795
|
"internals": [
|
|
@@ -1653,7 +1797,7 @@
|
|
|
1653
1797
|
"__schema": "UnImplementedSchema",
|
|
1654
1798
|
"location": {
|
|
1655
1799
|
"filePath": "component-writer.main.runtime.ts",
|
|
1656
|
-
"line":
|
|
1800
|
+
"line": 304,
|
|
1657
1801
|
"character": 1
|
|
1658
1802
|
},
|
|
1659
1803
|
"name": "ComponentWriterAspect.addRuntime(ComponentWriterMain);",
|
|
@@ -1702,7 +1846,7 @@
|
|
|
1702
1846
|
"componentId": {
|
|
1703
1847
|
"scope": "teambit.component",
|
|
1704
1848
|
"name": "component-writer",
|
|
1705
|
-
"version": "1.0.
|
|
1849
|
+
"version": "1.0.206"
|
|
1706
1850
|
},
|
|
1707
1851
|
"taggedModuleExports": []
|
|
1708
1852
|
}
|
|
@@ -47,7 +47,6 @@ export declare class ComponentWriterMain {
|
|
|
47
47
|
* in this case, we try to prefix the component-dir with the owner-name and if not possible, just increment it (ui/button_1)
|
|
48
48
|
*/
|
|
49
49
|
private fixDirsIfEqual;
|
|
50
|
-
private incrementPathRecursively;
|
|
51
50
|
/**
|
|
52
51
|
* e.g. [bar, bar/foo] => [bar_1, bar/foo]
|
|
53
52
|
* otherwise, the bar/foo component will be saved inside "bar" component.
|
|
@@ -70,3 +69,4 @@ export declare class ComponentWriterMain {
|
|
|
70
69
|
]): Promise<ComponentWriterMain>;
|
|
71
70
|
}
|
|
72
71
|
export default ComponentWriterMain;
|
|
72
|
+
export declare function incrementPathRecursively(p: string, allPaths: string[]): string;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.ComponentWriterMain = void 0;
|
|
7
|
+
exports.incrementPathRecursively = incrementPathRecursively;
|
|
7
8
|
function _cli() {
|
|
8
9
|
const data = require("@teambit/cli");
|
|
9
10
|
_cli = function () {
|
|
@@ -240,21 +241,12 @@ class ComponentWriterMain {
|
|
|
240
241
|
if (ownerName && !compDir.startsWith(ownerName) && !allDirs.includes(`${ownerName}/${compDir}`)) {
|
|
241
242
|
compWriter.writeToPath = `${ownerName}/${compDir}`;
|
|
242
243
|
} else {
|
|
243
|
-
compWriter.writeToPath =
|
|
244
|
+
compWriter.writeToPath = incrementPathRecursively(compWriter.writeToPath, allDirs);
|
|
244
245
|
}
|
|
245
246
|
allDirs.push(compWriter.writeToPath);
|
|
246
247
|
});
|
|
247
248
|
});
|
|
248
249
|
}
|
|
249
|
-
incrementPathRecursively(p, allPaths) {
|
|
250
|
-
const incrementPath = (str, number) => `${str}_${number}`;
|
|
251
|
-
let num = 1;
|
|
252
|
-
let newPath = incrementPath(p, num);
|
|
253
|
-
while (allPaths.includes(newPath)) {
|
|
254
|
-
newPath = incrementPath(p, num += 1);
|
|
255
|
-
}
|
|
256
|
-
return newPath;
|
|
257
|
-
}
|
|
258
250
|
|
|
259
251
|
/**
|
|
260
252
|
* e.g. [bar, bar/foo] => [bar_1, bar/foo]
|
|
@@ -268,7 +260,7 @@ class ComponentWriterMain {
|
|
|
268
260
|
const parentsOfOthersComps = componentWriterInstances.filter(({
|
|
269
261
|
writeToPath
|
|
270
262
|
}) => allDirs.find(d => d.startsWith(`${writeToPath}/`)));
|
|
271
|
-
const existingRootDirs =
|
|
263
|
+
const existingRootDirs = this.workspace.bitMap.getAllRootDirs();
|
|
272
264
|
const parentsOfOthersCompsDirs = parentsOfOthersComps.map(c => c.writeToPath);
|
|
273
265
|
const allPaths = [...existingRootDirs, ...parentsOfOthersCompsDirs];
|
|
274
266
|
|
|
@@ -276,7 +268,7 @@ class ComponentWriterMain {
|
|
|
276
268
|
// change the paths of all these parents root-dir to not collide with the children root-dir
|
|
277
269
|
parentsOfOthersComps.forEach(componentWriter => {
|
|
278
270
|
if (existingRootDirs.includes(componentWriter.writeToPath)) return; // component already exists.
|
|
279
|
-
const newPath =
|
|
271
|
+
const newPath = incrementPathRecursively(componentWriter.writeToPath, allPaths);
|
|
280
272
|
componentWriter.writeToPath = newPath;
|
|
281
273
|
});
|
|
282
274
|
|
|
@@ -287,7 +279,7 @@ class ComponentWriterMain {
|
|
|
287
279
|
const existingParent = existingRootDirs.find(d => d.startsWith(`${componentWriter.writeToPath}/`));
|
|
288
280
|
if (!existingParent) return;
|
|
289
281
|
if (existingRootDirs.includes(componentWriter.writeToPath)) return; // component already exists.
|
|
290
|
-
const newPath =
|
|
282
|
+
const newPath = incrementPathRecursively(componentWriter.writeToPath, allPaths);
|
|
291
283
|
componentWriter.writeToPath = newPath;
|
|
292
284
|
});
|
|
293
285
|
|
|
@@ -297,7 +289,7 @@ class ComponentWriterMain {
|
|
|
297
289
|
const existingChildren = existingRootDirs.find(d => componentWriter.writeToPath.startsWith(`${d}/`));
|
|
298
290
|
if (!existingChildren) return;
|
|
299
291
|
// we increment the existing one, because it is used to replace the base-path of the current component
|
|
300
|
-
const newPath =
|
|
292
|
+
const newPath = incrementPathRecursively(existingChildren, allPaths);
|
|
301
293
|
componentWriter.writeToPath = componentWriter.writeToPath.replace(existingChildren, newPath);
|
|
302
294
|
});
|
|
303
295
|
}
|
|
@@ -372,5 +364,14 @@ _defineProperty(ComponentWriterMain, "dependencies", [_install().InstallAspect,
|
|
|
372
364
|
_defineProperty(ComponentWriterMain, "runtime", _cli().MainRuntime);
|
|
373
365
|
_componentWriter2().ComponentWriterAspect.addRuntime(ComponentWriterMain);
|
|
374
366
|
var _default = exports.default = ComponentWriterMain;
|
|
367
|
+
function incrementPathRecursively(p, allPaths) {
|
|
368
|
+
const incrementPath = (str, number) => `${str}_${number}`;
|
|
369
|
+
let num = 1;
|
|
370
|
+
let newPath = incrementPath(p, num);
|
|
371
|
+
while (allPaths.includes(newPath)) {
|
|
372
|
+
newPath = incrementPath(p, num += 1);
|
|
373
|
+
}
|
|
374
|
+
return newPath;
|
|
375
|
+
}
|
|
375
376
|
|
|
376
377
|
//# sourceMappingURL=component-writer.main.runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_compiler","_install","_logger","_workspace","_bitError","_fsExtra","_interopRequireDefault","_lodash","_pMapSeries","path","_interopRequireWildcard","_mover","_utils","_path2","_dataToPersist","_configMerger","_componentWriter","_componentWriter2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","value","_toPropertyKey","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","ComponentWriterMain","constructor","installer","compiler","workspace","logger","mover","configMerge","consumer","writeMany","opts","components","debug","populateComponentsFilesToWrite","moveComponentsIfNeeded","persistComponentsData","skipUpdatingBitMap","writeBitMap","reasonForBitmapChange","installationError","compilationError","workspaceConfigUpdateResult","shouldUpdateWorkspaceConfig","updateDepsInWorkspaceConfig","skipDependencyInstallation","installPackagesGracefully","skipWriteConfigFiles","compileGracefully","installOpts","dedupe","updateExisting","import","writeConfigFiles","install","undefined","err","consoleFailure","message","error","compileOnWorkspace","skipWritingToFs","dataToPersist","DataToPersist","component","merge","addBasePath","getPath","persistAllToFS","writeComponentsParams","map","getWriteParamsOfOneComponent","componentWriterInstances","writeParams","ComponentWriter","fixDirsIfEqual","fixDirsIfNested","Promise","all","componentWriter","existingComponentMap","addComponentToBitMap","writeToPath","resetConfig","config","mapSeries","allDirs","c","duplicatedDirs","dir","d","uniqDuplicates","uniq","compDir","hasDuplication","compWriter","ownerName","id","scope","includes","split","startsWith","incrementPathRecursively","p","allPaths","incrementPath","str","number","num","newPath","parentsOfOthersComps","find","existingRootDirs","bitMap","getAllTrackDirs","parentsOfOthersCompsDirs","existingParent","existingChildren","replace","componentRootDir","pathNormalizeToLinux","getPathRelativeToConsumer","resolve","composeRelativeComponentPath","getParams","componentMap","getComponentIfExist","ignoreVersion","throwErrorWhenDirectoryNotEmpty","toAbsolutePath","writeConfig","rootDir","BitError","relativeWrittenPath","writtenPath","absoluteWrittenPath","absoluteWriteToPath","moveExistingComponent","componentDir","fs","pathExistsSync","isDir","isDirEmptySync","throwForExistingDir","provider","loggerMain","configMerger","createLogger","ComponentWriterAspect","exports","InstallAspect","CompilerAspect","LoggerAspect","WorkspaceAspect","MoverAspect","ConfigMergerAspect","MainRuntime","addRuntime","_default"],"sources":["component-writer.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { BitError } from '@teambit/bit-error';\nimport fs from 'fs-extra';\nimport { uniq } from 'lodash';\nimport mapSeries from 'p-map-series';\nimport * as path from 'path';\nimport { MoverAspect, MoverMain } from '@teambit/mover';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport { isDir, isDirEmptySync } from '@teambit/legacy/dist/utils';\nimport { PathLinuxRelative, pathNormalizeToLinux, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';\nimport ComponentMap from '@teambit/legacy/dist/consumer/bit-map/component-map';\nimport DataToPersist from '@teambit/legacy/dist/consumer/component/sources/data-to-persist';\nimport { ConfigMergerAspect, ConfigMergerMain, WorkspaceConfigUpdateResult } from '@teambit/config-merger';\nimport Consumer from '@teambit/legacy/dist/consumer/consumer';\nimport ComponentWriter, { ComponentWriterProps } from './component-writer';\nimport { ComponentWriterAspect } from './component-writer.aspect';\n\nexport interface ManyComponentsWriterParams {\n components: ConsumerComponent[];\n writeToPath?: string;\n throwForExistingDir?: boolean;\n writeConfig?: boolean;\n skipDependencyInstallation?: boolean;\n verbose?: boolean;\n resetConfig?: boolean;\n skipWritingToFs?: boolean;\n skipUpdatingBitMap?: boolean;\n skipWriteConfigFiles?: boolean;\n reasonForBitmapChange?: string; // optional. will be written in the bitmap-history-metadata\n shouldUpdateWorkspaceConfig?: boolean; // whether it should update dependencies policy (or leave conflicts) in workspace.jsonc\n}\n\nexport type ComponentWriterResults = {\n installationError?: Error;\n compilationError?: Error;\n workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult;\n};\n\nexport class ComponentWriterMain {\n constructor(\n private installer: InstallMain,\n private compiler: CompilerMain,\n private workspace: Workspace,\n private logger: Logger,\n private mover: MoverMain,\n private configMerge: ConfigMergerMain\n ) {}\n\n get consumer(): Consumer {\n return this.workspace.consumer;\n }\n\n async writeMany(opts: ManyComponentsWriterParams): Promise<ComponentWriterResults> {\n if (!opts.components.length) return {};\n this.logger.debug('writeMany, started');\n await this.populateComponentsFilesToWrite(opts);\n this.moveComponentsIfNeeded(opts);\n await this.persistComponentsData(opts);\n if (!opts.skipUpdatingBitMap) await this.consumer.writeBitMap(opts.reasonForBitmapChange);\n let installationError: Error | undefined;\n let compilationError: Error | undefined;\n let workspaceConfigUpdateResult: WorkspaceConfigUpdateResult | undefined;\n if (opts.shouldUpdateWorkspaceConfig) {\n workspaceConfigUpdateResult = await this.configMerge.updateDepsInWorkspaceConfig(opts.components);\n }\n if (!opts.skipDependencyInstallation) {\n installationError = await this.installPackagesGracefully(opts.skipWriteConfigFiles);\n // no point to compile if the installation is not running. the environment is not ready.\n compilationError = await this.compileGracefully();\n }\n this.logger.debug('writeMany, completed!');\n return { installationError, compilationError, workspaceConfigUpdateResult };\n }\n\n private async installPackagesGracefully(skipWriteConfigFiles = false): Promise<Error | undefined> {\n this.logger.debug('installPackagesGracefully, start installing packages');\n try {\n const installOpts = {\n dedupe: true,\n updateExisting: false,\n import: false,\n writeConfigFiles: !skipWriteConfigFiles,\n };\n await this.installer.install(undefined, installOpts);\n this.logger.debug('installPackagesGracefully, completed installing packages successfully');\n return undefined;\n } catch (err: any) {\n this.logger.consoleFailure(`installation failed with the following error: ${err.message}`);\n this.logger.error('installPackagesGracefully, package-installer found an error', err);\n return err;\n }\n }\n private async compileGracefully(): Promise<Error | undefined> {\n try {\n await this.compiler.compileOnWorkspace();\n return undefined;\n } catch (err: any) {\n this.logger.consoleFailure(`compilation failed with the following error: ${err.message}`);\n this.logger.error('compileGracefully, compiler found an error', err);\n return err;\n }\n }\n private async persistComponentsData(opts: ManyComponentsWriterParams) {\n if (opts.skipWritingToFs) return;\n const dataToPersist = new DataToPersist();\n opts.components.forEach((component) => dataToPersist.merge(component.dataToPersist));\n dataToPersist.addBasePath(this.consumer.getPath());\n await dataToPersist.persistAllToFS();\n }\n private async populateComponentsFilesToWrite(opts: ManyComponentsWriterParams) {\n const writeComponentsParams = opts.components.map((component) =>\n this.getWriteParamsOfOneComponent(component, opts)\n );\n const componentWriterInstances = writeComponentsParams.map((writeParams) => new ComponentWriter(writeParams));\n this.fixDirsIfEqual(componentWriterInstances);\n this.fixDirsIfNested(componentWriterInstances);\n // add componentMap entries into .bitmap before starting the process because steps like writing package-json\n // rely on .bitmap to determine whether a dependency exists and what's its origin\n await Promise.all(\n componentWriterInstances.map(async (componentWriter: ComponentWriter) => {\n componentWriter.existingComponentMap =\n componentWriter.existingComponentMap ||\n (await componentWriter.addComponentToBitMap(componentWriter.writeToPath));\n })\n );\n if (opts.resetConfig) {\n componentWriterInstances.forEach((componentWriter: ComponentWriter) => {\n delete componentWriter.existingComponentMap?.config;\n });\n }\n await mapSeries(componentWriterInstances, (componentWriter: ComponentWriter) =>\n componentWriter.populateComponentsFilesToWrite()\n );\n }\n\n /**\n * this started to be an issue once same-name different-scope is supported.\n * by default, the component-dir consist of the scope-name part of the scope-id, without the owner part.\n * as a result, it's possible that multiple components have the same name, same scope-name but different owner.\n * e.g. org1.ui/button and org2.ui/button. the component-dir for both is \"ui/button\".\n * in this case, we try to prefix the component-dir with the owner-name and if not possible, just increment it (ui/button_1)\n */\n private fixDirsIfEqual(componentWriterInstances: ComponentWriter[]) {\n const allDirs = componentWriterInstances.map((c) => c.writeToPath);\n const duplicatedDirs = allDirs.filter((dir) => allDirs.filter((d) => d === dir).length > 1);\n if (!duplicatedDirs.length) return;\n const uniqDuplicates = uniq(duplicatedDirs);\n uniqDuplicates.forEach((compDir) => {\n const hasDuplication = componentWriterInstances.filter((compWriter) => compWriter.writeToPath === compDir);\n hasDuplication.forEach((compWriter) => {\n const ownerName = compWriter.component.id.scope?.includes('.')\n ? compWriter.component.id.scope.split('.')[0]\n : undefined;\n if (ownerName && !compDir.startsWith(ownerName) && !allDirs.includes(`${ownerName}/${compDir}`)) {\n compWriter.writeToPath = `${ownerName}/${compDir}`;\n } else {\n compWriter.writeToPath = this.incrementPathRecursively(compWriter.writeToPath, allDirs);\n }\n allDirs.push(compWriter.writeToPath);\n });\n });\n }\n\n private incrementPathRecursively(p: string, allPaths: string[]) {\n const incrementPath = (str: string, number: number) => `${str}_${number}`;\n let num = 1;\n let newPath = incrementPath(p, num);\n while (allPaths.includes(newPath)) {\n newPath = incrementPath(p, (num += 1));\n }\n return newPath;\n }\n\n /**\n * e.g. [bar, bar/foo] => [bar_1, bar/foo]\n * otherwise, the bar/foo component will be saved inside \"bar\" component.\n * in case bar_1 is taken, increment to bar_2 until the name is available.\n */\n private fixDirsIfNested(componentWriterInstances: ComponentWriter[]) {\n const allDirs = componentWriterInstances.map((c) => c.writeToPath);\n\n // get all components that their root-dir is a parent of other components root-dir.\n const parentsOfOthersComps = componentWriterInstances.filter(({ writeToPath }) =>\n allDirs.find((d) => d.startsWith(`${writeToPath}/`))\n );\n const existingRootDirs = Object.keys(this.consumer.bitMap.getAllTrackDirs());\n const parentsOfOthersCompsDirs = parentsOfOthersComps.map((c) => c.writeToPath);\n const allPaths: PathLinuxRelative[] = [...existingRootDirs, ...parentsOfOthersCompsDirs];\n\n // this is when writing multiple components and some of them are parents of the others.\n // change the paths of all these parents root-dir to not collide with the children root-dir\n parentsOfOthersComps.forEach((componentWriter) => {\n if (existingRootDirs.includes(componentWriter.writeToPath)) return; // component already exists.\n const newPath = this.incrementPathRecursively(componentWriter.writeToPath, allPaths);\n componentWriter.writeToPath = newPath;\n });\n\n // this part is when a component's rootDir we about to write is a children of an existing rootDir.\n // e.g. we're now writing \"foo\", when an existing component has \"foo/bar\" as the rootDir.\n // in this case, we change \"foo\" to be \"foo_1\".\n componentWriterInstances.forEach((componentWriter) => {\n const existingParent = existingRootDirs.find((d) => d.startsWith(`${componentWriter.writeToPath}/`));\n if (!existingParent) return;\n if (existingRootDirs.includes(componentWriter.writeToPath)) return; // component already exists.\n const newPath = this.incrementPathRecursively(componentWriter.writeToPath, allPaths);\n componentWriter.writeToPath = newPath;\n });\n\n // this part if when for example an existing rootDir is \"comp1\" and currently written component is \"comp1/foo\".\n // obviously we don't want to change existing dirs. we change the \"comp1/foo\" to be \"comp1_1/foo\".\n componentWriterInstances.forEach((componentWriter) => {\n const existingChildren = existingRootDirs.find((d) => componentWriter.writeToPath.startsWith(`${d}/`));\n if (!existingChildren) return;\n // we increment the existing one, because it is used to replace the base-path of the current component\n const newPath = this.incrementPathRecursively(existingChildren, allPaths);\n componentWriter.writeToPath = componentWriter.writeToPath.replace(existingChildren, newPath);\n });\n }\n\n private getWriteParamsOfOneComponent(\n component: ConsumerComponent,\n opts: ManyComponentsWriterParams\n ): ComponentWriterProps {\n const componentRootDir: PathLinuxRelative = opts.writeToPath\n ? pathNormalizeToLinux(this.consumer.getPathRelativeToConsumer(path.resolve(opts.writeToPath)))\n : this.consumer.composeRelativeComponentPath(component.id);\n const getParams = () => {\n if (!this.consumer) {\n return {};\n }\n // components can't be saved with multiple versions, so we can ignore the version to find the component in bit.map\n const componentMap = this.consumer.bitMap.getComponentIfExist(component.id, {\n ignoreVersion: true,\n });\n this.throwErrorWhenDirectoryNotEmpty(this.consumer.toAbsolutePath(componentRootDir), componentMap, opts);\n return {\n existingComponentMap: componentMap,\n };\n };\n return {\n workspace: this.workspace,\n bitMap: this.consumer.bitMap,\n component,\n writeToPath: componentRootDir,\n writeConfig: opts.writeConfig,\n skipUpdatingBitMap: opts.skipUpdatingBitMap,\n ...getParams(),\n };\n }\n private moveComponentsIfNeeded(opts: ManyComponentsWriterParams) {\n if (opts.writeToPath && this.consumer) {\n opts.components.forEach((component) => {\n const componentMap = component.componentMap as ComponentMap;\n if (!componentMap.rootDir) {\n throw new BitError(`unable to use \"--path\" flag.\nto move individual files, use bit move.\nto move all component files to a different directory, run bit remove and then bit import --path`);\n }\n const relativeWrittenPath = component.writtenPath;\n // @ts-ignore relativeWrittenPath is set at this point\n const absoluteWrittenPath = this.consumer.toAbsolutePath(relativeWrittenPath);\n // @ts-ignore this.writeToPath is set at this point\n const absoluteWriteToPath = path.resolve(opts.writeToPath); // don't use consumer.toAbsolutePath, it might be an inner dir\n if (relativeWrittenPath && absoluteWrittenPath !== absoluteWriteToPath) {\n this.mover.moveExistingComponent(component, absoluteWrittenPath, absoluteWriteToPath);\n }\n });\n }\n }\n private throwErrorWhenDirectoryNotEmpty(\n componentDir: PathOsBasedAbsolute,\n componentMap: ComponentMap | null | undefined,\n opts: ManyComponentsWriterParams\n ) {\n if (opts.skipWritingToFs) return;\n // if not writeToPath specified, it goes to the default directory. When componentMap exists, the\n // component is not new, and it's ok to override the existing directory.\n if (!opts.writeToPath && componentMap) return;\n // if writeToPath specified and that directory is already used for that component, it's ok to override\n if (opts.writeToPath && componentMap && componentMap.rootDir && componentMap.rootDir === opts.writeToPath) return;\n\n if (fs.pathExistsSync(componentDir)) {\n if (!isDir(componentDir)) {\n throw new BitError(`unable to import to ${componentDir} because it's a file`);\n }\n if (!isDirEmptySync(componentDir) && opts.throwForExistingDir) {\n throw new BitError(\n `unable to import to ${componentDir}, the directory is not empty. use --override flag to delete the directory and then import`\n );\n }\n }\n }\n\n static slots = [];\n static dependencies = [InstallAspect, CompilerAspect, LoggerAspect, WorkspaceAspect, MoverAspect, ConfigMergerAspect];\n static runtime = MainRuntime;\n static async provider([install, compiler, loggerMain, workspace, mover, configMerger]: [\n InstallMain,\n CompilerMain,\n LoggerMain,\n Workspace,\n MoverMain,\n ConfigMergerMain\n ]) {\n const logger = loggerMain.createLogger(ComponentWriterAspect.id);\n return new ComponentWriterMain(install, compiler, workspace, logger, mover, configMerger);\n }\n}\n\nComponentWriterAspect.addRuntime(ComponentWriterMain);\n\nexport default ComponentWriterMain;\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAA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MACH;IACF;EACF;EAKA,aAAaM,QAAQA,CAAC,CAAC1F,OAAO,EAAE9B,QAAQ,EAAEyH,UAAU,EAAExH,SAAS,EAAEE,KAAK,EAAEuH,YAAY,CAOnF,EAAE;IACD,MAAMxH,MAAM,GAAGuH,UAAU,CAACE,YAAY,CAACC,yCAAqB,CAACnD,EAAE,CAAC;IAChE,OAAO,IAAI5E,mBAAmB,CAACiC,OAAO,EAAE9B,QAAQ,EAAEC,SAAS,EAAEC,MAAM,EAAEC,KAAK,EAAEuH,YAAY,CAAC;EAC3F;AACF;AAACG,OAAA,CAAAhI,mBAAA,GAAAA,mBAAA;AAAAd,eAAA,CA7QYc,mBAAmB,WA+Pf,EAAE;AAAAd,eAAA,CA/PNc,mBAAmB,kBAgQR,CAACiI,wBAAa,EAAEC,0BAAc,EAAEC,sBAAY,EAAEC,4BAAe,EAAEC,oBAAW,EAAEC,kCAAkB,CAAC;AAAApJ,eAAA,CAhQ1Gc,mBAAmB,aAiQbuI,kBAAW;AAc9BR,yCAAqB,CAACS,UAAU,CAACxI,mBAAmB,CAAC;AAAC,IAAAyI,QAAA,GAAAT,OAAA,CAAA1K,OAAA,GAEvC0C,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_compiler","_install","_logger","_workspace","_bitError","_fsExtra","_interopRequireDefault","_lodash","_pMapSeries","path","_interopRequireWildcard","_mover","_utils","_path2","_dataToPersist","_configMerger","_componentWriter","_componentWriter2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","value","_toPropertyKey","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","ComponentWriterMain","constructor","installer","compiler","workspace","logger","mover","configMerge","consumer","writeMany","opts","components","debug","populateComponentsFilesToWrite","moveComponentsIfNeeded","persistComponentsData","skipUpdatingBitMap","writeBitMap","reasonForBitmapChange","installationError","compilationError","workspaceConfigUpdateResult","shouldUpdateWorkspaceConfig","updateDepsInWorkspaceConfig","skipDependencyInstallation","installPackagesGracefully","skipWriteConfigFiles","compileGracefully","installOpts","dedupe","updateExisting","import","writeConfigFiles","install","undefined","err","consoleFailure","message","error","compileOnWorkspace","skipWritingToFs","dataToPersist","DataToPersist","component","merge","addBasePath","getPath","persistAllToFS","writeComponentsParams","map","getWriteParamsOfOneComponent","componentWriterInstances","writeParams","ComponentWriter","fixDirsIfEqual","fixDirsIfNested","Promise","all","componentWriter","existingComponentMap","addComponentToBitMap","writeToPath","resetConfig","config","mapSeries","allDirs","c","duplicatedDirs","dir","d","uniqDuplicates","uniq","compDir","hasDuplication","compWriter","ownerName","id","scope","includes","split","startsWith","incrementPathRecursively","parentsOfOthersComps","find","existingRootDirs","bitMap","getAllRootDirs","parentsOfOthersCompsDirs","allPaths","newPath","existingParent","existingChildren","replace","componentRootDir","pathNormalizeToLinux","getPathRelativeToConsumer","resolve","composeRelativeComponentPath","getParams","componentMap","getComponentIfExist","ignoreVersion","throwErrorWhenDirectoryNotEmpty","toAbsolutePath","writeConfig","rootDir","BitError","relativeWrittenPath","writtenPath","absoluteWrittenPath","absoluteWriteToPath","moveExistingComponent","componentDir","fs","pathExistsSync","isDir","isDirEmptySync","throwForExistingDir","provider","loggerMain","configMerger","createLogger","ComponentWriterAspect","exports","InstallAspect","CompilerAspect","LoggerAspect","WorkspaceAspect","MoverAspect","ConfigMergerAspect","MainRuntime","addRuntime","_default","p","incrementPath","str","number","num"],"sources":["component-writer.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { BitError } from '@teambit/bit-error';\nimport fs from 'fs-extra';\nimport { uniq } from 'lodash';\nimport mapSeries from 'p-map-series';\nimport * as path from 'path';\nimport { MoverAspect, MoverMain } from '@teambit/mover';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport { isDir, isDirEmptySync } from '@teambit/legacy/dist/utils';\nimport { PathLinuxRelative, pathNormalizeToLinux, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';\nimport ComponentMap from '@teambit/legacy/dist/consumer/bit-map/component-map';\nimport DataToPersist from '@teambit/legacy/dist/consumer/component/sources/data-to-persist';\nimport { ConfigMergerAspect, ConfigMergerMain, WorkspaceConfigUpdateResult } from '@teambit/config-merger';\nimport Consumer from '@teambit/legacy/dist/consumer/consumer';\nimport ComponentWriter, { ComponentWriterProps } from './component-writer';\nimport { ComponentWriterAspect } from './component-writer.aspect';\n\nexport interface ManyComponentsWriterParams {\n components: ConsumerComponent[];\n writeToPath?: string;\n throwForExistingDir?: boolean;\n writeConfig?: boolean;\n skipDependencyInstallation?: boolean;\n verbose?: boolean;\n resetConfig?: boolean;\n skipWritingToFs?: boolean;\n skipUpdatingBitMap?: boolean;\n skipWriteConfigFiles?: boolean;\n reasonForBitmapChange?: string; // optional. will be written in the bitmap-history-metadata\n shouldUpdateWorkspaceConfig?: boolean; // whether it should update dependencies policy (or leave conflicts) in workspace.jsonc\n}\n\nexport type ComponentWriterResults = {\n installationError?: Error;\n compilationError?: Error;\n workspaceConfigUpdateResult?: WorkspaceConfigUpdateResult;\n};\n\nexport class ComponentWriterMain {\n constructor(\n private installer: InstallMain,\n private compiler: CompilerMain,\n private workspace: Workspace,\n private logger: Logger,\n private mover: MoverMain,\n private configMerge: ConfigMergerMain\n ) {}\n\n get consumer(): Consumer {\n return this.workspace.consumer;\n }\n\n async writeMany(opts: ManyComponentsWriterParams): Promise<ComponentWriterResults> {\n if (!opts.components.length) return {};\n this.logger.debug('writeMany, started');\n await this.populateComponentsFilesToWrite(opts);\n this.moveComponentsIfNeeded(opts);\n await this.persistComponentsData(opts);\n if (!opts.skipUpdatingBitMap) await this.consumer.writeBitMap(opts.reasonForBitmapChange);\n let installationError: Error | undefined;\n let compilationError: Error | undefined;\n let workspaceConfigUpdateResult: WorkspaceConfigUpdateResult | undefined;\n if (opts.shouldUpdateWorkspaceConfig) {\n workspaceConfigUpdateResult = await this.configMerge.updateDepsInWorkspaceConfig(opts.components);\n }\n if (!opts.skipDependencyInstallation) {\n installationError = await this.installPackagesGracefully(opts.skipWriteConfigFiles);\n // no point to compile if the installation is not running. the environment is not ready.\n compilationError = await this.compileGracefully();\n }\n this.logger.debug('writeMany, completed!');\n return { installationError, compilationError, workspaceConfigUpdateResult };\n }\n\n private async installPackagesGracefully(skipWriteConfigFiles = false): Promise<Error | undefined> {\n this.logger.debug('installPackagesGracefully, start installing packages');\n try {\n const installOpts = {\n dedupe: true,\n updateExisting: false,\n import: false,\n writeConfigFiles: !skipWriteConfigFiles,\n };\n await this.installer.install(undefined, installOpts);\n this.logger.debug('installPackagesGracefully, completed installing packages successfully');\n return undefined;\n } catch (err: any) {\n this.logger.consoleFailure(`installation failed with the following error: ${err.message}`);\n this.logger.error('installPackagesGracefully, package-installer found an error', err);\n return err;\n }\n }\n private async compileGracefully(): Promise<Error | undefined> {\n try {\n await this.compiler.compileOnWorkspace();\n return undefined;\n } catch (err: any) {\n this.logger.consoleFailure(`compilation failed with the following error: ${err.message}`);\n this.logger.error('compileGracefully, compiler found an error', err);\n return err;\n }\n }\n private async persistComponentsData(opts: ManyComponentsWriterParams) {\n if (opts.skipWritingToFs) return;\n const dataToPersist = new DataToPersist();\n opts.components.forEach((component) => dataToPersist.merge(component.dataToPersist));\n dataToPersist.addBasePath(this.consumer.getPath());\n await dataToPersist.persistAllToFS();\n }\n private async populateComponentsFilesToWrite(opts: ManyComponentsWriterParams) {\n const writeComponentsParams = opts.components.map((component) =>\n this.getWriteParamsOfOneComponent(component, opts)\n );\n const componentWriterInstances = writeComponentsParams.map((writeParams) => new ComponentWriter(writeParams));\n this.fixDirsIfEqual(componentWriterInstances);\n this.fixDirsIfNested(componentWriterInstances);\n // add componentMap entries into .bitmap before starting the process because steps like writing package-json\n // rely on .bitmap to determine whether a dependency exists and what's its origin\n await Promise.all(\n componentWriterInstances.map(async (componentWriter: ComponentWriter) => {\n componentWriter.existingComponentMap =\n componentWriter.existingComponentMap ||\n (await componentWriter.addComponentToBitMap(componentWriter.writeToPath));\n })\n );\n if (opts.resetConfig) {\n componentWriterInstances.forEach((componentWriter: ComponentWriter) => {\n delete componentWriter.existingComponentMap?.config;\n });\n }\n await mapSeries(componentWriterInstances, (componentWriter: ComponentWriter) =>\n componentWriter.populateComponentsFilesToWrite()\n );\n }\n\n /**\n * this started to be an issue once same-name different-scope is supported.\n * by default, the component-dir consist of the scope-name part of the scope-id, without the owner part.\n * as a result, it's possible that multiple components have the same name, same scope-name but different owner.\n * e.g. org1.ui/button and org2.ui/button. the component-dir for both is \"ui/button\".\n * in this case, we try to prefix the component-dir with the owner-name and if not possible, just increment it (ui/button_1)\n */\n private fixDirsIfEqual(componentWriterInstances: ComponentWriter[]) {\n const allDirs = componentWriterInstances.map((c) => c.writeToPath);\n const duplicatedDirs = allDirs.filter((dir) => allDirs.filter((d) => d === dir).length > 1);\n if (!duplicatedDirs.length) return;\n const uniqDuplicates = uniq(duplicatedDirs);\n uniqDuplicates.forEach((compDir) => {\n const hasDuplication = componentWriterInstances.filter((compWriter) => compWriter.writeToPath === compDir);\n hasDuplication.forEach((compWriter) => {\n const ownerName = compWriter.component.id.scope?.includes('.')\n ? compWriter.component.id.scope.split('.')[0]\n : undefined;\n if (ownerName && !compDir.startsWith(ownerName) && !allDirs.includes(`${ownerName}/${compDir}`)) {\n compWriter.writeToPath = `${ownerName}/${compDir}`;\n } else {\n compWriter.writeToPath = incrementPathRecursively(compWriter.writeToPath, allDirs);\n }\n allDirs.push(compWriter.writeToPath);\n });\n });\n }\n\n /**\n * e.g. [bar, bar/foo] => [bar_1, bar/foo]\n * otherwise, the bar/foo component will be saved inside \"bar\" component.\n * in case bar_1 is taken, increment to bar_2 until the name is available.\n */\n private fixDirsIfNested(componentWriterInstances: ComponentWriter[]) {\n const allDirs = componentWriterInstances.map((c) => c.writeToPath);\n\n // get all components that their root-dir is a parent of other components root-dir.\n const parentsOfOthersComps = componentWriterInstances.filter(({ writeToPath }) =>\n allDirs.find((d) => d.startsWith(`${writeToPath}/`))\n );\n const existingRootDirs = this.workspace.bitMap.getAllRootDirs();\n const parentsOfOthersCompsDirs = parentsOfOthersComps.map((c) => c.writeToPath);\n const allPaths: PathLinuxRelative[] = [...existingRootDirs, ...parentsOfOthersCompsDirs];\n\n // this is when writing multiple components and some of them are parents of the others.\n // change the paths of all these parents root-dir to not collide with the children root-dir\n parentsOfOthersComps.forEach((componentWriter) => {\n if (existingRootDirs.includes(componentWriter.writeToPath)) return; // component already exists.\n const newPath = incrementPathRecursively(componentWriter.writeToPath, allPaths);\n componentWriter.writeToPath = newPath;\n });\n\n // this part is when a component's rootDir we about to write is a children of an existing rootDir.\n // e.g. we're now writing \"foo\", when an existing component has \"foo/bar\" as the rootDir.\n // in this case, we change \"foo\" to be \"foo_1\".\n componentWriterInstances.forEach((componentWriter) => {\n const existingParent = existingRootDirs.find((d) => d.startsWith(`${componentWriter.writeToPath}/`));\n if (!existingParent) return;\n if (existingRootDirs.includes(componentWriter.writeToPath)) return; // component already exists.\n const newPath = incrementPathRecursively(componentWriter.writeToPath, allPaths);\n componentWriter.writeToPath = newPath;\n });\n\n // this part if when for example an existing rootDir is \"comp1\" and currently written component is \"comp1/foo\".\n // obviously we don't want to change existing dirs. we change the \"comp1/foo\" to be \"comp1_1/foo\".\n componentWriterInstances.forEach((componentWriter) => {\n const existingChildren = existingRootDirs.find((d) => componentWriter.writeToPath.startsWith(`${d}/`));\n if (!existingChildren) return;\n // we increment the existing one, because it is used to replace the base-path of the current component\n const newPath = incrementPathRecursively(existingChildren, allPaths);\n componentWriter.writeToPath = componentWriter.writeToPath.replace(existingChildren, newPath);\n });\n }\n\n private getWriteParamsOfOneComponent(\n component: ConsumerComponent,\n opts: ManyComponentsWriterParams\n ): ComponentWriterProps {\n const componentRootDir: PathLinuxRelative = opts.writeToPath\n ? pathNormalizeToLinux(this.consumer.getPathRelativeToConsumer(path.resolve(opts.writeToPath)))\n : this.consumer.composeRelativeComponentPath(component.id);\n const getParams = () => {\n if (!this.consumer) {\n return {};\n }\n // components can't be saved with multiple versions, so we can ignore the version to find the component in bit.map\n const componentMap = this.consumer.bitMap.getComponentIfExist(component.id, {\n ignoreVersion: true,\n });\n this.throwErrorWhenDirectoryNotEmpty(this.consumer.toAbsolutePath(componentRootDir), componentMap, opts);\n return {\n existingComponentMap: componentMap,\n };\n };\n return {\n workspace: this.workspace,\n bitMap: this.consumer.bitMap,\n component,\n writeToPath: componentRootDir,\n writeConfig: opts.writeConfig,\n skipUpdatingBitMap: opts.skipUpdatingBitMap,\n ...getParams(),\n };\n }\n private moveComponentsIfNeeded(opts: ManyComponentsWriterParams) {\n if (opts.writeToPath && this.consumer) {\n opts.components.forEach((component) => {\n const componentMap = component.componentMap as ComponentMap;\n if (!componentMap.rootDir) {\n throw new BitError(`unable to use \"--path\" flag.\nto move individual files, use bit move.\nto move all component files to a different directory, run bit remove and then bit import --path`);\n }\n const relativeWrittenPath = component.writtenPath;\n // @ts-ignore relativeWrittenPath is set at this point\n const absoluteWrittenPath = this.consumer.toAbsolutePath(relativeWrittenPath);\n // @ts-ignore this.writeToPath is set at this point\n const absoluteWriteToPath = path.resolve(opts.writeToPath); // don't use consumer.toAbsolutePath, it might be an inner dir\n if (relativeWrittenPath && absoluteWrittenPath !== absoluteWriteToPath) {\n this.mover.moveExistingComponent(component, absoluteWrittenPath, absoluteWriteToPath);\n }\n });\n }\n }\n private throwErrorWhenDirectoryNotEmpty(\n componentDir: PathOsBasedAbsolute,\n componentMap: ComponentMap | null | undefined,\n opts: ManyComponentsWriterParams\n ) {\n if (opts.skipWritingToFs) return;\n // if not writeToPath specified, it goes to the default directory. When componentMap exists, the\n // component is not new, and it's ok to override the existing directory.\n if (!opts.writeToPath && componentMap) return;\n // if writeToPath specified and that directory is already used for that component, it's ok to override\n if (opts.writeToPath && componentMap && componentMap.rootDir && componentMap.rootDir === opts.writeToPath) return;\n\n if (fs.pathExistsSync(componentDir)) {\n if (!isDir(componentDir)) {\n throw new BitError(`unable to import to ${componentDir} because it's a file`);\n }\n if (!isDirEmptySync(componentDir) && opts.throwForExistingDir) {\n throw new BitError(\n `unable to import to ${componentDir}, the directory is not empty. use --override flag to delete the directory and then import`\n );\n }\n }\n }\n\n static slots = [];\n static dependencies = [InstallAspect, CompilerAspect, LoggerAspect, WorkspaceAspect, MoverAspect, ConfigMergerAspect];\n static runtime = MainRuntime;\n static async provider([install, compiler, loggerMain, workspace, mover, configMerger]: [\n InstallMain,\n CompilerMain,\n LoggerMain,\n Workspace,\n MoverMain,\n ConfigMergerMain\n ]) {\n const logger = loggerMain.createLogger(ComponentWriterAspect.id);\n return new ComponentWriterMain(install, compiler, workspace, logger, mover, configMerger);\n }\n}\n\nComponentWriterAspect.addRuntime(ComponentWriterMain);\n\nexport default ComponentWriterMain;\n\nexport function incrementPathRecursively(p: string, allPaths: string[]) {\n const incrementPath = (str: string, number: number) => `${str}_${number}`;\n let num = 1;\n let newPath = incrementPath(p, num);\n while (allPaths.includes(newPath)) {\n newPath = incrementPath(p, (num += 1));\n }\n return newPath;\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,SAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;E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tP1Gc,mBAAmB,aAuPbkI,kBAAW;AAc9BR,yCAAqB,CAACS,UAAU,CAACnI,mBAAmB,CAAC;AAAC,IAAAoI,QAAA,GAAAT,OAAA,CAAArK,OAAA,GAEvC0C,mBAAmB;AAE3B,SAASiF,wBAAwBA,CAACoD,CAAS,EAAE7C,QAAkB,EAAE;EACtE,MAAM8C,aAAa,GAAGA,CAACC,GAAW,EAAEC,MAAc,KAAM,GAAED,GAAI,IAAGC,MAAO,EAAC;EACzE,IAAIC,GAAG,GAAG,CAAC;EACX,IAAIhD,OAAO,GAAG6C,aAAa,CAACD,CAAC,EAAEI,GAAG,CAAC;EACnC,OAAOjD,QAAQ,CAACV,QAAQ,CAACW,OAAO,CAAC,EAAE;IACjCA,OAAO,GAAG6C,aAAa,CAACD,CAAC,EAAGI,GAAG,IAAI,CAAE,CAAC;EACxC;EACA,OAAOhD,OAAO;AAChB","ignoreList":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentWriterAspect } from './component-writer.aspect';
|
|
2
2
|
export type { ComponentWriterMain, ComponentWriterResults, ManyComponentsWriterParams, } from './component-writer.main.runtime';
|
|
3
|
+
export { incrementPathRecursively } from './component-writer.main.runtime';
|
|
3
4
|
export default ComponentWriterAspect;
|
|
4
5
|
export { ComponentWriterAspect };
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,12 @@ Object.defineProperty(exports, "ComponentWriterAspect", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
exports.default = void 0;
|
|
13
|
+
Object.defineProperty(exports, "incrementPathRecursively", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _componentWriterMain().incrementPathRecursively;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
13
19
|
function _componentWriter() {
|
|
14
20
|
const data = require("./component-writer.aspect");
|
|
15
21
|
_componentWriter = function () {
|
|
@@ -17,6 +23,13 @@ function _componentWriter() {
|
|
|
17
23
|
};
|
|
18
24
|
return data;
|
|
19
25
|
}
|
|
26
|
+
function _componentWriterMain() {
|
|
27
|
+
const data = require("./component-writer.main.runtime");
|
|
28
|
+
_componentWriterMain = function () {
|
|
29
|
+
return data;
|
|
30
|
+
};
|
|
31
|
+
return data;
|
|
32
|
+
}
|
|
20
33
|
var _default = exports.default = _componentWriter().ComponentWriterAspect;
|
|
21
34
|
|
|
22
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_componentWriter","data","require","_default","exports","default","ComponentWriterAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentWriterAspect } from './component-writer.aspect';\n\nexport type {\n ComponentWriterMain,\n ComponentWriterResults,\n ManyComponentsWriterParams,\n} from './component-writer.main.runtime';\nexport default ComponentWriterAspect;\nexport { ComponentWriterAspect };\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_componentWriter","data","require","_componentWriterMain","_default","exports","default","ComponentWriterAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentWriterAspect } from './component-writer.aspect';\n\nexport type {\n ComponentWriterMain,\n ComponentWriterResults,\n ManyComponentsWriterParams,\n} from './component-writer.main.runtime';\nexport { incrementPathRecursively } from './component-writer.main.runtime';\nexport default ComponentWriterAspect;\nexport { ComponentWriterAspect };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,SAAAA,iBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,gBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAOA,SAAAE,qBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,oBAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2E,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAC5DC,wCAAqB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-writer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.206",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/component-writer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "component-writer",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.206"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"@teambit/component-id": "1.2.0",
|
|
18
18
|
"@teambit/component-version": "1.0.3",
|
|
19
19
|
"@teambit/cli": "0.0.858",
|
|
20
|
-
"@teambit/compiler": "1.0.
|
|
21
|
-
"@teambit/config-merger": "0.0.
|
|
22
|
-
"@teambit/install": "1.0.
|
|
20
|
+
"@teambit/compiler": "1.0.206",
|
|
21
|
+
"@teambit/config-merger": "0.0.73",
|
|
22
|
+
"@teambit/install": "1.0.206",
|
|
23
23
|
"@teambit/logger": "0.0.951",
|
|
24
|
-
"@teambit/mover": "1.0.
|
|
25
|
-
"@teambit/workspace": "1.0.
|
|
24
|
+
"@teambit/mover": "1.0.206",
|
|
25
|
+
"@teambit/workspace": "1.0.206"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/fs-extra": "9.0.7",
|
|
File without changes
|