@teambit/forking 1.0.271 → 1.0.273
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_forking-preview.js +1 -1
- package/artifacts/schema.json +52 -52
- package/dist/forking.main.runtime.d.ts +2 -1
- package/dist/forking.main.runtime.js +4 -1
- package/dist/forking.main.runtime.js.map +1 -1
- package/dist/{preview-1715656872728.js → preview-1715829635662.js} +2 -2
- package/dist/scope-fork.cmd.js +3 -3
- package/dist/scope-fork.cmd.js.map +1 -1
- package/package.json +12 -12
@@ -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/forking@1.0.
|
3
|
+
<testsuite name="teambit.component/forking@1.0.273" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={60627:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.273",homepage:"https://bit.cloud/teambit/component/forking",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const p=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/forking.svg"}));p.__bit_component=n,t.Logo=p},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>l,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>f});var t=o(60627);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var a={},s="wrapper";function f(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(s,c({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}f.isMDXComponent=!0;const d=[t],u=[e],l={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
@@ -468,7 +468,7 @@
|
|
468
468
|
"raw": "/**\n * fork all components of the given scope\n */",
|
469
469
|
"comment": "fork all components of the given scope"
|
470
470
|
},
|
471
|
-
"signature": "(method) ForkingMain.forkScope(originalScope: string,
|
471
|
+
"signature": "(method) ForkingMain.forkScope(originalScope: string, newOptionalScope?: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
|
472
472
|
"name": "forkScope",
|
473
473
|
"params": [
|
474
474
|
{
|
@@ -498,17 +498,17 @@
|
|
498
498
|
"line": 189,
|
499
499
|
"character": 5
|
500
500
|
},
|
501
|
-
"name": "
|
501
|
+
"name": "newOptionalScope",
|
502
502
|
"type": {
|
503
503
|
"__schema": "KeywordTypeSchema",
|
504
504
|
"location": {
|
505
505
|
"filePath": "forking.main.runtime.ts",
|
506
506
|
"line": 189,
|
507
|
-
"character":
|
507
|
+
"character": 24
|
508
508
|
},
|
509
509
|
"name": "string"
|
510
510
|
},
|
511
|
-
"isOptional":
|
511
|
+
"isOptional": true,
|
512
512
|
"isSpread": false
|
513
513
|
},
|
514
514
|
{
|
@@ -594,7 +594,7 @@
|
|
594
594
|
"__schema": "VariableLikeSchema",
|
595
595
|
"location": {
|
596
596
|
"filePath": "forking.main.runtime.ts",
|
597
|
-
"line":
|
597
|
+
"line": 352,
|
598
598
|
"character": 3
|
599
599
|
},
|
600
600
|
"signature": "(property) ForkingMain.slots: never[]",
|
@@ -603,7 +603,7 @@
|
|
603
603
|
"__schema": "InferenceTypeSchema",
|
604
604
|
"location": {
|
605
605
|
"filePath": "forking.main.runtime.ts",
|
606
|
-
"line":
|
606
|
+
"line": 352,
|
607
607
|
"character": 3
|
608
608
|
},
|
609
609
|
"type": "never[]"
|
@@ -615,7 +615,7 @@
|
|
615
615
|
"__schema": "VariableLikeSchema",
|
616
616
|
"location": {
|
617
617
|
"filePath": "forking.main.runtime.ts",
|
618
|
-
"line":
|
618
|
+
"line": 353,
|
619
619
|
"character": 3
|
620
620
|
},
|
621
621
|
"signature": "(property) ForkingMain.dependencies: Aspect[]",
|
@@ -624,7 +624,7 @@
|
|
624
624
|
"__schema": "InferenceTypeSchema",
|
625
625
|
"location": {
|
626
626
|
"filePath": "forking.main.runtime.ts",
|
627
|
-
"line":
|
627
|
+
"line": 353,
|
628
628
|
"character": 3
|
629
629
|
},
|
630
630
|
"type": "Aspect[]"
|
@@ -636,7 +636,7 @@
|
|
636
636
|
"__schema": "VariableLikeSchema",
|
637
637
|
"location": {
|
638
638
|
"filePath": "forking.main.runtime.ts",
|
639
|
-
"line":
|
639
|
+
"line": 364,
|
640
640
|
"character": 3
|
641
641
|
},
|
642
642
|
"signature": "(property) ForkingMain.runtime: RuntimeDefinition",
|
@@ -645,7 +645,7 @@
|
|
645
645
|
"__schema": "InferenceTypeSchema",
|
646
646
|
"location": {
|
647
647
|
"filePath": "forking.main.runtime.ts",
|
648
|
-
"line":
|
648
|
+
"line": 364,
|
649
649
|
"character": 3
|
650
650
|
},
|
651
651
|
"type": "RuntimeDefinition"
|
@@ -657,7 +657,7 @@
|
|
657
657
|
"__schema": "FunctionLikeSchema",
|
658
658
|
"location": {
|
659
659
|
"filePath": "forking.main.runtime.ts",
|
660
|
-
"line":
|
660
|
+
"line": 365,
|
661
661
|
"character": 3
|
662
662
|
},
|
663
663
|
"signature": "(method) ForkingMain.provider([cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
|
@@ -667,7 +667,7 @@
|
|
667
667
|
"__schema": "ParameterSchema",
|
668
668
|
"location": {
|
669
669
|
"filePath": "forking.main.runtime.ts",
|
670
|
-
"line":
|
670
|
+
"line": 365,
|
671
671
|
"character": 25
|
672
672
|
},
|
673
673
|
"name": "[ cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
|
@@ -675,7 +675,7 @@
|
|
675
675
|
"__schema": "TupleTypeSchema",
|
676
676
|
"location": {
|
677
677
|
"filePath": "forking.main.runtime.ts",
|
678
|
-
"line":
|
678
|
+
"line": 375,
|
679
679
|
"character": 6
|
680
680
|
},
|
681
681
|
"elements": [
|
@@ -683,7 +683,7 @@
|
|
683
683
|
"__schema": "TypeRefSchema",
|
684
684
|
"location": {
|
685
685
|
"filePath": "forking.main.runtime.ts",
|
686
|
-
"line":
|
686
|
+
"line": 376,
|
687
687
|
"character": 5
|
688
688
|
},
|
689
689
|
"name": "CLIMain",
|
@@ -696,7 +696,7 @@
|
|
696
696
|
"__schema": "TypeRefSchema",
|
697
697
|
"location": {
|
698
698
|
"filePath": "forking.main.runtime.ts",
|
699
|
-
"line":
|
699
|
+
"line": 377,
|
700
700
|
"character": 5
|
701
701
|
},
|
702
702
|
"name": "Workspace",
|
@@ -709,7 +709,7 @@
|
|
709
709
|
"__schema": "TypeRefSchema",
|
710
710
|
"location": {
|
711
711
|
"filePath": "forking.main.runtime.ts",
|
712
|
-
"line":
|
712
|
+
"line": 378,
|
713
713
|
"character": 5
|
714
714
|
},
|
715
715
|
"name": "DependencyResolverMain",
|
@@ -722,7 +722,7 @@
|
|
722
722
|
"__schema": "TypeRefSchema",
|
723
723
|
"location": {
|
724
724
|
"filePath": "forking.main.runtime.ts",
|
725
|
-
"line":
|
725
|
+
"line": 379,
|
726
726
|
"character": 5
|
727
727
|
},
|
728
728
|
"name": "ComponentMain",
|
@@ -735,7 +735,7 @@
|
|
735
735
|
"__schema": "TypeRefSchema",
|
736
736
|
"location": {
|
737
737
|
"filePath": "forking.main.runtime.ts",
|
738
|
-
"line":
|
738
|
+
"line": 380,
|
739
739
|
"character": 5
|
740
740
|
},
|
741
741
|
"name": "NewComponentHelperMain",
|
@@ -748,7 +748,7 @@
|
|
748
748
|
"__schema": "TypeRefSchema",
|
749
749
|
"location": {
|
750
750
|
"filePath": "forking.main.runtime.ts",
|
751
|
-
"line":
|
751
|
+
"line": 381,
|
752
752
|
"character": 5
|
753
753
|
},
|
754
754
|
"name": "GraphqlMain",
|
@@ -761,7 +761,7 @@
|
|
761
761
|
"__schema": "TypeRefSchema",
|
762
762
|
"location": {
|
763
763
|
"filePath": "forking.main.runtime.ts",
|
764
|
-
"line":
|
764
|
+
"line": 382,
|
765
765
|
"character": 5
|
766
766
|
},
|
767
767
|
"name": "RefactoringMain",
|
@@ -774,7 +774,7 @@
|
|
774
774
|
"__schema": "TypeRefSchema",
|
775
775
|
"location": {
|
776
776
|
"filePath": "forking.main.runtime.ts",
|
777
|
-
"line":
|
777
|
+
"line": 383,
|
778
778
|
"character": 5
|
779
779
|
},
|
780
780
|
"name": "PkgMain",
|
@@ -787,7 +787,7 @@
|
|
787
787
|
"__schema": "TypeRefSchema",
|
788
788
|
"location": {
|
789
789
|
"filePath": "forking.main.runtime.ts",
|
790
|
-
"line":
|
790
|
+
"line": 384,
|
791
791
|
"character": 5
|
792
792
|
},
|
793
793
|
"name": "InstallMain",
|
@@ -806,7 +806,7 @@
|
|
806
806
|
"__schema": "InferenceTypeSchema",
|
807
807
|
"location": {
|
808
808
|
"filePath": "forking.main.runtime.ts",
|
809
|
-
"line":
|
809
|
+
"line": 365,
|
810
810
|
"character": 3
|
811
811
|
},
|
812
812
|
"type": "Promise<ForkingMain>"
|
@@ -1370,7 +1370,7 @@
|
|
1370
1370
|
"raw": "/**\n * fork all components of the given scope\n */",
|
1371
1371
|
"comment": "fork all components of the given scope"
|
1372
1372
|
},
|
1373
|
-
"signature": "(method) ForkingMain.forkScope(originalScope: string,
|
1373
|
+
"signature": "(method) ForkingMain.forkScope(originalScope: string, newOptionalScope?: string, pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>",
|
1374
1374
|
"name": "forkScope",
|
1375
1375
|
"params": [
|
1376
1376
|
{
|
@@ -1400,17 +1400,17 @@
|
|
1400
1400
|
"line": 189,
|
1401
1401
|
"character": 5
|
1402
1402
|
},
|
1403
|
-
"name": "
|
1403
|
+
"name": "newOptionalScope",
|
1404
1404
|
"type": {
|
1405
1405
|
"__schema": "KeywordTypeSchema",
|
1406
1406
|
"location": {
|
1407
1407
|
"filePath": "forking.main.runtime.ts",
|
1408
1408
|
"line": 189,
|
1409
|
-
"character":
|
1409
|
+
"character": 24
|
1410
1410
|
},
|
1411
1411
|
"name": "string"
|
1412
1412
|
},
|
1413
|
-
"isOptional":
|
1413
|
+
"isOptional": true,
|
1414
1414
|
"isSpread": false
|
1415
1415
|
},
|
1416
1416
|
{
|
@@ -1496,7 +1496,7 @@
|
|
1496
1496
|
"__schema": "VariableLikeSchema",
|
1497
1497
|
"location": {
|
1498
1498
|
"filePath": "forking.main.runtime.ts",
|
1499
|
-
"line":
|
1499
|
+
"line": 352,
|
1500
1500
|
"character": 3
|
1501
1501
|
},
|
1502
1502
|
"signature": "(property) ForkingMain.slots: never[]",
|
@@ -1505,7 +1505,7 @@
|
|
1505
1505
|
"__schema": "InferenceTypeSchema",
|
1506
1506
|
"location": {
|
1507
1507
|
"filePath": "forking.main.runtime.ts",
|
1508
|
-
"line":
|
1508
|
+
"line": 352,
|
1509
1509
|
"character": 3
|
1510
1510
|
},
|
1511
1511
|
"type": "never[]"
|
@@ -1517,7 +1517,7 @@
|
|
1517
1517
|
"__schema": "VariableLikeSchema",
|
1518
1518
|
"location": {
|
1519
1519
|
"filePath": "forking.main.runtime.ts",
|
1520
|
-
"line":
|
1520
|
+
"line": 353,
|
1521
1521
|
"character": 3
|
1522
1522
|
},
|
1523
1523
|
"signature": "(property) ForkingMain.dependencies: Aspect[]",
|
@@ -1526,7 +1526,7 @@
|
|
1526
1526
|
"__schema": "InferenceTypeSchema",
|
1527
1527
|
"location": {
|
1528
1528
|
"filePath": "forking.main.runtime.ts",
|
1529
|
-
"line":
|
1529
|
+
"line": 353,
|
1530
1530
|
"character": 3
|
1531
1531
|
},
|
1532
1532
|
"type": "Aspect[]"
|
@@ -1538,7 +1538,7 @@
|
|
1538
1538
|
"__schema": "VariableLikeSchema",
|
1539
1539
|
"location": {
|
1540
1540
|
"filePath": "forking.main.runtime.ts",
|
1541
|
-
"line":
|
1541
|
+
"line": 364,
|
1542
1542
|
"character": 3
|
1543
1543
|
},
|
1544
1544
|
"signature": "(property) ForkingMain.runtime: RuntimeDefinition",
|
@@ -1547,7 +1547,7 @@
|
|
1547
1547
|
"__schema": "InferenceTypeSchema",
|
1548
1548
|
"location": {
|
1549
1549
|
"filePath": "forking.main.runtime.ts",
|
1550
|
-
"line":
|
1550
|
+
"line": 364,
|
1551
1551
|
"character": 3
|
1552
1552
|
},
|
1553
1553
|
"type": "RuntimeDefinition"
|
@@ -1559,7 +1559,7 @@
|
|
1559
1559
|
"__schema": "FunctionLikeSchema",
|
1560
1560
|
"location": {
|
1561
1561
|
"filePath": "forking.main.runtime.ts",
|
1562
|
-
"line":
|
1562
|
+
"line": 365,
|
1563
1563
|
"character": 3
|
1564
1564
|
},
|
1565
1565
|
"signature": "(method) ForkingMain.provider([cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
|
@@ -1569,7 +1569,7 @@
|
|
1569
1569
|
"__schema": "ParameterSchema",
|
1570
1570
|
"location": {
|
1571
1571
|
"filePath": "forking.main.runtime.ts",
|
1572
|
-
"line":
|
1572
|
+
"line": 365,
|
1573
1573
|
"character": 25
|
1574
1574
|
},
|
1575
1575
|
"name": "[ cli, workspace, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
|
@@ -1577,7 +1577,7 @@
|
|
1577
1577
|
"__schema": "TupleTypeSchema",
|
1578
1578
|
"location": {
|
1579
1579
|
"filePath": "forking.main.runtime.ts",
|
1580
|
-
"line":
|
1580
|
+
"line": 375,
|
1581
1581
|
"character": 6
|
1582
1582
|
},
|
1583
1583
|
"elements": [
|
@@ -1585,7 +1585,7 @@
|
|
1585
1585
|
"__schema": "TypeRefSchema",
|
1586
1586
|
"location": {
|
1587
1587
|
"filePath": "forking.main.runtime.ts",
|
1588
|
-
"line":
|
1588
|
+
"line": 376,
|
1589
1589
|
"character": 5
|
1590
1590
|
},
|
1591
1591
|
"name": "CLIMain",
|
@@ -1598,7 +1598,7 @@
|
|
1598
1598
|
"__schema": "TypeRefSchema",
|
1599
1599
|
"location": {
|
1600
1600
|
"filePath": "forking.main.runtime.ts",
|
1601
|
-
"line":
|
1601
|
+
"line": 377,
|
1602
1602
|
"character": 5
|
1603
1603
|
},
|
1604
1604
|
"name": "Workspace",
|
@@ -1611,7 +1611,7 @@
|
|
1611
1611
|
"__schema": "TypeRefSchema",
|
1612
1612
|
"location": {
|
1613
1613
|
"filePath": "forking.main.runtime.ts",
|
1614
|
-
"line":
|
1614
|
+
"line": 378,
|
1615
1615
|
"character": 5
|
1616
1616
|
},
|
1617
1617
|
"name": "DependencyResolverMain",
|
@@ -1624,7 +1624,7 @@
|
|
1624
1624
|
"__schema": "TypeRefSchema",
|
1625
1625
|
"location": {
|
1626
1626
|
"filePath": "forking.main.runtime.ts",
|
1627
|
-
"line":
|
1627
|
+
"line": 379,
|
1628
1628
|
"character": 5
|
1629
1629
|
},
|
1630
1630
|
"name": "ComponentMain",
|
@@ -1637,7 +1637,7 @@
|
|
1637
1637
|
"__schema": "TypeRefSchema",
|
1638
1638
|
"location": {
|
1639
1639
|
"filePath": "forking.main.runtime.ts",
|
1640
|
-
"line":
|
1640
|
+
"line": 380,
|
1641
1641
|
"character": 5
|
1642
1642
|
},
|
1643
1643
|
"name": "NewComponentHelperMain",
|
@@ -1650,7 +1650,7 @@
|
|
1650
1650
|
"__schema": "TypeRefSchema",
|
1651
1651
|
"location": {
|
1652
1652
|
"filePath": "forking.main.runtime.ts",
|
1653
|
-
"line":
|
1653
|
+
"line": 381,
|
1654
1654
|
"character": 5
|
1655
1655
|
},
|
1656
1656
|
"name": "GraphqlMain",
|
@@ -1663,7 +1663,7 @@
|
|
1663
1663
|
"__schema": "TypeRefSchema",
|
1664
1664
|
"location": {
|
1665
1665
|
"filePath": "forking.main.runtime.ts",
|
1666
|
-
"line":
|
1666
|
+
"line": 382,
|
1667
1667
|
"character": 5
|
1668
1668
|
},
|
1669
1669
|
"name": "RefactoringMain",
|
@@ -1676,7 +1676,7 @@
|
|
1676
1676
|
"__schema": "TypeRefSchema",
|
1677
1677
|
"location": {
|
1678
1678
|
"filePath": "forking.main.runtime.ts",
|
1679
|
-
"line":
|
1679
|
+
"line": 383,
|
1680
1680
|
"character": 5
|
1681
1681
|
},
|
1682
1682
|
"name": "PkgMain",
|
@@ -1689,7 +1689,7 @@
|
|
1689
1689
|
"__schema": "TypeRefSchema",
|
1690
1690
|
"location": {
|
1691
1691
|
"filePath": "forking.main.runtime.ts",
|
1692
|
-
"line":
|
1692
|
+
"line": 384,
|
1693
1693
|
"character": 5
|
1694
1694
|
},
|
1695
1695
|
"name": "InstallMain",
|
@@ -1708,7 +1708,7 @@
|
|
1708
1708
|
"__schema": "InferenceTypeSchema",
|
1709
1709
|
"location": {
|
1710
1710
|
"filePath": "forking.main.runtime.ts",
|
1711
|
-
"line":
|
1711
|
+
"line": 365,
|
1712
1712
|
"character": 3
|
1713
1713
|
},
|
1714
1714
|
"type": "Promise<ForkingMain>"
|
@@ -1726,7 +1726,7 @@
|
|
1726
1726
|
"__schema": "TypeSchema",
|
1727
1727
|
"location": {
|
1728
1728
|
"filePath": "forking.main.runtime.ts",
|
1729
|
-
"line":
|
1729
|
+
"line": 400,
|
1730
1730
|
"character": 1
|
1731
1731
|
},
|
1732
1732
|
"signature": "type ForkConfig = {\n forkedFrom: ComponentIdObj;\n}",
|
@@ -1735,7 +1735,7 @@
|
|
1735
1735
|
"__schema": "TypeLiteralSchema",
|
1736
1736
|
"location": {
|
1737
1737
|
"filePath": "forking.main.runtime.ts",
|
1738
|
-
"line":
|
1738
|
+
"line": 400,
|
1739
1739
|
"character": 26
|
1740
1740
|
},
|
1741
1741
|
"members": [
|
@@ -1743,7 +1743,7 @@
|
|
1743
1743
|
"__schema": "VariableLikeSchema",
|
1744
1744
|
"location": {
|
1745
1745
|
"filePath": "forking.main.runtime.ts",
|
1746
|
-
"line":
|
1746
|
+
"line": 401,
|
1747
1747
|
"character": 3
|
1748
1748
|
},
|
1749
1749
|
"signature": "(property) forkedFrom: ComponentIdObj",
|
@@ -1752,7 +1752,7 @@
|
|
1752
1752
|
"__schema": "TypeRefSchema",
|
1753
1753
|
"location": {
|
1754
1754
|
"filePath": "forking.main.runtime.ts",
|
1755
|
-
"line":
|
1755
|
+
"line": 401,
|
1756
1756
|
"character": 3
|
1757
1757
|
},
|
1758
1758
|
"name": "ComponentIdObj",
|
@@ -2117,7 +2117,7 @@
|
|
2117
2117
|
"__schema": "UnImplementedSchema",
|
2118
2118
|
"location": {
|
2119
2119
|
"filePath": "forking.main.runtime.ts",
|
2120
|
-
"line":
|
2120
|
+
"line": 398,
|
2121
2121
|
"character": 1
|
2122
2122
|
},
|
2123
2123
|
"name": "ForkingAspect.addRuntime(ForkingMain);",
|
@@ -2166,7 +2166,7 @@
|
|
2166
2166
|
"componentId": {
|
2167
2167
|
"scope": "teambit.component",
|
2168
2168
|
"name": "forking",
|
2169
|
-
"version": "1.0.
|
2169
|
+
"version": "1.0.273"
|
2170
2170
|
},
|
2171
2171
|
"taggedModuleExports": []
|
2172
2172
|
}
|
@@ -58,7 +58,8 @@ export declare class ForkingMain {
|
|
58
58
|
/**
|
59
59
|
* fork all components of the given scope
|
60
60
|
*/
|
61
|
-
forkScope(originalScope: string,
|
61
|
+
forkScope(originalScope: string, newOptionalScope?: string, // if not specified, it'll be the default scope
|
62
|
+
pattern?: string, options?: ScopeForkOptions): Promise<ComponentID[]>;
|
62
63
|
private forkExistingInWorkspace;
|
63
64
|
private forkRemoteComponent;
|
64
65
|
private saveDeps;
|
@@ -308,8 +308,11 @@ class ForkingMain {
|
|
308
308
|
/**
|
309
309
|
* fork all components of the given scope
|
310
310
|
*/
|
311
|
-
async forkScope(originalScope,
|
311
|
+
async forkScope(originalScope, newOptionalScope,
|
312
|
+
// if not specified, it'll be the default scope
|
313
|
+
pattern, options) {
|
312
314
|
if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
|
315
|
+
const newScope = newOptionalScope || this.workspace.defaultScope;
|
313
316
|
const allIdsFromOriginalScope = await this.workspace.scope.listRemoteScope(originalScope);
|
314
317
|
if (!allIdsFromOriginalScope.length) {
|
315
318
|
throw new Error(`unable to find components to fork from ${originalScope}`);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_bitError","data","require","_cli","_typescript","_component","_dependencyResolver","_graphql","_componentVersion","_install","_componentId","_newComponentHelper","_pkg","_refactoring","_workspace","_componentPackageVersion","_lodash","_pMapSeries","_interopRequireDefault","_semver","_fork","_forking","_forking2","_forking3","_scopeFork","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ForkingMain","constructor","workspace","install","dependencyResolver","newComponentHelper","refactoring","pkg","fork","sourceId","targetId","options","OutsideWorkspaceError","sourceCompId","resolveComponentId","exists","existingInWorkspace","get","forkExistingInWorkspace","sourceIdWithScope","_legacy","scope","ComponentID","fromString","targetCompId","component","forkRemoteComponent","saveDeps","skipDependencyInstallation","installDeps","getForkInfo","forkConfig","state","aspects","ForkingAspect","id","config","forkedFrom","fromObject","forkMultipleFromRemote","componentsToFork","componentsToForkSorted","sortComponentsToFork","results","pMapSeries","path","env","targetScope","refactorMultipleAndInstall","sort","a","b","oldPackages","stringsToReplace","map","oldPackageName","getPackageName","newName","fullName","replace","scopeToReplace","newPackageName","oldStr","newStr","toStringWithoutVersion","flat","stringsToReplaceForVariable","name","getStringReplacementsForVariablesAndClasses","allComponents","list","refactor","changedComponents","replaceMultipleStrings","ast","importTransformer","exportTransformer","undefined","Promise","all","comp","write","changedComponentsVariables","forkedComponents","result","policy","extractDeps","policyFlatAndUnique","uniqBy","policyWithoutWorkspaceComps","dep","includes","dependencyId","addToRootPolicy","updateExisting","persistConfig","forkScope","originalScope","newScope","pattern","allIdsFromOriginalScope","listRemoteScope","Error","getPatternWithScopeName","startsWith","patternWithScopeName","idsFromOriginalScope","filterIdsFromPoolIdsByPattern","workspaceIds","listIds","workspaceBitIds","ComponentIdList","fromArray","existInWorkspace","searchWithoutVersion","toString","multipleForkInfo","components","getManyRemoteComponents","getConfig","writeAndAddNewComp","incrementPathIfConflicted","info","existing","getNewComponentId","refactorDependencyName","shouldRefactorVariablesAndClasses","BitError","targetName","getRemoteComponent","preserve","refactorVariableAndClasses","refactorFilenames","workspacePolicyEntries","dedupe","import","copyPeerToRuntimeOnRoot","copyPeerToRuntimeOnComponents","deps","getDependencies","excludePackages","excludeCompIds","getCompIdsThatShouldNotBeInPolicy","source","ComponentDependency","compIdStr","componentId","parsedVersion","parse","version","versionWithPrefix","getVersionWithSavePrefix","isHash","snapToSemver","lifecycleType","lifecycle","fromExisting","skipConfig","getConfigFromExistingToNewComponent","linkToOriginal","noLink","toObject","provider","cli","componentMain","graphql","forkingMain","register","ForkCmd","forkingSchema","registerShowFragments","ForkingFragment","scopeCommand","getCommand","commands","ScopeForkCmd","exports","CLIAspect","WorkspaceAspect","DependencyResolverAspect","ComponentAspect","NewComponentHelperAspect","GraphqlAspect","RefactoringAspect","PkgAspect","InstallAspect","MainRuntime","addRuntime"],"sources":["forking.main.runtime.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { importTransformer, exportTransformer } from '@teambit/typescript';\nimport { ComponentAspect, Component, ComponentMain } from '@teambit/component';\nimport { ComponentDependency, DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { ComponentConfig } from '@teambit/generator';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { isHash } from '@teambit/component-version';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { ComponentID, ComponentIdObj, ComponentIdList } from '@teambit/component-id';\nimport { NewComponentHelperAspect, NewComponentHelperMain } from '@teambit/new-component-helper';\nimport { PkgAspect, PkgMain } from '@teambit/pkg';\nimport { RefactoringAspect, MultipleStringsReplacement, RefactoringMain } from '@teambit/refactoring';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { snapToSemver } from '@teambit/component-package-version';\nimport { uniqBy } from 'lodash';\nimport pMapSeries from 'p-map-series';\nimport { parse } from 'semver';\nimport { ForkCmd, ForkOptions } from './fork.cmd';\nimport { ForkingAspect } from './forking.aspect';\nimport { ForkingFragment } from './forking.fragment';\nimport { forkingSchema } from './forking.graphql';\nimport { ScopeForkCmd, ScopeForkOptions } from './scope-fork.cmd';\n\nexport type ForkInfo = {\n forkedFrom: ComponentID;\n};\n\ntype MultipleForkInfo = {\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n};\n\ntype MultipleComponentsToFork = Array<{\n sourceId: string;\n targetId?: string; // if not specified, it'll be the same as the source\n targetScope?: string; // if not specified, it'll be taken from the options or from the default scope\n path?: string; // if not specified, use the default component path\n env?: string; // if not specified, use the default env\n config?: ComponentConfig; // if specified, adds to/overrides the existing config\n}>;\n\ntype MultipleForkOptions = {\n refactor?: boolean;\n scope?: string; // different scope-name than the original components\n install?: boolean; // whether to run \"bit install\" once done.\n ast?: boolean; // whether to use AST to transform files instead of regex\n};\n\nexport class ForkingMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private dependencyResolver: DependencyResolverMain,\n private newComponentHelper: NewComponentHelperMain,\n private refactoring: RefactoringMain,\n private pkg: PkgMain\n ) {}\n\n /**\n * create a new copy of existing/remote component.\n * the new component holds a reference to the old one for future reference.\n * if refactor option is enable, change the source-code to update all dependencies with the new name.\n */\n async fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const exists = this.workspace.exists(sourceCompId);\n if (exists) {\n const existingInWorkspace = await this.workspace.get(sourceCompId);\n return this.forkExistingInWorkspace(existingInWorkspace, targetId, options);\n }\n const sourceIdWithScope = sourceCompId._legacy.scope ? sourceCompId : ComponentID.fromString(sourceId);\n const { targetCompId, component } = await this.forkRemoteComponent(sourceIdWithScope, targetId, options);\n await this.saveDeps(component);\n if (!options?.skipDependencyInstallation) await this.installDeps();\n return targetCompId;\n }\n\n /**\n * get the forking data, such as the source where a component was forked from\n */\n getForkInfo(component: Component): ForkInfo | null {\n const forkConfig = component.state.aspects.get(ForkingAspect.id)?.config as ForkConfig | undefined;\n if (!forkConfig) return null;\n return {\n forkedFrom: ComponentID.fromObject(forkConfig.forkedFrom),\n };\n }\n\n async forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options: MultipleForkOptions = {}) {\n const componentsToForkSorted = this.sortComponentsToFork(componentsToFork);\n const { scope } = options;\n const results = await pMapSeries(\n componentsToForkSorted,\n async ({ sourceId, targetId, path, env, config, targetScope }) => {\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const sourceIdWithScope = sourceCompId._legacy.scope ? sourceCompId : ComponentID.fromString(sourceId);\n const { targetCompId, component } = await this.forkRemoteComponent(\n sourceIdWithScope,\n targetId,\n {\n scope: targetScope || scope,\n path,\n env,\n config,\n },\n false\n );\n return { targetCompId, sourceId, component };\n }\n );\n await this.refactorMultipleAndInstall(results, options);\n }\n\n /**\n * sort the components to fork so that components without \"env\" prop will be forked first.\n * this way, if some components are envs, their \"env\" prop is empty and will be forked first, then components that\n * depends on them.\n * otherwise, forking the components first result in errors when loading them as their envs are missing at that point\n */\n private sortComponentsToFork(componentsToFork: MultipleComponentsToFork) {\n return componentsToFork.sort((a, b) => {\n if (a.env && b.env) return 0;\n if (a.env) return 1;\n return -1;\n });\n }\n\n private async refactorMultipleAndInstall(results: MultipleForkInfo[], options: MultipleForkOptions = {}) {\n const oldPackages: string[] = [];\n const stringsToReplace: MultipleStringsReplacement = results\n .map(({ targetCompId, sourceId, component }) => {\n const oldPackageName = this.pkg.getPackageName(component);\n oldPackages.push(oldPackageName);\n const newName = targetCompId.fullName.replace(/\\//g, '.');\n const scopeToReplace = targetCompId.scope.replace('.', '/');\n const newPackageName = `@${scopeToReplace}.${newName}`;\n return [\n { oldStr: oldPackageName, newStr: newPackageName },\n { oldStr: sourceId, newStr: targetCompId.toStringWithoutVersion() },\n ];\n })\n .flat();\n\n const stringsToReplaceForVariable: MultipleStringsReplacement = results\n .map(({ targetCompId, sourceId }) => {\n const sourceCompId = ComponentID.fromString(sourceId);\n if (sourceCompId.name === targetCompId.name) return [];\n return this.refactoring.getStringReplacementsForVariablesAndClasses(sourceCompId, targetCompId);\n })\n .flat();\n\n const allComponents = await this.workspace.list();\n if (options.refactor) {\n const { changedComponents } = await this.refactoring.replaceMultipleStrings(\n allComponents,\n stringsToReplace,\n options.ast ? [importTransformer, exportTransformer] : undefined\n );\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n\n const { changedComponents: changedComponentsVariables } = await this.refactoring.replaceMultipleStrings(\n allComponents,\n stringsToReplaceForVariable,\n options.ast ? [importTransformer, exportTransformer] : undefined,\n true\n );\n\n await Promise.all(changedComponentsVariables.map((comp) => this.workspace.write(comp)));\n }\n const forkedComponents = results.map((result) => result.component);\n const policy = await Promise.all(forkedComponents.map((comp) => this.extractDeps(comp)));\n const policyFlatAndUnique = uniqBy(policy.flat(), 'dependencyId');\n const policyWithoutWorkspaceComps = policyFlatAndUnique.filter((dep) => !oldPackages.includes(dep.dependencyId));\n this.dependencyResolver.addToRootPolicy(policyWithoutWorkspaceComps, { updateExisting: true });\n await this.dependencyResolver.persistConfig('fork');\n if (options.install) {\n await this.installDeps();\n }\n }\n\n /**\n * fork all components of the given scope\n */\n async forkScope(\n originalScope: string,\n newScope: string,\n pattern?: string,\n options?: ScopeForkOptions\n ): Promise<ComponentID[]> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const allIdsFromOriginalScope = await this.workspace.scope.listRemoteScope(originalScope);\n if (!allIdsFromOriginalScope.length) {\n throw new Error(`unable to find components to fork from ${originalScope}`);\n }\n const getPatternWithScopeName = () => {\n if (!pattern) return undefined;\n if (pattern.startsWith(`${originalScope}/`)) return pattern;\n return `${originalScope}/${pattern}`;\n };\n const patternWithScopeName = getPatternWithScopeName();\n const idsFromOriginalScope = patternWithScopeName\n ? await this.workspace.scope.filterIdsFromPoolIdsByPattern(patternWithScopeName, allIdsFromOriginalScope)\n : allIdsFromOriginalScope;\n const workspaceIds = this.workspace.listIds();\n const workspaceBitIds = ComponentIdList.fromArray(workspaceIds.map((id) => id));\n idsFromOriginalScope.forEach((id) => {\n const existInWorkspace = workspaceBitIds.searchWithoutVersion(id);\n if (existInWorkspace) {\n throw new Error(\n `unable to fork \"${id.toString()}\". the workspace has a component \"${existInWorkspace.toString()}\" with the same name and same scope`\n );\n }\n });\n const multipleForkInfo: MultipleForkInfo[] = [];\n const components = await this.workspace.scope.getManyRemoteComponents(idsFromOriginalScope);\n await pMapSeries(components, async (component) => {\n const config = await this.getConfig(component);\n const targetCompId = ComponentID.fromObject({ name: component.id.fullName }, newScope);\n await this.newComponentHelper.writeAndAddNewComp(\n component,\n targetCompId,\n {\n scope: newScope,\n incrementPathIfConflicted: true,\n },\n config\n );\n multipleForkInfo.push({ targetCompId, sourceId: component.id.toStringWithoutVersion(), component });\n });\n await this.refactorMultipleAndInstall(multipleForkInfo, {\n refactor: true,\n install: !options?.skipDependencyInstallation,\n ast: options?.ast,\n });\n return multipleForkInfo.map((info) => info.targetCompId);\n }\n\n private async forkExistingInWorkspace(existing: Component, targetId?: string, options?: ForkOptions) {\n targetId = targetId || existing.id.fullName;\n const targetCompId = this.newComponentHelper.getNewComponentId(targetId, undefined, options?.scope);\n\n const config = await this.getConfig(existing, options);\n await this.newComponentHelper.writeAndAddNewComp(existing, targetCompId, options, config);\n if (options?.refactor) {\n const allComponents = await this.workspace.list();\n const { changedComponents } = await this.refactoring.refactorDependencyName(allComponents, existing.id, targetId);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n }\n return targetCompId;\n }\n\n private async forkRemoteComponent(\n sourceId: ComponentID,\n targetId?: string,\n options?: ForkOptions,\n shouldRefactorVariablesAndClasses = true\n ): Promise<{\n targetCompId: ComponentID;\n component: Component;\n }> {\n if (options?.refactor) {\n throw new BitError(`the component ${sourceId.toStringWithoutVersion()} is not in the workspace, you can't use the --refactor flag.\nthe reason is that the refactor changes the components using ${sourceId.toStringWithoutVersion()}, since it's not in the workspace, no components were using it, so nothing to refactor`);\n }\n const targetName = targetId || sourceId.fullName;\n const targetCompId = this.newComponentHelper.getNewComponentId(targetName, undefined, options?.scope);\n const component = await this.workspace.scope.getRemoteComponent(sourceId);\n await this.refactoring.replaceMultipleStrings(\n [component],\n [\n {\n oldStr: sourceId.toStringWithoutVersion(),\n newStr: targetCompId.toStringWithoutVersion(),\n },\n ],\n options?.ast ? [importTransformer, exportTransformer] : undefined\n );\n if (!options?.preserve) {\n if (shouldRefactorVariablesAndClasses) {\n await this.refactoring.refactorVariableAndClasses(component, sourceId, targetCompId, options);\n }\n this.refactoring.refactorFilenames(component, sourceId, targetCompId);\n }\n const config = await this.getConfig(component, options);\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, options, config);\n\n return { targetCompId, component };\n }\n\n private async saveDeps(component: Component) {\n const workspacePolicyEntries = this.extractDeps(component);\n this.dependencyResolver.addToRootPolicy(workspacePolicyEntries, { updateExisting: true });\n await this.dependencyResolver.persistConfig('fork (save deps)');\n }\n\n private async installDeps() {\n await this.install.install(undefined, {\n dedupe: true,\n import: false,\n copyPeerToRuntimeOnRoot: true,\n copyPeerToRuntimeOnComponents: false,\n updateExisting: false,\n });\n }\n\n private extractDeps(component: Component) {\n const deps = this.dependencyResolver.getDependencies(component);\n const excludePackages = ['@teambit/legacy'];\n const excludeCompIds = this.dependencyResolver.getCompIdsThatShouldNotBeInPolicy();\n return deps\n .filter((dep) => dep.source === 'auto')\n .filter((dep) => {\n if (dep instanceof ComponentDependency) {\n const compIdStr = dep.componentId.toStringWithoutVersion();\n return !excludeCompIds.includes(compIdStr);\n }\n return !excludePackages.includes(dep.id);\n })\n .map((dep) => {\n const parsedVersion = parse(dep.version);\n const versionWithPrefix = parsedVersion\n ? this.dependencyResolver.getVersionWithSavePrefix({ version: dep.version })\n : dep.version;\n const version = isHash(versionWithPrefix) ? snapToSemver(versionWithPrefix) : versionWithPrefix;\n return {\n dependencyId: dep.getPackageName?.() || dep.id,\n lifecycleType: dep.lifecycle === 'dev' ? 'runtime' : dep.lifecycle,\n value: {\n version,\n },\n };\n });\n }\n\n private async getConfig(comp: Component, options?: ForkOptions) {\n const config = options?.config || {};\n const fromExisting = options?.skipConfig\n ? {}\n : await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);\n const linkToOriginal = options?.noLink ? {} : { [ForkingAspect.id]: { forkedFrom: comp.id.toObject() } };\n return {\n ...fromExisting,\n ...linkToOriginal,\n ...config,\n };\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n dependencyResolver,\n componentMain,\n newComponentHelper,\n graphql,\n refactoring,\n pkg,\n install,\n ]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n ]) {\n const forkingMain = new ForkingMain(workspace, install, dependencyResolver, newComponentHelper, refactoring, pkg);\n cli.register(new ForkCmd(forkingMain));\n graphql.register(forkingSchema(forkingMain));\n componentMain.registerShowFragments([new ForkingFragment(forkingMain)]);\n\n const scopeCommand = cli.getCommand('scope');\n scopeCommand?.commands?.push(new ScopeForkCmd(for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ACyJ,UAAU,CAAC3L,WAAW,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_bitError","data","require","_cli","_typescript","_component","_dependencyResolver","_graphql","_componentVersion","_install","_componentId","_newComponentHelper","_pkg","_refactoring","_workspace","_componentPackageVersion","_lodash","_pMapSeries","_interopRequireDefault","_semver","_fork","_forking","_forking2","_forking3","_scopeFork","obj","__esModule","default","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ForkingMain","constructor","workspace","install","dependencyResolver","newComponentHelper","refactoring","pkg","fork","sourceId","targetId","options","OutsideWorkspaceError","sourceCompId","resolveComponentId","exists","existingInWorkspace","get","forkExistingInWorkspace","sourceIdWithScope","_legacy","scope","ComponentID","fromString","targetCompId","component","forkRemoteComponent","saveDeps","skipDependencyInstallation","installDeps","getForkInfo","forkConfig","state","aspects","ForkingAspect","id","config","forkedFrom","fromObject","forkMultipleFromRemote","componentsToFork","componentsToForkSorted","sortComponentsToFork","results","pMapSeries","path","env","targetScope","refactorMultipleAndInstall","sort","a","b","oldPackages","stringsToReplace","map","oldPackageName","getPackageName","newName","fullName","replace","scopeToReplace","newPackageName","oldStr","newStr","toStringWithoutVersion","flat","stringsToReplaceForVariable","name","getStringReplacementsForVariablesAndClasses","allComponents","list","refactor","changedComponents","replaceMultipleStrings","ast","importTransformer","exportTransformer","undefined","Promise","all","comp","write","changedComponentsVariables","forkedComponents","result","policy","extractDeps","policyFlatAndUnique","uniqBy","policyWithoutWorkspaceComps","dep","includes","dependencyId","addToRootPolicy","updateExisting","persistConfig","forkScope","originalScope","newOptionalScope","pattern","newScope","defaultScope","allIdsFromOriginalScope","listRemoteScope","Error","getPatternWithScopeName","startsWith","patternWithScopeName","idsFromOriginalScope","filterIdsFromPoolIdsByPattern","workspaceIds","listIds","workspaceBitIds","ComponentIdList","fromArray","existInWorkspace","searchWithoutVersion","toString","multipleForkInfo","components","getManyRemoteComponents","getConfig","writeAndAddNewComp","incrementPathIfConflicted","info","existing","getNewComponentId","refactorDependencyName","shouldRefactorVariablesAndClasses","BitError","targetName","getRemoteComponent","preserve","refactorVariableAndClasses","refactorFilenames","workspacePolicyEntries","dedupe","import","copyPeerToRuntimeOnRoot","copyPeerToRuntimeOnComponents","deps","getDependencies","excludePackages","excludeCompIds","getCompIdsThatShouldNotBeInPolicy","source","ComponentDependency","compIdStr","componentId","parsedVersion","parse","version","versionWithPrefix","getVersionWithSavePrefix","isHash","snapToSemver","lifecycleType","lifecycle","fromExisting","skipConfig","getConfigFromExistingToNewComponent","linkToOriginal","noLink","toObject","provider","cli","componentMain","graphql","forkingMain","register","ForkCmd","forkingSchema","registerShowFragments","ForkingFragment","scopeCommand","getCommand","commands","ScopeForkCmd","exports","CLIAspect","WorkspaceAspect","DependencyResolverAspect","ComponentAspect","NewComponentHelperAspect","GraphqlAspect","RefactoringAspect","PkgAspect","InstallAspect","MainRuntime","addRuntime"],"sources":["forking.main.runtime.ts"],"sourcesContent":["import { BitError } from '@teambit/bit-error';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { importTransformer, exportTransformer } from '@teambit/typescript';\nimport { ComponentAspect, Component, ComponentMain } from '@teambit/component';\nimport { ComponentDependency, DependencyResolverAspect, DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { ComponentConfig } from '@teambit/generator';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { isHash } from '@teambit/component-version';\nimport { InstallAspect, InstallMain } from '@teambit/install';\nimport { ComponentID, ComponentIdObj, ComponentIdList } from '@teambit/component-id';\nimport { NewComponentHelperAspect, NewComponentHelperMain } from '@teambit/new-component-helper';\nimport { PkgAspect, PkgMain } from '@teambit/pkg';\nimport { RefactoringAspect, MultipleStringsReplacement, RefactoringMain } from '@teambit/refactoring';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { snapToSemver } from '@teambit/component-package-version';\nimport { uniqBy } from 'lodash';\nimport pMapSeries from 'p-map-series';\nimport { parse } from 'semver';\nimport { ForkCmd, ForkOptions } from './fork.cmd';\nimport { ForkingAspect } from './forking.aspect';\nimport { ForkingFragment } from './forking.fragment';\nimport { forkingSchema } from './forking.graphql';\nimport { ScopeForkCmd, ScopeForkOptions } from './scope-fork.cmd';\n\nexport type ForkInfo = {\n forkedFrom: ComponentID;\n};\n\ntype MultipleForkInfo = {\n targetCompId: ComponentID;\n sourceId: string;\n component: Component;\n};\n\ntype MultipleComponentsToFork = Array<{\n sourceId: string;\n targetId?: string; // if not specified, it'll be the same as the source\n targetScope?: string; // if not specified, it'll be taken from the options or from the default scope\n path?: string; // if not specified, use the default component path\n env?: string; // if not specified, use the default env\n config?: ComponentConfig; // if specified, adds to/overrides the existing config\n}>;\n\ntype MultipleForkOptions = {\n refactor?: boolean;\n scope?: string; // different scope-name than the original components\n install?: boolean; // whether to run \"bit install\" once done.\n ast?: boolean; // whether to use AST to transform files instead of regex\n};\n\nexport class ForkingMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private dependencyResolver: DependencyResolverMain,\n private newComponentHelper: NewComponentHelperMain,\n private refactoring: RefactoringMain,\n private pkg: PkgMain\n ) {}\n\n /**\n * create a new copy of existing/remote component.\n * the new component holds a reference to the old one for future reference.\n * if refactor option is enable, change the source-code to update all dependencies with the new name.\n */\n async fork(sourceId: string, targetId?: string, options?: ForkOptions): Promise<ComponentID> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const exists = this.workspace.exists(sourceCompId);\n if (exists) {\n const existingInWorkspace = await this.workspace.get(sourceCompId);\n return this.forkExistingInWorkspace(existingInWorkspace, targetId, options);\n }\n const sourceIdWithScope = sourceCompId._legacy.scope ? sourceCompId : ComponentID.fromString(sourceId);\n const { targetCompId, component } = await this.forkRemoteComponent(sourceIdWithScope, targetId, options);\n await this.saveDeps(component);\n if (!options?.skipDependencyInstallation) await this.installDeps();\n return targetCompId;\n }\n\n /**\n * get the forking data, such as the source where a component was forked from\n */\n getForkInfo(component: Component): ForkInfo | null {\n const forkConfig = component.state.aspects.get(ForkingAspect.id)?.config as ForkConfig | undefined;\n if (!forkConfig) return null;\n return {\n forkedFrom: ComponentID.fromObject(forkConfig.forkedFrom),\n };\n }\n\n async forkMultipleFromRemote(componentsToFork: MultipleComponentsToFork, options: MultipleForkOptions = {}) {\n const componentsToForkSorted = this.sortComponentsToFork(componentsToFork);\n const { scope } = options;\n const results = await pMapSeries(\n componentsToForkSorted,\n async ({ sourceId, targetId, path, env, config, targetScope }) => {\n const sourceCompId = await this.workspace.resolveComponentId(sourceId);\n const sourceIdWithScope = sourceCompId._legacy.scope ? sourceCompId : ComponentID.fromString(sourceId);\n const { targetCompId, component } = await this.forkRemoteComponent(\n sourceIdWithScope,\n targetId,\n {\n scope: targetScope || scope,\n path,\n env,\n config,\n },\n false\n );\n return { targetCompId, sourceId, component };\n }\n );\n await this.refactorMultipleAndInstall(results, options);\n }\n\n /**\n * sort the components to fork so that components without \"env\" prop will be forked first.\n * this way, if some components are envs, their \"env\" prop is empty and will be forked first, then components that\n * depends on them.\n * otherwise, forking the components first result in errors when loading them as their envs are missing at that point\n */\n private sortComponentsToFork(componentsToFork: MultipleComponentsToFork) {\n return componentsToFork.sort((a, b) => {\n if (a.env && b.env) return 0;\n if (a.env) return 1;\n return -1;\n });\n }\n\n private async refactorMultipleAndInstall(results: MultipleForkInfo[], options: MultipleForkOptions = {}) {\n const oldPackages: string[] = [];\n const stringsToReplace: MultipleStringsReplacement = results\n .map(({ targetCompId, sourceId, component }) => {\n const oldPackageName = this.pkg.getPackageName(component);\n oldPackages.push(oldPackageName);\n const newName = targetCompId.fullName.replace(/\\//g, '.');\n const scopeToReplace = targetCompId.scope.replace('.', '/');\n const newPackageName = `@${scopeToReplace}.${newName}`;\n return [\n { oldStr: oldPackageName, newStr: newPackageName },\n { oldStr: sourceId, newStr: targetCompId.toStringWithoutVersion() },\n ];\n })\n .flat();\n\n const stringsToReplaceForVariable: MultipleStringsReplacement = results\n .map(({ targetCompId, sourceId }) => {\n const sourceCompId = ComponentID.fromString(sourceId);\n if (sourceCompId.name === targetCompId.name) return [];\n return this.refactoring.getStringReplacementsForVariablesAndClasses(sourceCompId, targetCompId);\n })\n .flat();\n\n const allComponents = await this.workspace.list();\n if (options.refactor) {\n const { changedComponents } = await this.refactoring.replaceMultipleStrings(\n allComponents,\n stringsToReplace,\n options.ast ? [importTransformer, exportTransformer] : undefined\n );\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n\n const { changedComponents: changedComponentsVariables } = await this.refactoring.replaceMultipleStrings(\n allComponents,\n stringsToReplaceForVariable,\n options.ast ? [importTransformer, exportTransformer] : undefined,\n true\n );\n\n await Promise.all(changedComponentsVariables.map((comp) => this.workspace.write(comp)));\n }\n const forkedComponents = results.map((result) => result.component);\n const policy = await Promise.all(forkedComponents.map((comp) => this.extractDeps(comp)));\n const policyFlatAndUnique = uniqBy(policy.flat(), 'dependencyId');\n const policyWithoutWorkspaceComps = policyFlatAndUnique.filter((dep) => !oldPackages.includes(dep.dependencyId));\n this.dependencyResolver.addToRootPolicy(policyWithoutWorkspaceComps, { updateExisting: true });\n await this.dependencyResolver.persistConfig('fork');\n if (options.install) {\n await this.installDeps();\n }\n }\n\n /**\n * fork all components of the given scope\n */\n async forkScope(\n originalScope: string,\n newOptionalScope?: string, // if not specified, it'll be the default scope\n pattern?: string,\n options?: ScopeForkOptions\n ): Promise<ComponentID[]> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const newScope = newOptionalScope || this.workspace.defaultScope;\n const allIdsFromOriginalScope = await this.workspace.scope.listRemoteScope(originalScope);\n if (!allIdsFromOriginalScope.length) {\n throw new Error(`unable to find components to fork from ${originalScope}`);\n }\n const getPatternWithScopeName = () => {\n if (!pattern) return undefined;\n if (pattern.startsWith(`${originalScope}/`)) return pattern;\n return `${originalScope}/${pattern}`;\n };\n const patternWithScopeName = getPatternWithScopeName();\n const idsFromOriginalScope = patternWithScopeName\n ? await this.workspace.scope.filterIdsFromPoolIdsByPattern(patternWithScopeName, allIdsFromOriginalScope)\n : allIdsFromOriginalScope;\n const workspaceIds = this.workspace.listIds();\n const workspaceBitIds = ComponentIdList.fromArray(workspaceIds.map((id) => id));\n idsFromOriginalScope.forEach((id) => {\n const existInWorkspace = workspaceBitIds.searchWithoutVersion(id);\n if (existInWorkspace) {\n throw new Error(\n `unable to fork \"${id.toString()}\". the workspace has a component \"${existInWorkspace.toString()}\" with the same name and same scope`\n );\n }\n });\n const multipleForkInfo: MultipleForkInfo[] = [];\n const components = await this.workspace.scope.getManyRemoteComponents(idsFromOriginalScope);\n await pMapSeries(components, async (component) => {\n const config = await this.getConfig(component);\n const targetCompId = ComponentID.fromObject({ name: component.id.fullName }, newScope);\n await this.newComponentHelper.writeAndAddNewComp(\n component,\n targetCompId,\n {\n scope: newScope,\n incrementPathIfConflicted: true,\n },\n config\n );\n multipleForkInfo.push({ targetCompId, sourceId: component.id.toStringWithoutVersion(), component });\n });\n await this.refactorMultipleAndInstall(multipleForkInfo, {\n refactor: true,\n install: !options?.skipDependencyInstallation,\n ast: options?.ast,\n });\n return multipleForkInfo.map((info) => info.targetCompId);\n }\n\n private async forkExistingInWorkspace(existing: Component, targetId?: string, options?: ForkOptions) {\n targetId = targetId || existing.id.fullName;\n const targetCompId = this.newComponentHelper.getNewComponentId(targetId, undefined, options?.scope);\n\n const config = await this.getConfig(existing, options);\n await this.newComponentHelper.writeAndAddNewComp(existing, targetCompId, options, config);\n if (options?.refactor) {\n const allComponents = await this.workspace.list();\n const { changedComponents } = await this.refactoring.refactorDependencyName(allComponents, existing.id, targetId);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n }\n return targetCompId;\n }\n\n private async forkRemoteComponent(\n sourceId: ComponentID,\n targetId?: string,\n options?: ForkOptions,\n shouldRefactorVariablesAndClasses = true\n ): Promise<{\n targetCompId: ComponentID;\n component: Component;\n }> {\n if (options?.refactor) {\n throw new BitError(`the component ${sourceId.toStringWithoutVersion()} is not in the workspace, you can't use the --refactor flag.\nthe reason is that the refactor changes the components using ${sourceId.toStringWithoutVersion()}, since it's not in the workspace, no components were using it, so nothing to refactor`);\n }\n const targetName = targetId || sourceId.fullName;\n const targetCompId = this.newComponentHelper.getNewComponentId(targetName, undefined, options?.scope);\n const component = await this.workspace.scope.getRemoteComponent(sourceId);\n await this.refactoring.replaceMultipleStrings(\n [component],\n [\n {\n oldStr: sourceId.toStringWithoutVersion(),\n newStr: targetCompId.toStringWithoutVersion(),\n },\n ],\n options?.ast ? [importTransformer, exportTransformer] : undefined\n );\n if (!options?.preserve) {\n if (shouldRefactorVariablesAndClasses) {\n await this.refactoring.refactorVariableAndClasses(component, sourceId, targetCompId, options);\n }\n this.refactoring.refactorFilenames(component, sourceId, targetCompId);\n }\n const config = await this.getConfig(component, options);\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, options, config);\n\n return { targetCompId, component };\n }\n\n private async saveDeps(component: Component) {\n const workspacePolicyEntries = this.extractDeps(component);\n this.dependencyResolver.addToRootPolicy(workspacePolicyEntries, { updateExisting: true });\n await this.dependencyResolver.persistConfig('fork (save deps)');\n }\n\n private async installDeps() {\n await this.install.install(undefined, {\n dedupe: true,\n import: false,\n copyPeerToRuntimeOnRoot: true,\n copyPeerToRuntimeOnComponents: false,\n updateExisting: false,\n });\n }\n\n private extractDeps(component: Component) {\n const deps = this.dependencyResolver.getDependencies(component);\n const excludePackages = ['@teambit/legacy'];\n const excludeCompIds = this.dependencyResolver.getCompIdsThatShouldNotBeInPolicy();\n return deps\n .filter((dep) => dep.source === 'auto')\n .filter((dep) => {\n if (dep instanceof ComponentDependency) {\n const compIdStr = dep.componentId.toStringWithoutVersion();\n return !excludeCompIds.includes(compIdStr);\n }\n return !excludePackages.includes(dep.id);\n })\n .map((dep) => {\n const parsedVersion = parse(dep.version);\n const versionWithPrefix = parsedVersion\n ? this.dependencyResolver.getVersionWithSavePrefix({ version: dep.version })\n : dep.version;\n const version = isHash(versionWithPrefix) ? snapToSemver(versionWithPrefix) : versionWithPrefix;\n return {\n dependencyId: dep.getPackageName?.() || dep.id,\n lifecycleType: dep.lifecycle === 'dev' ? 'runtime' : dep.lifecycle,\n value: {\n version,\n },\n };\n });\n }\n\n private async getConfig(comp: Component, options?: ForkOptions) {\n const config = options?.config || {};\n const fromExisting = options?.skipConfig\n ? {}\n : await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);\n const linkToOriginal = options?.noLink ? {} : { [ForkingAspect.id]: { forkedFrom: comp.id.toObject() } };\n return {\n ...fromExisting,\n ...linkToOriginal,\n ...config,\n };\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n DependencyResolverAspect,\n ComponentAspect,\n NewComponentHelperAspect,\n GraphqlAspect,\n RefactoringAspect,\n PkgAspect,\n InstallAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n dependencyResolver,\n componentMain,\n newComponentHelper,\n graphql,\n refactoring,\n pkg,\n install,\n ]: [\n CLIMain,\n Workspace,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n ]) {\n const forkingMain = new ForkingMain(workspace, install, dependencyResolver, newComponentHelper, refactoring, pkg);\n cli.register(new ForkCmd(forkingMain));\n graphql.register(forkingSchema(forkingMain));\n componentMain.registerShowFragments([new ForkingFragment(forkingMain)]);\n\n const scopeCommand = cli.getCommand('scope');\n scopeCommand?.commands?.push(new ScopeForkCmd(forkingMain));\n\n return forkingMain;\n }\n}\n\nForkingAspect.addRuntime(ForkingMain);\n\nexport type ForkConfig = {\n forkedFrom: ComponentIdObj;\n};\n"],"mappings":";;;;;;AAAA,SAAAA,UAAA;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,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.273/dist/forking.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.273/dist/forking.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/dist/scope-fork.cmd.js
CHANGED
@@ -25,13 +25,13 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
|
|
25
25
|
class ScopeForkCmd {
|
26
26
|
constructor(forking) {
|
27
27
|
this.forking = forking;
|
28
|
-
_defineProperty(this, "name", 'fork <original-scope>
|
28
|
+
_defineProperty(this, "name", 'fork <original-scope> [new-scope] [pattern]');
|
29
29
|
_defineProperty(this, "arguments", [{
|
30
30
|
name: 'original-scope',
|
31
31
|
description: 'the original scope to fork'
|
32
32
|
}, {
|
33
33
|
name: 'new-scope',
|
34
|
-
description: 'the new scope to fork to'
|
34
|
+
description: 'the new scope to fork to, default to the default-scope of the workspace'
|
35
35
|
}, {
|
36
36
|
name: 'pattern',
|
37
37
|
description: _constants().COMPONENT_PATTERN_HELP
|
@@ -43,7 +43,7 @@ class ScopeForkCmd {
|
|
43
43
|
}
|
44
44
|
async report([originalScope, newScope, pattern], options) {
|
45
45
|
const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);
|
46
|
-
const title = _chalk().default.green(`successfully forked ${_chalk().default.bold(originalScope)} into ${_chalk().default.bold(newScope)}. the following components were created`);
|
46
|
+
const title = _chalk().default.green(`successfully forked ${_chalk().default.bold(originalScope)} into ${_chalk().default.bold(newScope || forkedIds[0].scope)}. the following components were created`);
|
47
47
|
return `${title}\n${forkedIds.map(id => id.toString()).join('\n')}`;
|
48
48
|
}
|
49
49
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_constants","data","require","_chalk","_interopRequireDefault","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","ScopeForkCmd","constructor","forking","name","description","COMPONENT_PATTERN_HELP","report","originalScope","newScope","pattern","options","forkedIds","forkScope","title","chalk","green","bold","map","id","toString","join","exports"],"sources":["scope-fork.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport chalk from 'chalk';\nimport { ForkingMain } from './forking.main.runtime';\n\nexport type ScopeForkOptions = {\n ast?: boolean;\n skipDependencyInstallation?: boolean;\n};\nexport class ScopeForkCmd implements Command {\n name = 'fork <original-scope>
|
1
|
+
{"version":3,"names":["_constants","data","require","_chalk","_interopRequireDefault","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","ScopeForkCmd","constructor","forking","name","description","COMPONENT_PATTERN_HELP","report","originalScope","newScope","pattern","options","forkedIds","forkScope","title","chalk","green","bold","scope","map","id","toString","join","exports"],"sources":["scope-fork.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';\nimport chalk from 'chalk';\nimport { ForkingMain } from './forking.main.runtime';\n\nexport type ScopeForkOptions = {\n ast?: boolean;\n skipDependencyInstallation?: boolean;\n};\nexport class ScopeForkCmd implements Command {\n name = 'fork <original-scope> [new-scope] [pattern]';\n arguments = [\n {\n name: 'original-scope',\n description: 'the original scope to fork',\n },\n {\n name: 'new-scope',\n description: 'the new scope to fork to, default to the default-scope of the workspace',\n },\n {\n name: 'pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = 'fork all components of the original-scope and refactor the source-code to use the new scope name';\n extendedDescription = 'optionally, provide [pattern] to limit the fork to specific components';\n options = [\n ['', 'ast', 'EXPERIMENTAL. use ast to transform files instead of regex'],\n ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n group = 'development';\n\n constructor(private forking: ForkingMain) {}\n\n async report([originalScope, newScope, pattern]: [string, string, string], options: ScopeForkOptions) {\n const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);\n const title = chalk.green(\n `successfully forked ${chalk.bold(originalScope)} into ${chalk.bold(\n newScope || forkedIds[0].scope\n )}. the following components were created`\n );\n return `${title}\\n${forkedIds.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,CAAA,QAAAC,CAAA,G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ACT,aAAa,CAAE,SAAQO,gBAAK,CAACE,IAAI,CACjER,QAAQ,IAAIG,SAAS,CAAC,CAAC,CAAC,CAACM,KAC3B,CAAE,yCACJ,CAAC;IACD,OAAQ,GAAEJ,KAAM,KAAIF,SAAS,CAACO,GAAG,CAAEC,EAAE,IAAKA,EAAE,CAACC,QAAQ,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAE,EAAC;EACvE;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/forking",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.273",
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/forking",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "forking",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.273"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -19,17 +19,17 @@
|
|
19
19
|
"@teambit/component-id": "1.2.0",
|
20
20
|
"@teambit/component-version": "1.0.3",
|
21
21
|
"@teambit/cli": "0.0.865",
|
22
|
-
"@teambit/generator": "1.0.
|
23
|
-
"@teambit/component": "1.0.
|
24
|
-
"@teambit/graphql": "1.0.
|
22
|
+
"@teambit/generator": "1.0.274",
|
23
|
+
"@teambit/component": "1.0.273",
|
24
|
+
"@teambit/graphql": "1.0.273",
|
25
25
|
"@teambit/component-package-version": "0.0.433",
|
26
|
-
"@teambit/dependency-resolver": "1.0.
|
27
|
-
"@teambit/install": "1.0.
|
28
|
-
"@teambit/new-component-helper": "1.0.
|
29
|
-
"@teambit/pkg": "1.0.
|
30
|
-
"@teambit/refactoring": "1.0.
|
31
|
-
"@teambit/typescript": "1.0.
|
32
|
-
"@teambit/workspace": "1.0.
|
26
|
+
"@teambit/dependency-resolver": "1.0.273",
|
27
|
+
"@teambit/install": "1.0.273",
|
28
|
+
"@teambit/new-component-helper": "1.0.273",
|
29
|
+
"@teambit/pkg": "1.0.273",
|
30
|
+
"@teambit/refactoring": "1.0.273",
|
31
|
+
"@teambit/typescript": "1.0.273",
|
32
|
+
"@teambit/workspace": "1.0.273"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
35
|
"@types/lodash": "4.14.165",
|