@teambit/forking 1.0.446 → 1.0.448

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.446" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/forking@1.0.448" 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={364:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.446",homepage:"https://bit.cloud/teambit/component/forking",exported:!0};function r(){const e=i(o(594));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 c=()=>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"}));c.__bit_component=n,t.Logo=c},594: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={};o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>v,overview:()=>m});var r={};o.r(r),o.d(r,{default:()=>l});var i=o(364);o(594);const c=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},f="wrapper";function l(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({}.hasOwnProperty.call(e,n)){if(t.includes(n))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.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,c.mdx)(f,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const d=[i],m=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
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={22270:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.448",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 c=()=>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"}));c.__bit_component=n,t.Logo=c},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={};o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>v,overview:()=>m});var r={};o.r(r),o.d(r,{default:()=>l});var i=o(22270);o(41594);const c=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},f="wrapper";function l(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({}.hasOwnProperty.call(e,n)){if(t.includes(n))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.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,c.mdx)(f,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const d=[i],m=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -441,14 +441,14 @@
441
441
  "__schema": "FunctionLikeSchema",
442
442
  "location": {
443
443
  "filePath": "forking.main.runtime.ts",
444
- "line": 190,
444
+ "line": 194,
445
445
  "character": 3
446
446
  },
447
447
  "doc": {
448
448
  "__schema": "DocSchema",
449
449
  "location": {
450
450
  "filePath": "forking.main.runtime.ts",
451
- "line": 187,
451
+ "line": 191,
452
452
  "character": 3
453
453
  },
454
454
  "raw": "/**\n * fork all components of the given scope\n */",
@@ -462,7 +462,7 @@
462
462
  "__schema": "ParameterSchema",
463
463
  "location": {
464
464
  "filePath": "forking.main.runtime.ts",
465
- "line": 191,
465
+ "line": 195,
466
466
  "character": 5
467
467
  },
468
468
  "name": "originalScope",
@@ -470,7 +470,7 @@
470
470
  "__schema": "KeywordTypeSchema",
471
471
  "location": {
472
472
  "filePath": "forking.main.runtime.ts",
473
- "line": 191,
473
+ "line": 195,
474
474
  "character": 20
475
475
  },
476
476
  "name": "string"
@@ -482,7 +482,7 @@
482
482
  "__schema": "ParameterSchema",
483
483
  "location": {
484
484
  "filePath": "forking.main.runtime.ts",
485
- "line": 192,
485
+ "line": 196,
486
486
  "character": 5
487
487
  },
488
488
  "name": "newOptionalScope",
@@ -490,7 +490,7 @@
490
490
  "__schema": "KeywordTypeSchema",
491
491
  "location": {
492
492
  "filePath": "forking.main.runtime.ts",
493
- "line": 192,
493
+ "line": 196,
494
494
  "character": 24
495
495
  },
496
496
  "name": "string"
@@ -502,7 +502,7 @@
502
502
  "__schema": "ParameterSchema",
503
503
  "location": {
504
504
  "filePath": "forking.main.runtime.ts",
505
- "line": 193,
505
+ "line": 197,
506
506
  "character": 5
507
507
  },
508
508
  "name": "pattern",
@@ -510,7 +510,7 @@
510
510
  "__schema": "KeywordTypeSchema",
511
511
  "location": {
512
512
  "filePath": "forking.main.runtime.ts",
513
- "line": 193,
513
+ "line": 197,
514
514
  "character": 15
515
515
  },
516
516
  "name": "string"
@@ -522,7 +522,7 @@
522
522
  "__schema": "ParameterSchema",
523
523
  "location": {
524
524
  "filePath": "forking.main.runtime.ts",
525
- "line": 194,
525
+ "line": 198,
526
526
  "character": 5
527
527
  },
528
528
  "name": "options",
@@ -530,7 +530,7 @@
530
530
  "__schema": "TypeRefSchema",
531
531
  "location": {
532
532
  "filePath": "forking.main.runtime.ts",
533
- "line": 194,
533
+ "line": 198,
534
534
  "character": 15
535
535
  },
536
536
  "name": "ScopeForkOptions"
@@ -543,7 +543,7 @@
543
543
  "__schema": "TypeRefSchema",
544
544
  "location": {
545
545
  "filePath": "forking.main.runtime.ts",
546
- "line": 195,
546
+ "line": 199,
547
547
  "character": 6
548
548
  },
549
549
  "name": "Promise",
@@ -552,14 +552,14 @@
552
552
  "__schema": "TypeArraySchema",
553
553
  "location": {
554
554
  "filePath": "forking.main.runtime.ts",
555
- "line": 195,
555
+ "line": 199,
556
556
  "character": 14
557
557
  },
558
558
  "type": {
559
559
  "__schema": "TypeRefSchema",
560
560
  "location": {
561
561
  "filePath": "forking.main.runtime.ts",
562
- "line": 195,
562
+ "line": 199,
563
563
  "character": 14
564
564
  },
565
565
  "name": "ComponentID"
@@ -575,7 +575,7 @@
575
575
  "__schema": "FunctionLikeSchema",
576
576
  "location": {
577
577
  "filePath": "forking.main.runtime.ts",
578
- "line": 259,
578
+ "line": 263,
579
579
  "character": 3
580
580
  },
581
581
  "signature": "(method) ForkingMain.forkRemoteComponent(sourceId: ComponentID, targetId?: string, options?: ForkOptions, shouldRefactorVariablesAndClasses?: boolean): Promise<{\n targetCompId: ComponentID;\n component: Component;\n}>",
@@ -585,7 +585,7 @@
585
585
  "__schema": "ParameterSchema",
586
586
  "location": {
587
587
  "filePath": "forking.main.runtime.ts",
588
- "line": 260,
588
+ "line": 264,
589
589
  "character": 5
590
590
  },
591
591
  "name": "sourceId",
@@ -593,7 +593,7 @@
593
593
  "__schema": "TypeRefSchema",
594
594
  "location": {
595
595
  "filePath": "forking.main.runtime.ts",
596
- "line": 260,
596
+ "line": 264,
597
597
  "character": 15
598
598
  },
599
599
  "name": "ComponentID"
@@ -605,7 +605,7 @@
605
605
  "__schema": "ParameterSchema",
606
606
  "location": {
607
607
  "filePath": "forking.main.runtime.ts",
608
- "line": 261,
608
+ "line": 265,
609
609
  "character": 5
610
610
  },
611
611
  "name": "targetId",
@@ -613,7 +613,7 @@
613
613
  "__schema": "KeywordTypeSchema",
614
614
  "location": {
615
615
  "filePath": "forking.main.runtime.ts",
616
- "line": 261,
616
+ "line": 265,
617
617
  "character": 16
618
618
  },
619
619
  "name": "string"
@@ -625,7 +625,7 @@
625
625
  "__schema": "ParameterSchema",
626
626
  "location": {
627
627
  "filePath": "forking.main.runtime.ts",
628
- "line": 262,
628
+ "line": 266,
629
629
  "character": 5
630
630
  },
631
631
  "name": "options",
@@ -633,7 +633,7 @@
633
633
  "__schema": "TypeRefSchema",
634
634
  "location": {
635
635
  "filePath": "forking.main.runtime.ts",
636
- "line": 262,
636
+ "line": 266,
637
637
  "character": 15
638
638
  },
639
639
  "name": "ForkOptions"
@@ -645,7 +645,7 @@
645
645
  "__schema": "ParameterSchema",
646
646
  "location": {
647
647
  "filePath": "forking.main.runtime.ts",
648
- "line": 263,
648
+ "line": 267,
649
649
  "character": 5
650
650
  },
651
651
  "name": "shouldRefactorVariablesAndClasses",
@@ -653,7 +653,7 @@
653
653
  "__schema": "InferenceTypeSchema",
654
654
  "location": {
655
655
  "filePath": "forking.main.runtime.ts",
656
- "line": 263,
656
+ "line": 267,
657
657
  "character": 5
658
658
  },
659
659
  "type": "boolean"
@@ -667,7 +667,7 @@
667
667
  "__schema": "TypeRefSchema",
668
668
  "location": {
669
669
  "filePath": "forking.main.runtime.ts",
670
- "line": 264,
670
+ "line": 268,
671
671
  "character": 6
672
672
  },
673
673
  "name": "Promise",
@@ -676,7 +676,7 @@
676
676
  "__schema": "TypeLiteralSchema",
677
677
  "location": {
678
678
  "filePath": "forking.main.runtime.ts",
679
- "line": 264,
679
+ "line": 268,
680
680
  "character": 14
681
681
  },
682
682
  "members": [
@@ -684,7 +684,7 @@
684
684
  "__schema": "VariableLikeSchema",
685
685
  "location": {
686
686
  "filePath": "forking.main.runtime.ts",
687
- "line": 265,
687
+ "line": 269,
688
688
  "character": 5
689
689
  },
690
690
  "signature": "(property) targetCompId: ComponentID",
@@ -693,7 +693,7 @@
693
693
  "__schema": "TypeRefSchema",
694
694
  "location": {
695
695
  "filePath": "forking.main.runtime.ts",
696
- "line": 265,
696
+ "line": 269,
697
697
  "character": 5
698
698
  },
699
699
  "name": "ComponentID",
@@ -709,7 +709,7 @@
709
709
  "__schema": "VariableLikeSchema",
710
710
  "location": {
711
711
  "filePath": "forking.main.runtime.ts",
712
- "line": 266,
712
+ "line": 270,
713
713
  "character": 5
714
714
  },
715
715
  "signature": "(property) component: Component",
@@ -718,7 +718,7 @@
718
718
  "__schema": "TypeRefSchema",
719
719
  "location": {
720
720
  "filePath": "forking.main.runtime.ts",
721
- "line": 266,
721
+ "line": 270,
722
722
  "character": 5
723
723
  },
724
724
  "name": "Component",
@@ -741,7 +741,7 @@
741
741
  "__schema": "VariableLikeSchema",
742
742
  "location": {
743
743
  "filePath": "forking.main.runtime.ts",
744
- "line": 357,
744
+ "line": 361,
745
745
  "character": 3
746
746
  },
747
747
  "signature": "(property) ForkingMain.slots: never[]",
@@ -750,7 +750,7 @@
750
750
  "__schema": "InferenceTypeSchema",
751
751
  "location": {
752
752
  "filePath": "forking.main.runtime.ts",
753
- "line": 357,
753
+ "line": 361,
754
754
  "character": 3
755
755
  },
756
756
  "type": "never[]"
@@ -762,7 +762,7 @@
762
762
  "__schema": "VariableLikeSchema",
763
763
  "location": {
764
764
  "filePath": "forking.main.runtime.ts",
765
- "line": 358,
765
+ "line": 362,
766
766
  "character": 3
767
767
  },
768
768
  "signature": "(property) ForkingMain.dependencies: Aspect[]",
@@ -771,7 +771,7 @@
771
771
  "__schema": "InferenceTypeSchema",
772
772
  "location": {
773
773
  "filePath": "forking.main.runtime.ts",
774
- "line": 358,
774
+ "line": 362,
775
775
  "character": 3
776
776
  },
777
777
  "type": "Aspect[]"
@@ -783,7 +783,7 @@
783
783
  "__schema": "VariableLikeSchema",
784
784
  "location": {
785
785
  "filePath": "forking.main.runtime.ts",
786
- "line": 370,
786
+ "line": 374,
787
787
  "character": 3
788
788
  },
789
789
  "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
@@ -792,7 +792,7 @@
792
792
  "__schema": "InferenceTypeSchema",
793
793
  "location": {
794
794
  "filePath": "forking.main.runtime.ts",
795
- "line": 370,
795
+ "line": 374,
796
796
  "character": 3
797
797
  },
798
798
  "type": "RuntimeDefinition"
@@ -804,7 +804,7 @@
804
804
  "__schema": "FunctionLikeSchema",
805
805
  "location": {
806
806
  "filePath": "forking.main.runtime.ts",
807
- "line": 371,
807
+ "line": 375,
808
808
  "character": 3
809
809
  },
810
810
  "signature": "(method) ForkingMain.provider([cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n ScopeMain,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
@@ -814,7 +814,7 @@
814
814
  "__schema": "ParameterSchema",
815
815
  "location": {
816
816
  "filePath": "forking.main.runtime.ts",
817
- "line": 371,
817
+ "line": 375,
818
818
  "character": 25
819
819
  },
820
820
  "name": "[ cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
@@ -822,7 +822,7 @@
822
822
  "__schema": "TupleTypeSchema",
823
823
  "location": {
824
824
  "filePath": "forking.main.runtime.ts",
825
- "line": 382,
825
+ "line": 386,
826
826
  "character": 6
827
827
  },
828
828
  "elements": [
@@ -830,7 +830,7 @@
830
830
  "__schema": "TypeRefSchema",
831
831
  "location": {
832
832
  "filePath": "forking.main.runtime.ts",
833
- "line": 383,
833
+ "line": 387,
834
834
  "character": 5
835
835
  },
836
836
  "name": "CLIMain"
@@ -839,7 +839,7 @@
839
839
  "__schema": "TypeRefSchema",
840
840
  "location": {
841
841
  "filePath": "forking.main.runtime.ts",
842
- "line": 384,
842
+ "line": 388,
843
843
  "character": 5
844
844
  },
845
845
  "name": "Workspace"
@@ -848,7 +848,7 @@
848
848
  "__schema": "TypeRefSchema",
849
849
  "location": {
850
850
  "filePath": "forking.main.runtime.ts",
851
- "line": 385,
851
+ "line": 389,
852
852
  "character": 5
853
853
  },
854
854
  "name": "ScopeMain"
@@ -857,7 +857,7 @@
857
857
  "__schema": "TypeRefSchema",
858
858
  "location": {
859
859
  "filePath": "forking.main.runtime.ts",
860
- "line": 386,
860
+ "line": 390,
861
861
  "character": 5
862
862
  },
863
863
  "name": "DependencyResolverMain"
@@ -866,7 +866,7 @@
866
866
  "__schema": "TypeRefSchema",
867
867
  "location": {
868
868
  "filePath": "forking.main.runtime.ts",
869
- "line": 387,
869
+ "line": 391,
870
870
  "character": 5
871
871
  },
872
872
  "name": "ComponentMain"
@@ -875,7 +875,7 @@
875
875
  "__schema": "TypeRefSchema",
876
876
  "location": {
877
877
  "filePath": "forking.main.runtime.ts",
878
- "line": 388,
878
+ "line": 392,
879
879
  "character": 5
880
880
  },
881
881
  "name": "NewComponentHelperMain"
@@ -884,7 +884,7 @@
884
884
  "__schema": "TypeRefSchema",
885
885
  "location": {
886
886
  "filePath": "forking.main.runtime.ts",
887
- "line": 389,
887
+ "line": 393,
888
888
  "character": 5
889
889
  },
890
890
  "name": "GraphqlMain"
@@ -893,7 +893,7 @@
893
893
  "__schema": "TypeRefSchema",
894
894
  "location": {
895
895
  "filePath": "forking.main.runtime.ts",
896
- "line": 390,
896
+ "line": 394,
897
897
  "character": 5
898
898
  },
899
899
  "name": "RefactoringMain"
@@ -902,7 +902,7 @@
902
902
  "__schema": "TypeRefSchema",
903
903
  "location": {
904
904
  "filePath": "forking.main.runtime.ts",
905
- "line": 391,
905
+ "line": 395,
906
906
  "character": 5
907
907
  },
908
908
  "name": "PkgMain"
@@ -911,7 +911,7 @@
911
911
  "__schema": "TypeRefSchema",
912
912
  "location": {
913
913
  "filePath": "forking.main.runtime.ts",
914
- "line": 392,
914
+ "line": 396,
915
915
  "character": 5
916
916
  },
917
917
  "name": "InstallMain"
@@ -926,7 +926,7 @@
926
926
  "__schema": "InferenceTypeSchema",
927
927
  "location": {
928
928
  "filePath": "forking.main.runtime.ts",
929
- "line": 371,
929
+ "line": 375,
930
930
  "character": 3
931
931
  },
932
932
  "type": "Promise<ForkingMain>"
@@ -1463,14 +1463,14 @@
1463
1463
  "__schema": "FunctionLikeSchema",
1464
1464
  "location": {
1465
1465
  "filePath": "forking.main.runtime.ts",
1466
- "line": 190,
1466
+ "line": 194,
1467
1467
  "character": 3
1468
1468
  },
1469
1469
  "doc": {
1470
1470
  "__schema": "DocSchema",
1471
1471
  "location": {
1472
1472
  "filePath": "forking.main.runtime.ts",
1473
- "line": 187,
1473
+ "line": 191,
1474
1474
  "character": 3
1475
1475
  },
1476
1476
  "raw": "/**\n * fork all components of the given scope\n */",
@@ -1484,7 +1484,7 @@
1484
1484
  "__schema": "ParameterSchema",
1485
1485
  "location": {
1486
1486
  "filePath": "forking.main.runtime.ts",
1487
- "line": 191,
1487
+ "line": 195,
1488
1488
  "character": 5
1489
1489
  },
1490
1490
  "name": "originalScope",
@@ -1492,7 +1492,7 @@
1492
1492
  "__schema": "KeywordTypeSchema",
1493
1493
  "location": {
1494
1494
  "filePath": "forking.main.runtime.ts",
1495
- "line": 191,
1495
+ "line": 195,
1496
1496
  "character": 20
1497
1497
  },
1498
1498
  "name": "string"
@@ -1504,7 +1504,7 @@
1504
1504
  "__schema": "ParameterSchema",
1505
1505
  "location": {
1506
1506
  "filePath": "forking.main.runtime.ts",
1507
- "line": 192,
1507
+ "line": 196,
1508
1508
  "character": 5
1509
1509
  },
1510
1510
  "name": "newOptionalScope",
@@ -1512,7 +1512,7 @@
1512
1512
  "__schema": "KeywordTypeSchema",
1513
1513
  "location": {
1514
1514
  "filePath": "forking.main.runtime.ts",
1515
- "line": 192,
1515
+ "line": 196,
1516
1516
  "character": 24
1517
1517
  },
1518
1518
  "name": "string"
@@ -1524,7 +1524,7 @@
1524
1524
  "__schema": "ParameterSchema",
1525
1525
  "location": {
1526
1526
  "filePath": "forking.main.runtime.ts",
1527
- "line": 193,
1527
+ "line": 197,
1528
1528
  "character": 5
1529
1529
  },
1530
1530
  "name": "pattern",
@@ -1532,7 +1532,7 @@
1532
1532
  "__schema": "KeywordTypeSchema",
1533
1533
  "location": {
1534
1534
  "filePath": "forking.main.runtime.ts",
1535
- "line": 193,
1535
+ "line": 197,
1536
1536
  "character": 15
1537
1537
  },
1538
1538
  "name": "string"
@@ -1544,7 +1544,7 @@
1544
1544
  "__schema": "ParameterSchema",
1545
1545
  "location": {
1546
1546
  "filePath": "forking.main.runtime.ts",
1547
- "line": 194,
1547
+ "line": 198,
1548
1548
  "character": 5
1549
1549
  },
1550
1550
  "name": "options",
@@ -1552,7 +1552,7 @@
1552
1552
  "__schema": "TypeRefSchema",
1553
1553
  "location": {
1554
1554
  "filePath": "forking.main.runtime.ts",
1555
- "line": 194,
1555
+ "line": 198,
1556
1556
  "character": 15
1557
1557
  },
1558
1558
  "name": "ScopeForkOptions"
@@ -1565,7 +1565,7 @@
1565
1565
  "__schema": "TypeRefSchema",
1566
1566
  "location": {
1567
1567
  "filePath": "forking.main.runtime.ts",
1568
- "line": 195,
1568
+ "line": 199,
1569
1569
  "character": 6
1570
1570
  },
1571
1571
  "name": "Promise",
@@ -1574,14 +1574,14 @@
1574
1574
  "__schema": "TypeArraySchema",
1575
1575
  "location": {
1576
1576
  "filePath": "forking.main.runtime.ts",
1577
- "line": 195,
1577
+ "line": 199,
1578
1578
  "character": 14
1579
1579
  },
1580
1580
  "type": {
1581
1581
  "__schema": "TypeRefSchema",
1582
1582
  "location": {
1583
1583
  "filePath": "forking.main.runtime.ts",
1584
- "line": 195,
1584
+ "line": 199,
1585
1585
  "character": 14
1586
1586
  },
1587
1587
  "name": "ComponentID"
@@ -1597,7 +1597,7 @@
1597
1597
  "__schema": "FunctionLikeSchema",
1598
1598
  "location": {
1599
1599
  "filePath": "forking.main.runtime.ts",
1600
- "line": 259,
1600
+ "line": 263,
1601
1601
  "character": 3
1602
1602
  },
1603
1603
  "signature": "(method) ForkingMain.forkRemoteComponent(sourceId: ComponentID, targetId?: string, options?: ForkOptions, shouldRefactorVariablesAndClasses?: boolean): Promise<{\n targetCompId: ComponentID;\n component: Component;\n}>",
@@ -1607,7 +1607,7 @@
1607
1607
  "__schema": "ParameterSchema",
1608
1608
  "location": {
1609
1609
  "filePath": "forking.main.runtime.ts",
1610
- "line": 260,
1610
+ "line": 264,
1611
1611
  "character": 5
1612
1612
  },
1613
1613
  "name": "sourceId",
@@ -1615,7 +1615,7 @@
1615
1615
  "__schema": "TypeRefSchema",
1616
1616
  "location": {
1617
1617
  "filePath": "forking.main.runtime.ts",
1618
- "line": 260,
1618
+ "line": 264,
1619
1619
  "character": 15
1620
1620
  },
1621
1621
  "name": "ComponentID"
@@ -1627,7 +1627,7 @@
1627
1627
  "__schema": "ParameterSchema",
1628
1628
  "location": {
1629
1629
  "filePath": "forking.main.runtime.ts",
1630
- "line": 261,
1630
+ "line": 265,
1631
1631
  "character": 5
1632
1632
  },
1633
1633
  "name": "targetId",
@@ -1635,7 +1635,7 @@
1635
1635
  "__schema": "KeywordTypeSchema",
1636
1636
  "location": {
1637
1637
  "filePath": "forking.main.runtime.ts",
1638
- "line": 261,
1638
+ "line": 265,
1639
1639
  "character": 16
1640
1640
  },
1641
1641
  "name": "string"
@@ -1647,7 +1647,7 @@
1647
1647
  "__schema": "ParameterSchema",
1648
1648
  "location": {
1649
1649
  "filePath": "forking.main.runtime.ts",
1650
- "line": 262,
1650
+ "line": 266,
1651
1651
  "character": 5
1652
1652
  },
1653
1653
  "name": "options",
@@ -1655,7 +1655,7 @@
1655
1655
  "__schema": "TypeRefSchema",
1656
1656
  "location": {
1657
1657
  "filePath": "forking.main.runtime.ts",
1658
- "line": 262,
1658
+ "line": 266,
1659
1659
  "character": 15
1660
1660
  },
1661
1661
  "name": "ForkOptions"
@@ -1667,7 +1667,7 @@
1667
1667
  "__schema": "ParameterSchema",
1668
1668
  "location": {
1669
1669
  "filePath": "forking.main.runtime.ts",
1670
- "line": 263,
1670
+ "line": 267,
1671
1671
  "character": 5
1672
1672
  },
1673
1673
  "name": "shouldRefactorVariablesAndClasses",
@@ -1675,7 +1675,7 @@
1675
1675
  "__schema": "InferenceTypeSchema",
1676
1676
  "location": {
1677
1677
  "filePath": "forking.main.runtime.ts",
1678
- "line": 263,
1678
+ "line": 267,
1679
1679
  "character": 5
1680
1680
  },
1681
1681
  "type": "boolean"
@@ -1689,7 +1689,7 @@
1689
1689
  "__schema": "TypeRefSchema",
1690
1690
  "location": {
1691
1691
  "filePath": "forking.main.runtime.ts",
1692
- "line": 264,
1692
+ "line": 268,
1693
1693
  "character": 6
1694
1694
  },
1695
1695
  "name": "Promise",
@@ -1698,7 +1698,7 @@
1698
1698
  "__schema": "TypeLiteralSchema",
1699
1699
  "location": {
1700
1700
  "filePath": "forking.main.runtime.ts",
1701
- "line": 264,
1701
+ "line": 268,
1702
1702
  "character": 14
1703
1703
  },
1704
1704
  "members": [
@@ -1706,7 +1706,7 @@
1706
1706
  "__schema": "VariableLikeSchema",
1707
1707
  "location": {
1708
1708
  "filePath": "forking.main.runtime.ts",
1709
- "line": 265,
1709
+ "line": 269,
1710
1710
  "character": 5
1711
1711
  },
1712
1712
  "signature": "(property) targetCompId: ComponentID",
@@ -1715,7 +1715,7 @@
1715
1715
  "__schema": "TypeRefSchema",
1716
1716
  "location": {
1717
1717
  "filePath": "forking.main.runtime.ts",
1718
- "line": 265,
1718
+ "line": 269,
1719
1719
  "character": 5
1720
1720
  },
1721
1721
  "name": "ComponentID",
@@ -1731,7 +1731,7 @@
1731
1731
  "__schema": "VariableLikeSchema",
1732
1732
  "location": {
1733
1733
  "filePath": "forking.main.runtime.ts",
1734
- "line": 266,
1734
+ "line": 270,
1735
1735
  "character": 5
1736
1736
  },
1737
1737
  "signature": "(property) component: Component",
@@ -1740,7 +1740,7 @@
1740
1740
  "__schema": "TypeRefSchema",
1741
1741
  "location": {
1742
1742
  "filePath": "forking.main.runtime.ts",
1743
- "line": 266,
1743
+ "line": 270,
1744
1744
  "character": 5
1745
1745
  },
1746
1746
  "name": "Component",
@@ -1763,7 +1763,7 @@
1763
1763
  "__schema": "VariableLikeSchema",
1764
1764
  "location": {
1765
1765
  "filePath": "forking.main.runtime.ts",
1766
- "line": 357,
1766
+ "line": 361,
1767
1767
  "character": 3
1768
1768
  },
1769
1769
  "signature": "(property) ForkingMain.slots: never[]",
@@ -1772,7 +1772,7 @@
1772
1772
  "__schema": "InferenceTypeSchema",
1773
1773
  "location": {
1774
1774
  "filePath": "forking.main.runtime.ts",
1775
- "line": 357,
1775
+ "line": 361,
1776
1776
  "character": 3
1777
1777
  },
1778
1778
  "type": "never[]"
@@ -1784,7 +1784,7 @@
1784
1784
  "__schema": "VariableLikeSchema",
1785
1785
  "location": {
1786
1786
  "filePath": "forking.main.runtime.ts",
1787
- "line": 358,
1787
+ "line": 362,
1788
1788
  "character": 3
1789
1789
  },
1790
1790
  "signature": "(property) ForkingMain.dependencies: Aspect[]",
@@ -1793,7 +1793,7 @@
1793
1793
  "__schema": "InferenceTypeSchema",
1794
1794
  "location": {
1795
1795
  "filePath": "forking.main.runtime.ts",
1796
- "line": 358,
1796
+ "line": 362,
1797
1797
  "character": 3
1798
1798
  },
1799
1799
  "type": "Aspect[]"
@@ -1805,7 +1805,7 @@
1805
1805
  "__schema": "VariableLikeSchema",
1806
1806
  "location": {
1807
1807
  "filePath": "forking.main.runtime.ts",
1808
- "line": 370,
1808
+ "line": 374,
1809
1809
  "character": 3
1810
1810
  },
1811
1811
  "signature": "(property) ForkingMain.runtime: RuntimeDefinition",
@@ -1814,7 +1814,7 @@
1814
1814
  "__schema": "InferenceTypeSchema",
1815
1815
  "location": {
1816
1816
  "filePath": "forking.main.runtime.ts",
1817
- "line": 370,
1817
+ "line": 374,
1818
1818
  "character": 3
1819
1819
  },
1820
1820
  "type": "RuntimeDefinition"
@@ -1826,7 +1826,7 @@
1826
1826
  "__schema": "FunctionLikeSchema",
1827
1827
  "location": {
1828
1828
  "filePath": "forking.main.runtime.ts",
1829
- "line": 371,
1829
+ "line": 375,
1830
1830
  "character": 3
1831
1831
  },
1832
1832
  "signature": "(method) ForkingMain.provider([cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install,]: [\n CLIMain,\n Workspace,\n ScopeMain,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain\n]): Promise<ForkingMain>",
@@ -1836,7 +1836,7 @@
1836
1836
  "__schema": "ParameterSchema",
1837
1837
  "location": {
1838
1838
  "filePath": "forking.main.runtime.ts",
1839
- "line": 371,
1839
+ "line": 375,
1840
1840
  "character": 25
1841
1841
  },
1842
1842
  "name": "[ cli, workspace, scope, dependencyResolver, componentMain, newComponentHelper, graphql, refactoring, pkg, install ]",
@@ -1844,7 +1844,7 @@
1844
1844
  "__schema": "TupleTypeSchema",
1845
1845
  "location": {
1846
1846
  "filePath": "forking.main.runtime.ts",
1847
- "line": 382,
1847
+ "line": 386,
1848
1848
  "character": 6
1849
1849
  },
1850
1850
  "elements": [
@@ -1852,7 +1852,7 @@
1852
1852
  "__schema": "TypeRefSchema",
1853
1853
  "location": {
1854
1854
  "filePath": "forking.main.runtime.ts",
1855
- "line": 383,
1855
+ "line": 387,
1856
1856
  "character": 5
1857
1857
  },
1858
1858
  "name": "CLIMain"
@@ -1861,7 +1861,7 @@
1861
1861
  "__schema": "TypeRefSchema",
1862
1862
  "location": {
1863
1863
  "filePath": "forking.main.runtime.ts",
1864
- "line": 384,
1864
+ "line": 388,
1865
1865
  "character": 5
1866
1866
  },
1867
1867
  "name": "Workspace"
@@ -1870,7 +1870,7 @@
1870
1870
  "__schema": "TypeRefSchema",
1871
1871
  "location": {
1872
1872
  "filePath": "forking.main.runtime.ts",
1873
- "line": 385,
1873
+ "line": 389,
1874
1874
  "character": 5
1875
1875
  },
1876
1876
  "name": "ScopeMain"
@@ -1879,7 +1879,7 @@
1879
1879
  "__schema": "TypeRefSchema",
1880
1880
  "location": {
1881
1881
  "filePath": "forking.main.runtime.ts",
1882
- "line": 386,
1882
+ "line": 390,
1883
1883
  "character": 5
1884
1884
  },
1885
1885
  "name": "DependencyResolverMain"
@@ -1888,7 +1888,7 @@
1888
1888
  "__schema": "TypeRefSchema",
1889
1889
  "location": {
1890
1890
  "filePath": "forking.main.runtime.ts",
1891
- "line": 387,
1891
+ "line": 391,
1892
1892
  "character": 5
1893
1893
  },
1894
1894
  "name": "ComponentMain"
@@ -1897,7 +1897,7 @@
1897
1897
  "__schema": "TypeRefSchema",
1898
1898
  "location": {
1899
1899
  "filePath": "forking.main.runtime.ts",
1900
- "line": 388,
1900
+ "line": 392,
1901
1901
  "character": 5
1902
1902
  },
1903
1903
  "name": "NewComponentHelperMain"
@@ -1906,7 +1906,7 @@
1906
1906
  "__schema": "TypeRefSchema",
1907
1907
  "location": {
1908
1908
  "filePath": "forking.main.runtime.ts",
1909
- "line": 389,
1909
+ "line": 393,
1910
1910
  "character": 5
1911
1911
  },
1912
1912
  "name": "GraphqlMain"
@@ -1915,7 +1915,7 @@
1915
1915
  "__schema": "TypeRefSchema",
1916
1916
  "location": {
1917
1917
  "filePath": "forking.main.runtime.ts",
1918
- "line": 390,
1918
+ "line": 394,
1919
1919
  "character": 5
1920
1920
  },
1921
1921
  "name": "RefactoringMain"
@@ -1924,7 +1924,7 @@
1924
1924
  "__schema": "TypeRefSchema",
1925
1925
  "location": {
1926
1926
  "filePath": "forking.main.runtime.ts",
1927
- "line": 391,
1927
+ "line": 395,
1928
1928
  "character": 5
1929
1929
  },
1930
1930
  "name": "PkgMain"
@@ -1933,7 +1933,7 @@
1933
1933
  "__schema": "TypeRefSchema",
1934
1934
  "location": {
1935
1935
  "filePath": "forking.main.runtime.ts",
1936
- "line": 392,
1936
+ "line": 396,
1937
1937
  "character": 5
1938
1938
  },
1939
1939
  "name": "InstallMain"
@@ -1948,7 +1948,7 @@
1948
1948
  "__schema": "InferenceTypeSchema",
1949
1949
  "location": {
1950
1950
  "filePath": "forking.main.runtime.ts",
1951
- "line": 371,
1951
+ "line": 375,
1952
1952
  "character": 3
1953
1953
  },
1954
1954
  "type": "Promise<ForkingMain>"
@@ -1966,7 +1966,7 @@
1966
1966
  "__schema": "TypeSchema",
1967
1967
  "location": {
1968
1968
  "filePath": "forking.main.runtime.ts",
1969
- "line": 416,
1969
+ "line": 420,
1970
1970
  "character": 1
1971
1971
  },
1972
1972
  "signature": "type ForkConfig = {\n forkedFrom: ComponentIdObj;\n}",
@@ -1975,7 +1975,7 @@
1975
1975
  "__schema": "TypeLiteralSchema",
1976
1976
  "location": {
1977
1977
  "filePath": "forking.main.runtime.ts",
1978
- "line": 416,
1978
+ "line": 420,
1979
1979
  "character": 26
1980
1980
  },
1981
1981
  "members": [
@@ -1983,7 +1983,7 @@
1983
1983
  "__schema": "VariableLikeSchema",
1984
1984
  "location": {
1985
1985
  "filePath": "forking.main.runtime.ts",
1986
- "line": 417,
1986
+ "line": 421,
1987
1987
  "character": 3
1988
1988
  },
1989
1989
  "signature": "(property) forkedFrom: ComponentIdObj",
@@ -1992,7 +1992,7 @@
1992
1992
  "__schema": "TypeRefSchema",
1993
1993
  "location": {
1994
1994
  "filePath": "forking.main.runtime.ts",
1995
- "line": 417,
1995
+ "line": 421,
1996
1996
  "character": 3
1997
1997
  },
1998
1998
  "name": "ComponentIdObj",
@@ -2353,7 +2353,7 @@
2353
2353
  "__schema": "UnImplementedSchema",
2354
2354
  "location": {
2355
2355
  "filePath": "forking.main.runtime.ts",
2356
- "line": 414,
2356
+ "line": 418,
2357
2357
  "character": 1
2358
2358
  },
2359
2359
  "name": "ForkingAspect.addRuntime(ForkingMain);",
@@ -2402,7 +2402,7 @@
2402
2402
  "componentId": {
2403
2403
  "scope": "teambit.component",
2404
2404
  "name": "forking",
2405
- "version": "1.0.446"
2405
+ "version": "1.0.448"
2406
2406
  },
2407
2407
  "taggedModuleExports": []
2408
2408
  }
@@ -273,7 +273,9 @@ class ForkingMain {
273
273
  oldPackages.push(oldPackageName);
274
274
  const newName = targetCompId.fullName.replace(/\//g, '.');
275
275
  const scopeToReplace = targetCompId.scope.replace('.', '/');
276
- const newPackageName = `@${scopeToReplace}.${newName}`;
276
+ // for locally hosted, the scope has no "/", so the package name would be "@scope/name".
277
+ // for the cloud, the package name would be "@org.scope/name".
278
+ const newPackageName = scopeToReplace.includes('/') ? `@${scopeToReplace}.${newName}` : `@${scopeToReplace}/${newName}`;
277
279
  return [{
278
280
  oldStr: oldPackageName,
279
281
  newStr: newPackageName
@@ -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","_scope","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ForkingMain","constructor","workspace","scope","install","dependencyResolver","newComponentHelper","refactoring","pkg","fork","sourceId","targetId","options","OutsideWorkspaceError","sourceCompId","resolveComponentId","exists","existingInWorkspace","get","forkExistingInWorkspace","sourceIdWithScope","_legacy","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","ScopeAspect","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';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\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 scope: ScopeMain,\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?.forkedFrom) 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 return results;\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 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.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 if (this.workspace) {\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, options, config);\n }\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 ScopeAspect,\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 scope,\n dependencyResolver,\n componentMain,\n newComponentHelper,\n graphql,\n refactoring,\n pkg,\n install,\n ]: [\n CLIMain,\n Workspace,\n ScopeMain,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain,\n ]) {\n const forkingMain = new ForkingMain(\n workspace,\n scope,\n install,\n dependencyResolver,\n newComponentHelper,\n refactoring,\n pkg\n );\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;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,oBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,mBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,SAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,QAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,kBAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,iBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,SAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,QAAA,YAAAA,CAAA;IAA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,CAAC;IAC5CD,YAAY,EAAEE,QAAQ,EAAEtM,IAAI,CAAC,KAAIuM,yBAAY,EAACT,WAAW,CAAC,CAAC;IAE3D,OAAOA,WAAW;EACpB;AACF;AAACU,OAAA,CAAAlL,WAAA,GAAAA,WAAA;AAAAhB,eAAA,CAxWYgB,WAAW,WAiTP,EAAE;AAAAhB,eAAA,CAjTNgB,WAAW,kBAkTA,CACpBmL,gBAAS,EACTC,4BAAe,EACfC,oBAAW,EACXC,8CAAwB,EACxBC,4BAAe,EACfC,8CAAwB,EACxBC,wBAAa,EACbC,gCAAiB,EACjBC,gBAAS,EACTC,wBAAa,CACd;AAAA5M,eAAA,CA7TUgB,WAAW,aA8TL6L,kBAAW;AA4C9B3J,wBAAa,CAAC4J,UAAU,CAAC9L,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","_scope","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ForkingMain","constructor","workspace","scope","install","dependencyResolver","newComponentHelper","refactoring","pkg","fork","sourceId","targetId","options","OutsideWorkspaceError","sourceCompId","resolveComponentId","exists","existingInWorkspace","get","forkExistingInWorkspace","sourceIdWithScope","_legacy","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","includes","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","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","ScopeAspect","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';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\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 scope: ScopeMain,\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?.forkedFrom) 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 return results;\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 // for locally hosted, the scope has no \"/\", so the package name would be \"@scope/name\".\n // for the cloud, the package name would be \"@org.scope/name\".\n const newPackageName = scopeToReplace.includes('/')\n ? `@${scopeToReplace}.${newName}`\n : `@${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 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.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 if (this.workspace) {\n await this.newComponentHelper.writeAndAddNewComp(component, targetCompId, options, config);\n }\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 ScopeAspect,\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 scope,\n dependencyResolver,\n componentMain,\n newComponentHelper,\n graphql,\n refactoring,\n pkg,\n install,\n ]: [\n CLIMain,\n Workspace,\n ScopeMain,\n DependencyResolverMain,\n ComponentMain,\n NewComponentHelperMain,\n GraphqlMain,\n RefactoringMain,\n PkgMain,\n InstallMain,\n ]) {\n const forkingMain = new ForkingMain(\n workspace,\n scope,\n install,\n dependencyResolver,\n newComponentHelper,\n refactoring,\n pkg\n );\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;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,oBAAA;EAA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EACLE,kBAAkB,EAClBiK,aAAa,EACbhK,kBAAkB,EAClBiK,OAAO,EACPhK,WAAW,EACXC,GAAG,EACHJ,OAAO,CAYR,EAAE;IACD,MAAMoK,WAAW,GAAG,IAAIxK,WAAW,CACjCE,SAAS,EACTC,KAAK,EACLC,OAAO,EACPC,kBAAkB,EAClBC,kBAAkB,EAClBC,WAAW,EACXC,GACF,CAAC;IACD6J,GAAG,CAACI,QAAQ,CAAC,KAAIC,eAAO,EAACF,WAAW,CAAC,CAAC;IACtCD,OAAO,CAACE,QAAQ,CAAC,IAAAE,yBAAa,EAACH,WAAW,CAAC,CAAC;IAC5CF,aAAa,CAACM,qBAAqB,CAAC,CAAC,KAAIC,2BAAe,EAACL,WAAW,CAAC,CAAC,CAAC;IAEvE,MAAMM,YAAY,GAAGT,GAAG,CAACU,UAAU,CAAC,OAAO,CAAC;IAC5CD,YAAY,EAAEE,QAAQ,EAAEtM,IAAI,CAAC,KAAIuM,yBAAY,EAACT,WAAW,CAAC,CAAC;IAE3D,OAAOA,WAAW;EACpB;AACF;AAACU,OAAA,CAAAlL,WAAA,GAAAA,WAAA;AAAAhB,eAAA,CA5WYgB,WAAW,WAqTP,EAAE;AAAAhB,eAAA,CArTNgB,WAAW,kBAsTA,CACpBmL,gBAAS,EACTC,4BAAe,EACfC,oBAAW,EACXC,8CAAwB,EACxBC,4BAAe,EACfC,8CAAwB,EACxBC,wBAAa,EACbC,gCAAiB,EACjBC,gBAAS,EACTC,wBAAa,CACd;AAAA5M,eAAA,CAjUUgB,WAAW,aAkUL6L,kBAAW;AA4C9B3J,wBAAa,CAAC4J,UAAU,CAAC9L,WAAW,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.446/dist/forking.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.446/dist/forking.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.448/dist/forking.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.448/dist/forking.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/forking",
3
- "version": "1.0.446",
3
+ "version": "1.0.448",
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.446"
9
+ "version": "1.0.448"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -18,19 +18,19 @@
18
18
  "@teambit/bit-error": "0.0.404",
19
19
  "@teambit/component-id": "1.2.2",
20
20
  "@teambit/component-version": "1.0.3",
21
- "@teambit/cli": "0.0.1023",
22
- "@teambit/generator": "1.0.447",
23
- "@teambit/component": "1.0.446",
24
- "@teambit/graphql": "1.0.446",
21
+ "@teambit/cli": "0.0.1025",
22
+ "@teambit/generator": "1.0.449",
23
+ "@teambit/component": "1.0.448",
24
+ "@teambit/graphql": "1.0.448",
25
25
  "@teambit/component-package-version": "0.0.434",
26
- "@teambit/dependency-resolver": "1.0.446",
27
- "@teambit/install": "1.0.446",
28
- "@teambit/new-component-helper": "1.0.446",
29
- "@teambit/pkg": "1.0.446",
30
- "@teambit/refactoring": "1.0.446",
31
- "@teambit/scope": "1.0.446",
32
- "@teambit/typescript": "1.0.446",
33
- "@teambit/workspace": "1.0.446"
26
+ "@teambit/dependency-resolver": "1.0.448",
27
+ "@teambit/install": "1.0.448",
28
+ "@teambit/new-component-helper": "1.0.448",
29
+ "@teambit/pkg": "1.0.448",
30
+ "@teambit/refactoring": "1.0.448",
31
+ "@teambit/scope": "1.0.448",
32
+ "@teambit/typescript": "1.0.448",
33
+ "@teambit/workspace": "1.0.448"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/lodash": "4.14.165",