@teambit/renaming 1.0.270 → 1.0.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_renaming-preview.js +1 -1
- package/artifacts/schema.json +89 -89
- package/dist/{preview-1715509699621.js → preview-1715656872728.js} +2 -2
- package/dist/renaming.main.runtime.js +2 -0
- package/dist/renaming.main.runtime.js.map +1 -1
- package/package.json +14 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="1" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.component/renaming@1.0.
|
|
3
|
+
<testsuite name="teambit.component/renaming@1.0.271" tests="1" failures="0" errors="0" skipped="0">
|
|
4
4
|
<testcase classname="dist/renaming.spec.js" name="should bring the files back"/>
|
|
5
5
|
</testsuite>
|
|
6
6
|
</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/renaming-preview"]=t():e["teambit.component/renaming-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/renaming-preview"]=t():e["teambit.component/renaming-preview"]=t()}(self,(()=>(()=>{"use strict";var e={87255:(e,t,o)=>{var n={id:"teambit.component/renaming@1.0.271",homepage:"https://bit.cloud/teambit/component/renaming",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/rename.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:()=>u,compositions_metadata:()=>m,overview:()=>f});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(87255);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function a(){return a=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},a.apply(this,arguments)}var c={},s="wrapper";function d(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,a({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],f=[e],m={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -739,14 +739,14 @@
|
|
|
739
739
|
"__schema": "FunctionLikeSchema",
|
|
740
740
|
"location": {
|
|
741
741
|
"filePath": "renaming.main.runtime.ts",
|
|
742
|
-
"line":
|
|
742
|
+
"line": 219,
|
|
743
743
|
"character": 3
|
|
744
744
|
},
|
|
745
745
|
"doc": {
|
|
746
746
|
"__schema": "DocSchema",
|
|
747
747
|
"location": {
|
|
748
748
|
"filePath": "renaming.main.runtime.ts",
|
|
749
|
-
"line":
|
|
749
|
+
"line": 213,
|
|
750
750
|
"character": 3
|
|
751
751
|
},
|
|
752
752
|
"raw": "/**\n * change the default-scope for new components. optionally (if refactor is true), change the source code to match the\n * new scope-name.\n * keep in mind that this is working for new components only, for tagged/exported it's impossible. See the errors\n * thrown in such cases in this method.\n */",
|
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
"__schema": "ParameterSchema",
|
|
760
760
|
"location": {
|
|
761
761
|
"filePath": "renaming.main.runtime.ts",
|
|
762
|
-
"line":
|
|
762
|
+
"line": 220,
|
|
763
763
|
"character": 5
|
|
764
764
|
},
|
|
765
765
|
"name": "oldOwner",
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
"__schema": "KeywordTypeSchema",
|
|
768
768
|
"location": {
|
|
769
769
|
"filePath": "renaming.main.runtime.ts",
|
|
770
|
-
"line":
|
|
770
|
+
"line": 220,
|
|
771
771
|
"character": 15
|
|
772
772
|
},
|
|
773
773
|
"name": "string"
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
"__schema": "ParameterSchema",
|
|
780
780
|
"location": {
|
|
781
781
|
"filePath": "renaming.main.runtime.ts",
|
|
782
|
-
"line":
|
|
782
|
+
"line": 221,
|
|
783
783
|
"character": 5
|
|
784
784
|
},
|
|
785
785
|
"name": "newOwner",
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
"__schema": "KeywordTypeSchema",
|
|
788
788
|
"location": {
|
|
789
789
|
"filePath": "renaming.main.runtime.ts",
|
|
790
|
-
"line":
|
|
790
|
+
"line": 221,
|
|
791
791
|
"character": 15
|
|
792
792
|
},
|
|
793
793
|
"name": "string"
|
|
@@ -799,7 +799,7 @@
|
|
|
799
799
|
"__schema": "ParameterSchema",
|
|
800
800
|
"location": {
|
|
801
801
|
"filePath": "renaming.main.runtime.ts",
|
|
802
|
-
"line":
|
|
802
|
+
"line": 222,
|
|
803
803
|
"character": 5
|
|
804
804
|
},
|
|
805
805
|
"name": "options",
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
"__schema": "TypeLiteralSchema",
|
|
808
808
|
"location": {
|
|
809
809
|
"filePath": "renaming.main.runtime.ts",
|
|
810
|
-
"line":
|
|
810
|
+
"line": 222,
|
|
811
811
|
"character": 14
|
|
812
812
|
},
|
|
813
813
|
"members": [
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
"__schema": "VariableLikeSchema",
|
|
816
816
|
"location": {
|
|
817
817
|
"filePath": "renaming.main.runtime.ts",
|
|
818
|
-
"line":
|
|
818
|
+
"line": 222,
|
|
819
819
|
"character": 16
|
|
820
820
|
},
|
|
821
821
|
"signature": "(property) refactor?: boolean | undefined",
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
"__schema": "KeywordTypeSchema",
|
|
825
825
|
"location": {
|
|
826
826
|
"filePath": "renaming.main.runtime.ts",
|
|
827
|
-
"line":
|
|
827
|
+
"line": 222,
|
|
828
828
|
"character": 27
|
|
829
829
|
},
|
|
830
830
|
"name": "boolean"
|
|
@@ -835,7 +835,7 @@
|
|
|
835
835
|
"__schema": "VariableLikeSchema",
|
|
836
836
|
"location": {
|
|
837
837
|
"filePath": "renaming.main.runtime.ts",
|
|
838
|
-
"line":
|
|
838
|
+
"line": 222,
|
|
839
839
|
"character": 36
|
|
840
840
|
},
|
|
841
841
|
"signature": "(property) ast?: boolean | undefined",
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
"__schema": "KeywordTypeSchema",
|
|
845
845
|
"location": {
|
|
846
846
|
"filePath": "renaming.main.runtime.ts",
|
|
847
|
-
"line":
|
|
847
|
+
"line": 222,
|
|
848
848
|
"character": 42
|
|
849
849
|
},
|
|
850
850
|
"name": "boolean"
|
|
@@ -861,7 +861,7 @@
|
|
|
861
861
|
"__schema": "TypeRefSchema",
|
|
862
862
|
"location": {
|
|
863
863
|
"filePath": "renaming.main.runtime.ts",
|
|
864
|
-
"line":
|
|
864
|
+
"line": 223,
|
|
865
865
|
"character": 6
|
|
866
866
|
},
|
|
867
867
|
"name": "Promise",
|
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
"__schema": "TypeRefSchema",
|
|
871
871
|
"location": {
|
|
872
872
|
"filePath": "renaming.main.runtime.ts",
|
|
873
|
-
"line":
|
|
873
|
+
"line": 223,
|
|
874
874
|
"character": 14
|
|
875
875
|
},
|
|
876
876
|
"name": "RenameResult",
|
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
"__schema": "VariableLikeSchema",
|
|
887
887
|
"location": {
|
|
888
888
|
"filePath": "renaming.main.runtime.ts",
|
|
889
|
-
"line":
|
|
889
|
+
"line": 296,
|
|
890
890
|
"character": 3
|
|
891
891
|
},
|
|
892
892
|
"signature": "(property) RenamingMain.slots: never[]",
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
"__schema": "InferenceTypeSchema",
|
|
896
896
|
"location": {
|
|
897
897
|
"filePath": "renaming.main.runtime.ts",
|
|
898
|
-
"line":
|
|
898
|
+
"line": 296,
|
|
899
899
|
"character": 3
|
|
900
900
|
},
|
|
901
901
|
"type": "never[]"
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
"__schema": "VariableLikeSchema",
|
|
908
908
|
"location": {
|
|
909
909
|
"filePath": "renaming.main.runtime.ts",
|
|
910
|
-
"line":
|
|
910
|
+
"line": 297,
|
|
911
911
|
"character": 3
|
|
912
912
|
},
|
|
913
913
|
"signature": "(property) RenamingMain.dependencies: Aspect[]",
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
"__schema": "InferenceTypeSchema",
|
|
917
917
|
"location": {
|
|
918
918
|
"filePath": "renaming.main.runtime.ts",
|
|
919
|
-
"line":
|
|
919
|
+
"line": 297,
|
|
920
920
|
"character": 3
|
|
921
921
|
},
|
|
922
922
|
"type": "Aspect[]"
|
|
@@ -928,7 +928,7 @@
|
|
|
928
928
|
"__schema": "VariableLikeSchema",
|
|
929
929
|
"location": {
|
|
930
930
|
"filePath": "renaming.main.runtime.ts",
|
|
931
|
-
"line":
|
|
931
|
+
"line": 313,
|
|
932
932
|
"character": 3
|
|
933
933
|
},
|
|
934
934
|
"signature": "(property) RenamingMain.runtime: RuntimeDefinition",
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
"__schema": "InferenceTypeSchema",
|
|
938
938
|
"location": {
|
|
939
939
|
"filePath": "renaming.main.runtime.ts",
|
|
940
|
-
"line":
|
|
940
|
+
"line": 313,
|
|
941
941
|
"character": 3
|
|
942
942
|
},
|
|
943
943
|
"type": "RuntimeDefinition"
|
|
@@ -949,7 +949,7 @@
|
|
|
949
949
|
"__schema": "FunctionLikeSchema",
|
|
950
950
|
"location": {
|
|
951
951
|
"filePath": "renaming.main.runtime.ts",
|
|
952
|
-
"line":
|
|
952
|
+
"line": 314,
|
|
953
953
|
"character": 3
|
|
954
954
|
},
|
|
955
955
|
"signature": "(method) RenamingMain.provider([cli, workspace, deprecation, newComponentHelper, componentMain, graphql, refactoring, install, config, componentWriter, compiler, loggerMain, envs, remove,]: [\n CLIMain,\n Workspace,\n DeprecationMain,\n NewComponentHelperMain,\n ComponentMain,\n GraphqlMain,\n RefactoringMain,\n InstallMain,\n ConfigMain,\n ComponentWriterMain,\n CompilerMain,\n LoggerMain,\n EnvsMain,\n RemoveMain\n]): Promise<RenamingMain>",
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
"__schema": "ParameterSchema",
|
|
960
960
|
"location": {
|
|
961
961
|
"filePath": "renaming.main.runtime.ts",
|
|
962
|
-
"line":
|
|
962
|
+
"line": 314,
|
|
963
963
|
"character": 25
|
|
964
964
|
},
|
|
965
965
|
"name": "[ cli, workspace, deprecation, newComponentHelper, componentMain, graphql, refactoring, install, config, componentWriter, compiler, loggerMain, envs, remove ]",
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
"__schema": "TupleTypeSchema",
|
|
968
968
|
"location": {
|
|
969
969
|
"filePath": "renaming.main.runtime.ts",
|
|
970
|
-
"line":
|
|
970
|
+
"line": 329,
|
|
971
971
|
"character": 6
|
|
972
972
|
},
|
|
973
973
|
"elements": [
|
|
@@ -975,7 +975,7 @@
|
|
|
975
975
|
"__schema": "TypeRefSchema",
|
|
976
976
|
"location": {
|
|
977
977
|
"filePath": "renaming.main.runtime.ts",
|
|
978
|
-
"line":
|
|
978
|
+
"line": 330,
|
|
979
979
|
"character": 5
|
|
980
980
|
},
|
|
981
981
|
"name": "CLIMain",
|
|
@@ -988,7 +988,7 @@
|
|
|
988
988
|
"__schema": "TypeRefSchema",
|
|
989
989
|
"location": {
|
|
990
990
|
"filePath": "renaming.main.runtime.ts",
|
|
991
|
-
"line":
|
|
991
|
+
"line": 331,
|
|
992
992
|
"character": 5
|
|
993
993
|
},
|
|
994
994
|
"name": "Workspace",
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
"__schema": "TypeRefSchema",
|
|
1002
1002
|
"location": {
|
|
1003
1003
|
"filePath": "renaming.main.runtime.ts",
|
|
1004
|
-
"line":
|
|
1004
|
+
"line": 332,
|
|
1005
1005
|
"character": 5
|
|
1006
1006
|
},
|
|
1007
1007
|
"name": "DeprecationMain",
|
|
@@ -1014,7 +1014,7 @@
|
|
|
1014
1014
|
"__schema": "TypeRefSchema",
|
|
1015
1015
|
"location": {
|
|
1016
1016
|
"filePath": "renaming.main.runtime.ts",
|
|
1017
|
-
"line":
|
|
1017
|
+
"line": 333,
|
|
1018
1018
|
"character": 5
|
|
1019
1019
|
},
|
|
1020
1020
|
"name": "NewComponentHelperMain",
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
"__schema": "TypeRefSchema",
|
|
1028
1028
|
"location": {
|
|
1029
1029
|
"filePath": "renaming.main.runtime.ts",
|
|
1030
|
-
"line":
|
|
1030
|
+
"line": 334,
|
|
1031
1031
|
"character": 5
|
|
1032
1032
|
},
|
|
1033
1033
|
"name": "ComponentMain",
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
"__schema": "TypeRefSchema",
|
|
1041
1041
|
"location": {
|
|
1042
1042
|
"filePath": "renaming.main.runtime.ts",
|
|
1043
|
-
"line":
|
|
1043
|
+
"line": 335,
|
|
1044
1044
|
"character": 5
|
|
1045
1045
|
},
|
|
1046
1046
|
"name": "GraphqlMain",
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
"__schema": "TypeRefSchema",
|
|
1054
1054
|
"location": {
|
|
1055
1055
|
"filePath": "renaming.main.runtime.ts",
|
|
1056
|
-
"line":
|
|
1056
|
+
"line": 336,
|
|
1057
1057
|
"character": 5
|
|
1058
1058
|
},
|
|
1059
1059
|
"name": "RefactoringMain",
|
|
@@ -1066,7 +1066,7 @@
|
|
|
1066
1066
|
"__schema": "TypeRefSchema",
|
|
1067
1067
|
"location": {
|
|
1068
1068
|
"filePath": "renaming.main.runtime.ts",
|
|
1069
|
-
"line":
|
|
1069
|
+
"line": 337,
|
|
1070
1070
|
"character": 5
|
|
1071
1071
|
},
|
|
1072
1072
|
"name": "InstallMain",
|
|
@@ -1079,7 +1079,7 @@
|
|
|
1079
1079
|
"__schema": "TypeRefSchema",
|
|
1080
1080
|
"location": {
|
|
1081
1081
|
"filePath": "renaming.main.runtime.ts",
|
|
1082
|
-
"line":
|
|
1082
|
+
"line": 338,
|
|
1083
1083
|
"character": 5
|
|
1084
1084
|
},
|
|
1085
1085
|
"name": "ConfigMain",
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
"__schema": "TypeRefSchema",
|
|
1093
1093
|
"location": {
|
|
1094
1094
|
"filePath": "renaming.main.runtime.ts",
|
|
1095
|
-
"line":
|
|
1095
|
+
"line": 339,
|
|
1096
1096
|
"character": 5
|
|
1097
1097
|
},
|
|
1098
1098
|
"name": "ComponentWriterMain",
|
|
@@ -1105,7 +1105,7 @@
|
|
|
1105
1105
|
"__schema": "TypeRefSchema",
|
|
1106
1106
|
"location": {
|
|
1107
1107
|
"filePath": "renaming.main.runtime.ts",
|
|
1108
|
-
"line":
|
|
1108
|
+
"line": 340,
|
|
1109
1109
|
"character": 5
|
|
1110
1110
|
},
|
|
1111
1111
|
"name": "CompilerMain",
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
"__schema": "TypeRefSchema",
|
|
1119
1119
|
"location": {
|
|
1120
1120
|
"filePath": "renaming.main.runtime.ts",
|
|
1121
|
-
"line":
|
|
1121
|
+
"line": 341,
|
|
1122
1122
|
"character": 5
|
|
1123
1123
|
},
|
|
1124
1124
|
"name": "LoggerMain",
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
"__schema": "TypeRefSchema",
|
|
1132
1132
|
"location": {
|
|
1133
1133
|
"filePath": "renaming.main.runtime.ts",
|
|
1134
|
-
"line":
|
|
1134
|
+
"line": 342,
|
|
1135
1135
|
"character": 5
|
|
1136
1136
|
},
|
|
1137
1137
|
"name": "EnvsMain",
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
"__schema": "TypeRefSchema",
|
|
1145
1145
|
"location": {
|
|
1146
1146
|
"filePath": "renaming.main.runtime.ts",
|
|
1147
|
-
"line":
|
|
1147
|
+
"line": 343,
|
|
1148
1148
|
"character": 5
|
|
1149
1149
|
},
|
|
1150
1150
|
"name": "RemoveMain",
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
"__schema": "InferenceTypeSchema",
|
|
1164
1164
|
"location": {
|
|
1165
1165
|
"filePath": "renaming.main.runtime.ts",
|
|
1166
|
-
"line":
|
|
1166
|
+
"line": 314,
|
|
1167
1167
|
"character": 3
|
|
1168
1168
|
},
|
|
1169
1169
|
"type": "Promise<RenamingMain>"
|
|
@@ -2034,14 +2034,14 @@
|
|
|
2034
2034
|
"__schema": "FunctionLikeSchema",
|
|
2035
2035
|
"location": {
|
|
2036
2036
|
"filePath": "renaming.main.runtime.ts",
|
|
2037
|
-
"line":
|
|
2037
|
+
"line": 219,
|
|
2038
2038
|
"character": 3
|
|
2039
2039
|
},
|
|
2040
2040
|
"doc": {
|
|
2041
2041
|
"__schema": "DocSchema",
|
|
2042
2042
|
"location": {
|
|
2043
2043
|
"filePath": "renaming.main.runtime.ts",
|
|
2044
|
-
"line":
|
|
2044
|
+
"line": 213,
|
|
2045
2045
|
"character": 3
|
|
2046
2046
|
},
|
|
2047
2047
|
"raw": "/**\n * change the default-scope for new components. optionally (if refactor is true), change the source code to match the\n * new scope-name.\n * keep in mind that this is working for new components only, for tagged/exported it's impossible. See the errors\n * thrown in such cases in this method.\n */",
|
|
@@ -2054,7 +2054,7 @@
|
|
|
2054
2054
|
"__schema": "ParameterSchema",
|
|
2055
2055
|
"location": {
|
|
2056
2056
|
"filePath": "renaming.main.runtime.ts",
|
|
2057
|
-
"line":
|
|
2057
|
+
"line": 220,
|
|
2058
2058
|
"character": 5
|
|
2059
2059
|
},
|
|
2060
2060
|
"name": "oldOwner",
|
|
@@ -2062,7 +2062,7 @@
|
|
|
2062
2062
|
"__schema": "KeywordTypeSchema",
|
|
2063
2063
|
"location": {
|
|
2064
2064
|
"filePath": "renaming.main.runtime.ts",
|
|
2065
|
-
"line":
|
|
2065
|
+
"line": 220,
|
|
2066
2066
|
"character": 15
|
|
2067
2067
|
},
|
|
2068
2068
|
"name": "string"
|
|
@@ -2074,7 +2074,7 @@
|
|
|
2074
2074
|
"__schema": "ParameterSchema",
|
|
2075
2075
|
"location": {
|
|
2076
2076
|
"filePath": "renaming.main.runtime.ts",
|
|
2077
|
-
"line":
|
|
2077
|
+
"line": 221,
|
|
2078
2078
|
"character": 5
|
|
2079
2079
|
},
|
|
2080
2080
|
"name": "newOwner",
|
|
@@ -2082,7 +2082,7 @@
|
|
|
2082
2082
|
"__schema": "KeywordTypeSchema",
|
|
2083
2083
|
"location": {
|
|
2084
2084
|
"filePath": "renaming.main.runtime.ts",
|
|
2085
|
-
"line":
|
|
2085
|
+
"line": 221,
|
|
2086
2086
|
"character": 15
|
|
2087
2087
|
},
|
|
2088
2088
|
"name": "string"
|
|
@@ -2094,7 +2094,7 @@
|
|
|
2094
2094
|
"__schema": "ParameterSchema",
|
|
2095
2095
|
"location": {
|
|
2096
2096
|
"filePath": "renaming.main.runtime.ts",
|
|
2097
|
-
"line":
|
|
2097
|
+
"line": 222,
|
|
2098
2098
|
"character": 5
|
|
2099
2099
|
},
|
|
2100
2100
|
"name": "options",
|
|
@@ -2102,7 +2102,7 @@
|
|
|
2102
2102
|
"__schema": "TypeLiteralSchema",
|
|
2103
2103
|
"location": {
|
|
2104
2104
|
"filePath": "renaming.main.runtime.ts",
|
|
2105
|
-
"line":
|
|
2105
|
+
"line": 222,
|
|
2106
2106
|
"character": 14
|
|
2107
2107
|
},
|
|
2108
2108
|
"members": [
|
|
@@ -2110,7 +2110,7 @@
|
|
|
2110
2110
|
"__schema": "VariableLikeSchema",
|
|
2111
2111
|
"location": {
|
|
2112
2112
|
"filePath": "renaming.main.runtime.ts",
|
|
2113
|
-
"line":
|
|
2113
|
+
"line": 222,
|
|
2114
2114
|
"character": 16
|
|
2115
2115
|
},
|
|
2116
2116
|
"signature": "(property) refactor?: boolean | undefined",
|
|
@@ -2119,7 +2119,7 @@
|
|
|
2119
2119
|
"__schema": "KeywordTypeSchema",
|
|
2120
2120
|
"location": {
|
|
2121
2121
|
"filePath": "renaming.main.runtime.ts",
|
|
2122
|
-
"line":
|
|
2122
|
+
"line": 222,
|
|
2123
2123
|
"character": 27
|
|
2124
2124
|
},
|
|
2125
2125
|
"name": "boolean"
|
|
@@ -2130,7 +2130,7 @@
|
|
|
2130
2130
|
"__schema": "VariableLikeSchema",
|
|
2131
2131
|
"location": {
|
|
2132
2132
|
"filePath": "renaming.main.runtime.ts",
|
|
2133
|
-
"line":
|
|
2133
|
+
"line": 222,
|
|
2134
2134
|
"character": 36
|
|
2135
2135
|
},
|
|
2136
2136
|
"signature": "(property) ast?: boolean | undefined",
|
|
@@ -2139,7 +2139,7 @@
|
|
|
2139
2139
|
"__schema": "KeywordTypeSchema",
|
|
2140
2140
|
"location": {
|
|
2141
2141
|
"filePath": "renaming.main.runtime.ts",
|
|
2142
|
-
"line":
|
|
2142
|
+
"line": 222,
|
|
2143
2143
|
"character": 42
|
|
2144
2144
|
},
|
|
2145
2145
|
"name": "boolean"
|
|
@@ -2156,7 +2156,7 @@
|
|
|
2156
2156
|
"__schema": "TypeRefSchema",
|
|
2157
2157
|
"location": {
|
|
2158
2158
|
"filePath": "renaming.main.runtime.ts",
|
|
2159
|
-
"line":
|
|
2159
|
+
"line": 223,
|
|
2160
2160
|
"character": 6
|
|
2161
2161
|
},
|
|
2162
2162
|
"name": "Promise",
|
|
@@ -2165,7 +2165,7 @@
|
|
|
2165
2165
|
"__schema": "TypeRefSchema",
|
|
2166
2166
|
"location": {
|
|
2167
2167
|
"filePath": "renaming.main.runtime.ts",
|
|
2168
|
-
"line":
|
|
2168
|
+
"line": 223,
|
|
2169
2169
|
"character": 14
|
|
2170
2170
|
},
|
|
2171
2171
|
"name": "RenameResult",
|
|
@@ -2181,7 +2181,7 @@
|
|
|
2181
2181
|
"__schema": "VariableLikeSchema",
|
|
2182
2182
|
"location": {
|
|
2183
2183
|
"filePath": "renaming.main.runtime.ts",
|
|
2184
|
-
"line":
|
|
2184
|
+
"line": 296,
|
|
2185
2185
|
"character": 3
|
|
2186
2186
|
},
|
|
2187
2187
|
"signature": "(property) RenamingMain.slots: never[]",
|
|
@@ -2190,7 +2190,7 @@
|
|
|
2190
2190
|
"__schema": "InferenceTypeSchema",
|
|
2191
2191
|
"location": {
|
|
2192
2192
|
"filePath": "renaming.main.runtime.ts",
|
|
2193
|
-
"line":
|
|
2193
|
+
"line": 296,
|
|
2194
2194
|
"character": 3
|
|
2195
2195
|
},
|
|
2196
2196
|
"type": "never[]"
|
|
@@ -2202,7 +2202,7 @@
|
|
|
2202
2202
|
"__schema": "VariableLikeSchema",
|
|
2203
2203
|
"location": {
|
|
2204
2204
|
"filePath": "renaming.main.runtime.ts",
|
|
2205
|
-
"line":
|
|
2205
|
+
"line": 297,
|
|
2206
2206
|
"character": 3
|
|
2207
2207
|
},
|
|
2208
2208
|
"signature": "(property) RenamingMain.dependencies: Aspect[]",
|
|
@@ -2211,7 +2211,7 @@
|
|
|
2211
2211
|
"__schema": "InferenceTypeSchema",
|
|
2212
2212
|
"location": {
|
|
2213
2213
|
"filePath": "renaming.main.runtime.ts",
|
|
2214
|
-
"line":
|
|
2214
|
+
"line": 297,
|
|
2215
2215
|
"character": 3
|
|
2216
2216
|
},
|
|
2217
2217
|
"type": "Aspect[]"
|
|
@@ -2223,7 +2223,7 @@
|
|
|
2223
2223
|
"__schema": "VariableLikeSchema",
|
|
2224
2224
|
"location": {
|
|
2225
2225
|
"filePath": "renaming.main.runtime.ts",
|
|
2226
|
-
"line":
|
|
2226
|
+
"line": 313,
|
|
2227
2227
|
"character": 3
|
|
2228
2228
|
},
|
|
2229
2229
|
"signature": "(property) RenamingMain.runtime: RuntimeDefinition",
|
|
@@ -2232,7 +2232,7 @@
|
|
|
2232
2232
|
"__schema": "InferenceTypeSchema",
|
|
2233
2233
|
"location": {
|
|
2234
2234
|
"filePath": "renaming.main.runtime.ts",
|
|
2235
|
-
"line":
|
|
2235
|
+
"line": 313,
|
|
2236
2236
|
"character": 3
|
|
2237
2237
|
},
|
|
2238
2238
|
"type": "RuntimeDefinition"
|
|
@@ -2244,7 +2244,7 @@
|
|
|
2244
2244
|
"__schema": "FunctionLikeSchema",
|
|
2245
2245
|
"location": {
|
|
2246
2246
|
"filePath": "renaming.main.runtime.ts",
|
|
2247
|
-
"line":
|
|
2247
|
+
"line": 314,
|
|
2248
2248
|
"character": 3
|
|
2249
2249
|
},
|
|
2250
2250
|
"signature": "(method) RenamingMain.provider([cli, workspace, deprecation, newComponentHelper, componentMain, graphql, refactoring, install, config, componentWriter, compiler, loggerMain, envs, remove,]: [\n CLIMain,\n Workspace,\n DeprecationMain,\n NewComponentHelperMain,\n ComponentMain,\n GraphqlMain,\n RefactoringMain,\n InstallMain,\n ConfigMain,\n ComponentWriterMain,\n CompilerMain,\n LoggerMain,\n EnvsMain,\n RemoveMain\n]): Promise<RenamingMain>",
|
|
@@ -2254,7 +2254,7 @@
|
|
|
2254
2254
|
"__schema": "ParameterSchema",
|
|
2255
2255
|
"location": {
|
|
2256
2256
|
"filePath": "renaming.main.runtime.ts",
|
|
2257
|
-
"line":
|
|
2257
|
+
"line": 314,
|
|
2258
2258
|
"character": 25
|
|
2259
2259
|
},
|
|
2260
2260
|
"name": "[ cli, workspace, deprecation, newComponentHelper, componentMain, graphql, refactoring, install, config, componentWriter, compiler, loggerMain, envs, remove ]",
|
|
@@ -2262,7 +2262,7 @@
|
|
|
2262
2262
|
"__schema": "TupleTypeSchema",
|
|
2263
2263
|
"location": {
|
|
2264
2264
|
"filePath": "renaming.main.runtime.ts",
|
|
2265
|
-
"line":
|
|
2265
|
+
"line": 329,
|
|
2266
2266
|
"character": 6
|
|
2267
2267
|
},
|
|
2268
2268
|
"elements": [
|
|
@@ -2270,7 +2270,7 @@
|
|
|
2270
2270
|
"__schema": "TypeRefSchema",
|
|
2271
2271
|
"location": {
|
|
2272
2272
|
"filePath": "renaming.main.runtime.ts",
|
|
2273
|
-
"line":
|
|
2273
|
+
"line": 330,
|
|
2274
2274
|
"character": 5
|
|
2275
2275
|
},
|
|
2276
2276
|
"name": "CLIMain",
|
|
@@ -2283,7 +2283,7 @@
|
|
|
2283
2283
|
"__schema": "TypeRefSchema",
|
|
2284
2284
|
"location": {
|
|
2285
2285
|
"filePath": "renaming.main.runtime.ts",
|
|
2286
|
-
"line":
|
|
2286
|
+
"line": 331,
|
|
2287
2287
|
"character": 5
|
|
2288
2288
|
},
|
|
2289
2289
|
"name": "Workspace",
|
|
@@ -2296,7 +2296,7 @@
|
|
|
2296
2296
|
"__schema": "TypeRefSchema",
|
|
2297
2297
|
"location": {
|
|
2298
2298
|
"filePath": "renaming.main.runtime.ts",
|
|
2299
|
-
"line":
|
|
2299
|
+
"line": 332,
|
|
2300
2300
|
"character": 5
|
|
2301
2301
|
},
|
|
2302
2302
|
"name": "DeprecationMain",
|
|
@@ -2309,7 +2309,7 @@
|
|
|
2309
2309
|
"__schema": "TypeRefSchema",
|
|
2310
2310
|
"location": {
|
|
2311
2311
|
"filePath": "renaming.main.runtime.ts",
|
|
2312
|
-
"line":
|
|
2312
|
+
"line": 333,
|
|
2313
2313
|
"character": 5
|
|
2314
2314
|
},
|
|
2315
2315
|
"name": "NewComponentHelperMain",
|
|
@@ -2322,7 +2322,7 @@
|
|
|
2322
2322
|
"__schema": "TypeRefSchema",
|
|
2323
2323
|
"location": {
|
|
2324
2324
|
"filePath": "renaming.main.runtime.ts",
|
|
2325
|
-
"line":
|
|
2325
|
+
"line": 334,
|
|
2326
2326
|
"character": 5
|
|
2327
2327
|
},
|
|
2328
2328
|
"name": "ComponentMain",
|
|
@@ -2335,7 +2335,7 @@
|
|
|
2335
2335
|
"__schema": "TypeRefSchema",
|
|
2336
2336
|
"location": {
|
|
2337
2337
|
"filePath": "renaming.main.runtime.ts",
|
|
2338
|
-
"line":
|
|
2338
|
+
"line": 335,
|
|
2339
2339
|
"character": 5
|
|
2340
2340
|
},
|
|
2341
2341
|
"name": "GraphqlMain",
|
|
@@ -2348,7 +2348,7 @@
|
|
|
2348
2348
|
"__schema": "TypeRefSchema",
|
|
2349
2349
|
"location": {
|
|
2350
2350
|
"filePath": "renaming.main.runtime.ts",
|
|
2351
|
-
"line":
|
|
2351
|
+
"line": 336,
|
|
2352
2352
|
"character": 5
|
|
2353
2353
|
},
|
|
2354
2354
|
"name": "RefactoringMain",
|
|
@@ -2361,7 +2361,7 @@
|
|
|
2361
2361
|
"__schema": "TypeRefSchema",
|
|
2362
2362
|
"location": {
|
|
2363
2363
|
"filePath": "renaming.main.runtime.ts",
|
|
2364
|
-
"line":
|
|
2364
|
+
"line": 337,
|
|
2365
2365
|
"character": 5
|
|
2366
2366
|
},
|
|
2367
2367
|
"name": "InstallMain",
|
|
@@ -2374,7 +2374,7 @@
|
|
|
2374
2374
|
"__schema": "TypeRefSchema",
|
|
2375
2375
|
"location": {
|
|
2376
2376
|
"filePath": "renaming.main.runtime.ts",
|
|
2377
|
-
"line":
|
|
2377
|
+
"line": 338,
|
|
2378
2378
|
"character": 5
|
|
2379
2379
|
},
|
|
2380
2380
|
"name": "ConfigMain",
|
|
@@ -2387,7 +2387,7 @@
|
|
|
2387
2387
|
"__schema": "TypeRefSchema",
|
|
2388
2388
|
"location": {
|
|
2389
2389
|
"filePath": "renaming.main.runtime.ts",
|
|
2390
|
-
"line":
|
|
2390
|
+
"line": 339,
|
|
2391
2391
|
"character": 5
|
|
2392
2392
|
},
|
|
2393
2393
|
"name": "ComponentWriterMain",
|
|
@@ -2400,7 +2400,7 @@
|
|
|
2400
2400
|
"__schema": "TypeRefSchema",
|
|
2401
2401
|
"location": {
|
|
2402
2402
|
"filePath": "renaming.main.runtime.ts",
|
|
2403
|
-
"line":
|
|
2403
|
+
"line": 340,
|
|
2404
2404
|
"character": 5
|
|
2405
2405
|
},
|
|
2406
2406
|
"name": "CompilerMain",
|
|
@@ -2413,7 +2413,7 @@
|
|
|
2413
2413
|
"__schema": "TypeRefSchema",
|
|
2414
2414
|
"location": {
|
|
2415
2415
|
"filePath": "renaming.main.runtime.ts",
|
|
2416
|
-
"line":
|
|
2416
|
+
"line": 341,
|
|
2417
2417
|
"character": 5
|
|
2418
2418
|
},
|
|
2419
2419
|
"name": "LoggerMain",
|
|
@@ -2426,7 +2426,7 @@
|
|
|
2426
2426
|
"__schema": "TypeRefSchema",
|
|
2427
2427
|
"location": {
|
|
2428
2428
|
"filePath": "renaming.main.runtime.ts",
|
|
2429
|
-
"line":
|
|
2429
|
+
"line": 342,
|
|
2430
2430
|
"character": 5
|
|
2431
2431
|
},
|
|
2432
2432
|
"name": "EnvsMain",
|
|
@@ -2439,7 +2439,7 @@
|
|
|
2439
2439
|
"__schema": "TypeRefSchema",
|
|
2440
2440
|
"location": {
|
|
2441
2441
|
"filePath": "renaming.main.runtime.ts",
|
|
2442
|
-
"line":
|
|
2442
|
+
"line": 343,
|
|
2443
2443
|
"character": 5
|
|
2444
2444
|
},
|
|
2445
2445
|
"name": "RemoveMain",
|
|
@@ -2458,7 +2458,7 @@
|
|
|
2458
2458
|
"__schema": "InferenceTypeSchema",
|
|
2459
2459
|
"location": {
|
|
2460
2460
|
"filePath": "renaming.main.runtime.ts",
|
|
2461
|
-
"line":
|
|
2461
|
+
"line": 314,
|
|
2462
2462
|
"character": 3
|
|
2463
2463
|
},
|
|
2464
2464
|
"type": "Promise<RenamingMain>"
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
"__schema": "TypeSchema",
|
|
2477
2477
|
"location": {
|
|
2478
2478
|
"filePath": "renaming.main.runtime.ts",
|
|
2479
|
-
"line":
|
|
2479
|
+
"line": 373,
|
|
2480
2480
|
"character": 1
|
|
2481
2481
|
},
|
|
2482
2482
|
"signature": "type RenameDependencyNameResult = {\n sourceId: ComponentID;\n targetId: ComponentID;\n}",
|
|
@@ -2485,7 +2485,7 @@
|
|
|
2485
2485
|
"__schema": "TypeLiteralSchema",
|
|
2486
2486
|
"location": {
|
|
2487
2487
|
"filePath": "renaming.main.runtime.ts",
|
|
2488
|
-
"line":
|
|
2488
|
+
"line": 373,
|
|
2489
2489
|
"character": 42
|
|
2490
2490
|
},
|
|
2491
2491
|
"members": [
|
|
@@ -2493,7 +2493,7 @@
|
|
|
2493
2493
|
"__schema": "VariableLikeSchema",
|
|
2494
2494
|
"location": {
|
|
2495
2495
|
"filePath": "renaming.main.runtime.ts",
|
|
2496
|
-
"line":
|
|
2496
|
+
"line": 373,
|
|
2497
2497
|
"character": 44
|
|
2498
2498
|
},
|
|
2499
2499
|
"signature": "(property) sourceId: ComponentID",
|
|
@@ -2502,7 +2502,7 @@
|
|
|
2502
2502
|
"__schema": "TypeRefSchema",
|
|
2503
2503
|
"location": {
|
|
2504
2504
|
"filePath": "renaming.main.runtime.ts",
|
|
2505
|
-
"line":
|
|
2505
|
+
"line": 373,
|
|
2506
2506
|
"character": 44
|
|
2507
2507
|
},
|
|
2508
2508
|
"name": "ComponentID",
|
|
@@ -2517,7 +2517,7 @@
|
|
|
2517
2517
|
"__schema": "VariableLikeSchema",
|
|
2518
2518
|
"location": {
|
|
2519
2519
|
"filePath": "renaming.main.runtime.ts",
|
|
2520
|
-
"line":
|
|
2520
|
+
"line": 373,
|
|
2521
2521
|
"character": 67
|
|
2522
2522
|
},
|
|
2523
2523
|
"signature": "(property) targetId: ComponentID",
|
|
@@ -2526,7 +2526,7 @@
|
|
|
2526
2526
|
"__schema": "TypeRefSchema",
|
|
2527
2527
|
"location": {
|
|
2528
2528
|
"filePath": "renaming.main.runtime.ts",
|
|
2529
|
-
"line":
|
|
2529
|
+
"line": 373,
|
|
2530
2530
|
"character": 67
|
|
2531
2531
|
},
|
|
2532
2532
|
"name": "ComponentID",
|
|
@@ -2544,7 +2544,7 @@
|
|
|
2544
2544
|
"__schema": "TypeSchema",
|
|
2545
2545
|
"location": {
|
|
2546
2546
|
"filePath": "renaming.main.runtime.ts",
|
|
2547
|
-
"line":
|
|
2547
|
+
"line": 375,
|
|
2548
2548
|
"character": 1
|
|
2549
2549
|
},
|
|
2550
2550
|
"signature": "type RenamingInfo = {\n renamedFrom: ComponentID;\n}",
|
|
@@ -2553,7 +2553,7 @@
|
|
|
2553
2553
|
"__schema": "TypeLiteralSchema",
|
|
2554
2554
|
"location": {
|
|
2555
2555
|
"filePath": "renaming.main.runtime.ts",
|
|
2556
|
-
"line":
|
|
2556
|
+
"line": 375,
|
|
2557
2557
|
"character": 28
|
|
2558
2558
|
},
|
|
2559
2559
|
"members": [
|
|
@@ -2561,7 +2561,7 @@
|
|
|
2561
2561
|
"__schema": "VariableLikeSchema",
|
|
2562
2562
|
"location": {
|
|
2563
2563
|
"filePath": "renaming.main.runtime.ts",
|
|
2564
|
-
"line":
|
|
2564
|
+
"line": 376,
|
|
2565
2565
|
"character": 3
|
|
2566
2566
|
},
|
|
2567
2567
|
"signature": "(property) renamedFrom: ComponentID",
|
|
@@ -2570,7 +2570,7 @@
|
|
|
2570
2570
|
"__schema": "TypeRefSchema",
|
|
2571
2571
|
"location": {
|
|
2572
2572
|
"filePath": "renaming.main.runtime.ts",
|
|
2573
|
-
"line":
|
|
2573
|
+
"line": 376,
|
|
2574
2574
|
"character": 3
|
|
2575
2575
|
},
|
|
2576
2576
|
"name": "ComponentID",
|
|
@@ -2588,7 +2588,7 @@
|
|
|
2588
2588
|
"__schema": "UnImplementedSchema",
|
|
2589
2589
|
"location": {
|
|
2590
2590
|
"filePath": "renaming.main.runtime.ts",
|
|
2591
|
-
"line":
|
|
2591
|
+
"line": 379,
|
|
2592
2592
|
"character": 16
|
|
2593
2593
|
},
|
|
2594
2594
|
"name": "RenamingMain",
|
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
"__schema": "UnImplementedSchema",
|
|
2825
2825
|
"location": {
|
|
2826
2826
|
"filePath": "renaming.main.runtime.ts",
|
|
2827
|
-
"line":
|
|
2827
|
+
"line": 371,
|
|
2828
2828
|
"character": 1
|
|
2829
2829
|
},
|
|
2830
2830
|
"name": "RenamingAspect.addRuntime(RenamingMain);",
|
|
@@ -2873,7 +2873,7 @@
|
|
|
2873
2873
|
"componentId": {
|
|
2874
2874
|
"scope": "teambit.component",
|
|
2875
2875
|
"name": "renaming",
|
|
2876
|
-
"version": "1.0.
|
|
2876
|
+
"version": "1.0.271"
|
|
2877
2877
|
},
|
|
2878
2878
|
"taggedModuleExports": []
|
|
2879
2879
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.271/dist/renaming.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_renaming@1.0.271/dist/renaming.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -366,6 +366,7 @@ make sure this argument is the name only, without the scope-name. to change the
|
|
|
366
366
|
* optionally (if refactor is true), change the source code to match the new scope-name.
|
|
367
367
|
*/
|
|
368
368
|
async renameScope(oldScope, newScope, options = {}) {
|
|
369
|
+
if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
|
|
369
370
|
const allComponentsIds = this.workspace.listIds();
|
|
370
371
|
const componentsUsingOldScope = allComponentsIds.filter(compId => compId.scope === oldScope);
|
|
371
372
|
if (!componentsUsingOldScope.length && this.workspace.defaultScope !== oldScope) {
|
|
@@ -393,6 +394,7 @@ make sure this argument is the name only, without the scope-name. to change the
|
|
|
393
394
|
* thrown in such cases in this method.
|
|
394
395
|
*/
|
|
395
396
|
async renameOwner(oldOwner, newOwner, options) {
|
|
397
|
+
if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
|
|
396
398
|
const isScopeUsesOldOwner = scope => scope.startsWith(`${oldOwner}.`);
|
|
397
399
|
const allComponentsIds = this.workspace.listIds();
|
|
398
400
|
const componentsUsingOldScope = allComponentsIds.filter(compId => isScopeUsesOldOwner(compId.scope));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_config","_logger","_workspaceModules","_cli","_component","_deprecation","_graphql","_lodash","_compiler","_envs","_newComponentHelper","_remove","_refactoring","_componentWriter","_workspace","_pMapSeries","_install","_legacyBitId","_rename","_renaming","_renaming2","_renaming3","_scopeRename","_oldScopeNotFound","_scopeRenameOwner","_renamingTagged","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","RenamingMain","constructor","workspace","install","newComponentHelper","deprecation","refactoring","config","componentWriter","compiler","logger","envs","remove","rename","sourceIdStr","targetName","options","isValidIdChunk","includes","Error","InvalidName","sourceId","resolveComponentId","targetId","getNewComponentId","undefined","scope","renameMultiple","multipleIds","renameData","stagedComps","hasVersion","isExported","idsStr","map","toString","RenamingTagged","pMapSeries","isTagged","sourceComp","get","isEnv","sourcePackageName","componentPackageName","sourcePkg","compIdsUsingItAsEnv","getComponentsUsingEnv","c","id","preserve","refactorVariableAndClasses","refactorFilenames","getConfig","writeAndAddNewComp","deprecate","deleteComps","bitMap","renameNewComponent","deleteLinkFromNodeModules","write","renameAspectIdsInWorkspaceConfig","_reloadConsumer","changeEnvsAccordingToNewIds","itemData","targetComp","targetPkg","refactoredIds","refactor","allComponents","list","packagesToReplace","oldStr","newStr","changedComponents","replaceMultipleStrings","Promise","all","comp","compPath","getNewComponentPath","writeMany","components","state","_consumer","skipDependencyInstallation","writeToPath","path","join","reasonForBitmapChange","renameAspectInConfig","targetComps","compact","linkToNodeModulesByComponents","compileGracefully","getRenamingInfo","component","renameConfig","aspects","RenamingAspect","renamedFrom","ComponentID","fromObject","renameScope","oldScope","newScope","allComponentsIds","listIds","componentsUsingOldScope","compId","defaultScope","OldScopeNotFound","setDefaultScope","name","fullName","renameOwner","oldOwner","newOwner","isScopeUsesOldOwner","startsWith","oldWorkspaceDefaultScope","newWorkspaceDefaultScope","renameOwnerInScopeName","hasScope","changeScope","changeDefaultScope","ids","workspaceConfig","wereChangesDone","renameId","renameExtensionInRaw","toStringWithoutVersion","hasChanged","some","isChanged","reasonForChange","renameItem","componentIds","newEnvId","newComponentIds","found","find","isEqualWithoutVersion","setEnvToComponents","packageName","fs","compileOnWorkspace","err","consoleFailure","message","scopeName","replace","fromExisting","getConfigFromExistingToNewComponent","toObject","provider","cli","componentMain","graphql","loggerMain","createLogger","renaming","register","RenameCmd","scopeCommand","getCommand","commands","ScopeRenameCmd","ScopeRenameOwnerCmd","renamingSchema","registerShowFragments","RenamingFragment","exports","CLIAspect","WorkspaceAspect","DeprecationAspect","NewComponentHelperAspect","ComponentAspect","GraphqlAspect","RefactoringAspect","InstallAspect","ConfigAspect","ComponentWriterAspect","CompilerAspect","LoggerAspect","EnvsAspect","RemoveAspect","MainRuntime","addRuntime","_default"],"sources":["renaming.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport path from 'path';\nimport { ConfigAspect, ConfigMain } from '@teambit/config';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { linkToNodeModulesByComponents } from '@teambit/workspace.modules.node-modules-linker';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentAspect, Component, ComponentID, ComponentMain } from '@teambit/component';\nimport { DeprecationAspect, DeprecationMain } from '@teambit/deprecation';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { compact } from 'lodash';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { NewComponentHelperAspect, NewComponentHelperMain } from '@teambit/new-component-helper';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport { RefactoringAspect, MultipleStringsReplacement, RefactoringMain } from '@teambit/refactoring';\nimport { ComponentWriterAspect, ComponentWriterMain } from '@teambit/component-writer';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport pMapSeries from 'p-map-series';\nimport { InstallMain, InstallAspect } from '@teambit/install';\nimport { isValidIdChunk, InvalidName } from '@teambit/legacy-bit-id';\nimport { RenameCmd, RenameOptions } from './rename.cmd';\nimport { RenamingAspect } from './renaming.aspect';\nimport { RenamingFragment } from './renaming.fragment';\nimport { renamingSchema } from './renaming.graphql';\nimport { ScopeRenameCmd } from './scope-rename.cmd';\nimport { OldScopeNotFound } from './exceptions/old-scope-not-found';\nimport { ScopeRenameOwnerCmd } from './scope-rename-owner.cmd';\nimport { RenamingTagged } from './exceptions/renaming-tagged';\n\ntype RenameId = { sourceId: ComponentID; targetId: ComponentID };\ntype RenameData = RenameId & {\n sourcePkg: string;\n isTagged: boolean;\n targetPkg?: string;\n targetComp?: Component;\n compIdsUsingItAsEnv?: ComponentID[];\n};\nexport type RenameResult = { renameData: RenameData[]; refactoredIds: ComponentID[] };\n\nexport class RenamingMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private newComponentHelper: NewComponentHelperMain,\n private deprecation: DeprecationMain,\n private refactoring: RefactoringMain,\n private config: ConfigMain,\n private componentWriter: ComponentWriterMain,\n private compiler: CompilerMain,\n private logger: Logger,\n private envs: EnvsMain,\n private remove: RemoveMain\n ) {}\n\n async rename(\n sourceIdStr: string,\n targetName: string,\n options: RenameOptions = {}\n ): Promise<RenameDependencyNameResult> {\n if (!isValidIdChunk(targetName)) {\n if (targetName.includes('.'))\n throw new Error(`error: new-name argument \"${targetName}\" includes a dot.\nmake sure this argument is the name only, without the scope-name. to change the scope-name, use --scope flag`);\n throw new InvalidName(targetName);\n }\n const sourceId = await this.workspace.resolveComponentId(sourceIdStr);\n const targetId = this.newComponentHelper.getNewComponentId(targetName, undefined, options?.scope || sourceId.scope);\n await this.renameMultiple([{ sourceId, targetId }], options);\n\n return {\n sourceId,\n targetId,\n };\n }\n\n async renameMultiple(multipleIds: RenameId[], options: RenameOptions): Promise<RenameResult> {\n const renameData: RenameData[] = [];\n\n const stagedComps = multipleIds.filter(\n ({ sourceId }) => sourceId.hasVersion() && !this.workspace.isExported(sourceId)\n );\n\n if (stagedComps.length) {\n const idsStr = stagedComps.map(({ sourceId }) => sourceId.toString());\n throw new RenamingTagged(idsStr);\n }\n\n await pMapSeries(multipleIds, async ({ sourceId, targetId }) => {\n const isTagged = sourceId.hasVersion();\n const sourceComp = await this.workspace.get(sourceId);\n const isEnv = this.envs.isEnv(sourceComp);\n const sourcePackageName = this.workspace.componentPackageName(sourceComp);\n renameData.push({\n sourceId,\n targetId,\n sourcePkg: sourcePackageName,\n isTagged,\n compIdsUsingItAsEnv: isEnv\n ? (await this.workspace.getComponentsUsingEnv(sourceId.toString(), true)).map((c) => c.id)\n : undefined,\n });\n });\n\n await pMapSeries(renameData, async ({ sourceId, targetId, isTagged, sourcePkg }) => {\n const sourceComp = await this.workspace.get(sourceId);\n if (!options.preserve) {\n await this.refactoring.refactorVariableAndClasses(sourceComp, sourceId, targetId);\n this.refactoring.refactorFilenames(sourceComp, sourceId, targetId);\n }\n if (isTagged) {\n const config = await this.getConfig(sourceComp);\n await this.newComponentHelper.writeAndAddNewComp(sourceComp, targetId, options, config);\n options.deprecate\n ? await this.deprecation.deprecate(sourceId, targetId)\n : await this.remove.deleteComps(sourceId.toString());\n } else {\n this.workspace.bitMap.renameNewComponent(sourceId, targetId);\n await this.deleteLinkFromNodeModules(sourcePkg);\n }\n });\n await this.workspace.bitMap.write(`rename`);\n await this.renameAspectIdsInWorkspaceConfig(multipleIds);\n await this.workspace._reloadConsumer(); // in order to reload .bitmap file and clear all caches.\n await this.changeEnvsAccordingToNewIds(renameData);\n await pMapSeries(renameData, async (itemData) => {\n itemData.targetComp = await this.workspace.get(itemData.targetId);\n itemData.targetPkg = this.workspace.componentPackageName(itemData.targetComp);\n });\n\n const refactoredIds: ComponentID[] = [];\n if (options.refactor) {\n const allComponents = await this.workspace.list();\n const packagesToReplace: MultipleStringsReplacement = renameData.map(({ sourcePkg, targetPkg }) => {\n if (!targetPkg) throw new Error(`renameMultiple, targetPkg is missing`);\n return {\n // replace only packages ending with slash, quote or double-quote. otherwise, it could replace part of other packages.\n oldStr: `${sourcePkg}(['\"/])`,\n newStr: `${targetPkg}$1`,\n };\n });\n\n const { changedComponents } = await this.refactoring.replaceMultipleStrings(allComponents, packagesToReplace);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n refactoredIds.push(...changedComponents.map((c) => c.id));\n }\n\n if (!options.preserve) {\n await pMapSeries(renameData, async ({ sourceId, targetId, targetComp, isTagged }) => {\n if (isTagged) {\n // we have done this logic already for tagged components before. (search for refactorVariableAndClasses).\n return;\n }\n if (!targetComp) throw new Error(`renameMultiple, targetComp is missing`);\n await this.refactoring.refactorVariableAndClasses(targetComp, sourceId, targetId, options);\n const compPath = this.newComponentHelper.getNewComponentPath(targetId);\n this.refactoring.refactorFilenames(targetComp, sourceId, targetId);\n await this.componentWriter.writeMany({\n components: [targetComp.state._consumer],\n skipDependencyInstallation: true,\n writeToPath: path.join(this.workspace.path, compPath),\n reasonForBitmapChange: 'rename',\n });\n });\n }\n\n multipleIds.forEach(({ sourceId, targetId }) => {\n this.workspace.bitMap.renameAspectInConfig(sourceId, targetId);\n });\n\n await this.workspace.bitMap.write(`rename`);\n\n const targetComps = compact(renameData.map(({ targetComp }) => targetComp));\n await linkToNodeModulesByComponents(targetComps, this.workspace); // link the new-name to node-modules\n await this.compileGracefully(targetComps.map((c) => c.id));\n\n return { refactoredIds, renameData };\n }\n\n getRenamingInfo(component: Component): RenamingInfo | null {\n const renameConfig = component.state.aspects.get(RenamingAspect.id)?.config as RenamingInfo | undefined;\n if (!renameConfig) return null;\n return {\n renamedFrom: ComponentID.fromObject(renameConfig.renamedFrom),\n };\n }\n\n /**\n * change the default-scope for new components.\n * for tagged/exported components, delete (or deprecate - depends on the flag) the original ones and create new ones.\n * optionally (if refactor is true), change the source code to match the new scope-name.\n */\n async renameScope(\n oldScope: string,\n newScope: string,\n options: { refactor?: boolean; deprecate?: boolean; preserve?: boolean } = {}\n ): Promise<RenameResult> {\n const allComponentsIds = this.workspace.listIds();\n const componentsUsingOldScope = allComponentsIds.filter((compId) => compId.scope === oldScope);\n if (!componentsUsingOldScope.length && this.workspace.defaultScope !== oldScope) {\n throw new OldScopeNotFound(oldScope);\n }\n if (this.workspace.defaultScope === oldScope) {\n await this.workspace.setDefaultScope(newScope, false);\n }\n const multipleIds: RenameId[] = componentsUsingOldScope.map((compId) => {\n const targetId = ComponentID.fromObject({ name: compId.fullName }, newScope);\n return { sourceId: compId, targetId };\n });\n return this.renameMultiple(multipleIds, options);\n }\n\n /**\n * change the default-scope for new components. optionally (if refactor is true), change the source code to match the\n * new scope-name.\n * keep in mind that this is working for new components only, for tagged/exported it's impossible. See the errors\n * thrown in such cases in this method.\n */\n async renameOwner(\n oldOwner: string,\n newOwner: string,\n options: { refactor?: boolean; ast?: boolean }\n ): Promise<RenameResult> {\n const isScopeUsesOldOwner = (scope: string) => scope.startsWith(`${oldOwner}.`);\n\n const allComponentsIds = this.workspace.listIds();\n const componentsUsingOldScope = allComponentsIds.filter((compId) => isScopeUsesOldOwner(compId.scope));\n if (!componentsUsingOldScope.length && !isScopeUsesOldOwner(this.workspace.defaultScope)) {\n throw new OldScopeNotFound(oldOwner);\n }\n const oldWorkspaceDefaultScope = this.workspace.defaultScope;\n const newWorkspaceDefaultScope = isScopeUsesOldOwner(oldWorkspaceDefaultScope)\n ? this.renameOwnerInScopeName(oldWorkspaceDefaultScope, oldOwner, newOwner)\n : undefined;\n if (newWorkspaceDefaultScope) {\n await this.workspace.setDefaultScope(newWorkspaceDefaultScope, false);\n }\n const multipleIds: RenameId[] = componentsUsingOldScope.map((compId) => {\n const newScope = this.renameOwnerInScopeName(compId.scope, oldOwner, newOwner);\n const targetId = compId.hasScope() ? compId.changeScope(newScope) : compId.changeDefaultScope(newScope);\n return { sourceId: compId, targetId };\n });\n return this.renameMultiple(multipleIds, { ...options, preserve: true });\n }\n\n private async renameAspectIdsInWorkspaceConfig(ids: RenameId[]) {\n const config = this.config.workspaceConfig;\n if (!config) throw new Error('unable to get workspace config');\n const wereChangesDone = ids.map((renameId) =>\n config.renameExtensionInRaw(\n renameId.sourceId.toStringWithoutVersion(),\n renameId.targetId.toStringWithoutVersion()\n )\n );\n const hasChanged = wereChangesDone.some((isChanged) => isChanged);\n if (hasChanged) await config.write({ reasonForChange: 'rename' });\n }\n private async changeEnvsAccordingToNewIds(renameData: RenameData[]) {\n await pMapSeries(renameData, async (renameItem) => {\n const componentIds = renameItem.compIdsUsingItAsEnv;\n if (!componentIds?.length) return;\n const newEnvId = renameItem.targetId;\n const newComponentIds = componentIds.map((id) => {\n const found = renameData.find((r) => r.sourceId.isEqualWithoutVersion(id));\n return found ? found.targetId : id;\n });\n await this.workspace.setEnvToComponents(newEnvId, newComponentIds);\n });\n }\n private async deleteLinkFromNodeModules(packageName: string) {\n await fs.remove(path.join(this.workspace.path, 'node_modules', packageName));\n }\n private async compileGracefully(ids: ComponentID[]) {\n try {\n await this.compiler.compileOnWorkspace(ids);\n } catch (err: any) {\n const idsStr = ids.map((id) => id.toString()).join(', ');\n this.logger.consoleFailure(`failed compiling the component(s) ${idsStr}. error: ${err.message}`);\n }\n }\n\n private renameOwnerInScopeName(scopeName: string, oldOwner: string, newOwner: string): string {\n return scopeName.replace(`${oldOwner}.`, `${newOwner}.`);\n }\n\n private async getConfig(comp: Component) {\n const fromExisting = await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);\n return {\n ...fromExisting,\n [RenamingAspect.id]: {\n renamedFrom: comp.id.toObject(),\n },\n };\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n DeprecationAspect,\n NewComponentHelperAspect,\n ComponentAspect,\n GraphqlAspect,\n RefactoringAspect,\n InstallAspect,\n ConfigAspect,\n ComponentWriterAspect,\n CompilerAspect,\n LoggerAspect,\n EnvsAspect,\n RemoveAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n deprecation,\n newComponentHelper,\n componentMain,\n graphql,\n refactoring,\n install,\n config,\n componentWriter,\n compiler,\n loggerMain,\n envs,\n remove,\n ]: [\n CLIMain,\n Workspace,\n DeprecationMain,\n NewComponentHelperMain,\n ComponentMain,\n GraphqlMain,\n RefactoringMain,\n InstallMain,\n ConfigMain,\n ComponentWriterMain,\n CompilerMain,\n LoggerMain,\n EnvsMain,\n RemoveMain\n ]) {\n const logger = loggerMain.createLogger(RenamingAspect.id);\n const renaming = new RenamingMain(\n workspace,\n install,\n newComponentHelper,\n deprecation,\n refactoring,\n config,\n componentWriter,\n compiler,\n logger,\n envs,\n remove\n );\n cli.register(new RenameCmd(renaming));\n\n const scopeCommand = cli.getCommand('scope');\n scopeCommand?.commands?.push(new ScopeRenameCmd(renaming));\n scopeCommand?.commands?.push(new ScopeRenameOwnerCmd(renaming));\n\n graphql.register(renamingSchema(renaming));\n componentMain.registerShowFragments([new RenamingFragment(renaming)]);\n return renaming;\n }\n}\n\nRenamingAspect.addRuntime(RenamingMain);\n\nexport type RenameDependencyNameResult = { sourceId: ComponentID; targetId: ComponentID };\n\nexport type RenamingInfo = {\n renamedFrom: ComponentID;\n};\n\nexport default RenamingMain;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,kBAAA;EAAA,MAAAN,IAAA,GAAAE,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AACa,qBAAqB,CAAC,CAAC,KAAIC,6BAAgB,EAACV,QAAQ,CAAC,CAAC,CAAC;IACrE,OAAOA,QAAQ;EACjB;AACF;AAACW,OAAA,CAAA3K,YAAA,GAAAA,YAAA;AAAAjB,eAAA,CAxUYiB,YAAY,WA+PR,EAAE;AAAAjB,eAAA,CA/PNiB,YAAY,kBAgQD,CACpB4K,gBAAS,EACTC,4BAAe,EACfC,gCAAiB,EACjBC,8CAAwB,EACxBC,4BAAe,EACfC,wBAAa,EACbC,gCAAiB,EACjBC,wBAAa,EACbC,sBAAY,EACZC,wCAAqB,EACrBC,0BAAc,EACdC,sBAAY,EACZC,kBAAU,EACVC,sBAAY,CACb;AAAA1M,eAAA,CA/QUiB,YAAY,aAgRN0L,kBAAW;AA0D9BxF,0BAAc,CAACyF,UAAU,CAAC3L,YAAY,CAAC;AAAC,IAAA4L,QAAA,GAAAjB,OAAA,CAAA9M,OAAA,GAQzBmC,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_config","_logger","_workspaceModules","_cli","_component","_deprecation","_graphql","_lodash","_compiler","_envs","_newComponentHelper","_remove","_refactoring","_componentWriter","_workspace","_pMapSeries","_install","_legacyBitId","_rename","_renaming","_renaming2","_renaming3","_scopeRename","_oldScopeNotFound","_scopeRenameOwner","_renamingTagged","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","RenamingMain","constructor","workspace","install","newComponentHelper","deprecation","refactoring","config","componentWriter","compiler","logger","envs","remove","rename","sourceIdStr","targetName","options","isValidIdChunk","includes","Error","InvalidName","sourceId","resolveComponentId","targetId","getNewComponentId","undefined","scope","renameMultiple","multipleIds","renameData","stagedComps","hasVersion","isExported","idsStr","map","toString","RenamingTagged","pMapSeries","isTagged","sourceComp","get","isEnv","sourcePackageName","componentPackageName","sourcePkg","compIdsUsingItAsEnv","getComponentsUsingEnv","c","id","preserve","refactorVariableAndClasses","refactorFilenames","getConfig","writeAndAddNewComp","deprecate","deleteComps","bitMap","renameNewComponent","deleteLinkFromNodeModules","write","renameAspectIdsInWorkspaceConfig","_reloadConsumer","changeEnvsAccordingToNewIds","itemData","targetComp","targetPkg","refactoredIds","refactor","allComponents","list","packagesToReplace","oldStr","newStr","changedComponents","replaceMultipleStrings","Promise","all","comp","compPath","getNewComponentPath","writeMany","components","state","_consumer","skipDependencyInstallation","writeToPath","path","join","reasonForBitmapChange","renameAspectInConfig","targetComps","compact","linkToNodeModulesByComponents","compileGracefully","getRenamingInfo","component","renameConfig","aspects","RenamingAspect","renamedFrom","ComponentID","fromObject","renameScope","oldScope","newScope","OutsideWorkspaceError","allComponentsIds","listIds","componentsUsingOldScope","compId","defaultScope","OldScopeNotFound","setDefaultScope","name","fullName","renameOwner","oldOwner","newOwner","isScopeUsesOldOwner","startsWith","oldWorkspaceDefaultScope","newWorkspaceDefaultScope","renameOwnerInScopeName","hasScope","changeScope","changeDefaultScope","ids","workspaceConfig","wereChangesDone","renameId","renameExtensionInRaw","toStringWithoutVersion","hasChanged","some","isChanged","reasonForChange","renameItem","componentIds","newEnvId","newComponentIds","found","find","isEqualWithoutVersion","setEnvToComponents","packageName","fs","compileOnWorkspace","err","consoleFailure","message","scopeName","replace","fromExisting","getConfigFromExistingToNewComponent","toObject","provider","cli","componentMain","graphql","loggerMain","createLogger","renaming","register","RenameCmd","scopeCommand","getCommand","commands","ScopeRenameCmd","ScopeRenameOwnerCmd","renamingSchema","registerShowFragments","RenamingFragment","exports","CLIAspect","WorkspaceAspect","DeprecationAspect","NewComponentHelperAspect","ComponentAspect","GraphqlAspect","RefactoringAspect","InstallAspect","ConfigAspect","ComponentWriterAspect","CompilerAspect","LoggerAspect","EnvsAspect","RemoveAspect","MainRuntime","addRuntime","_default"],"sources":["renaming.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport path from 'path';\nimport { ConfigAspect, ConfigMain } from '@teambit/config';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { linkToNodeModulesByComponents } from '@teambit/workspace.modules.node-modules-linker';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentAspect, Component, ComponentID, ComponentMain } from '@teambit/component';\nimport { DeprecationAspect, DeprecationMain } from '@teambit/deprecation';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { compact } from 'lodash';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport { NewComponentHelperAspect, NewComponentHelperMain } from '@teambit/new-component-helper';\nimport { RemoveAspect, RemoveMain } from '@teambit/remove';\nimport { RefactoringAspect, MultipleStringsReplacement, RefactoringMain } from '@teambit/refactoring';\nimport { ComponentWriterAspect, ComponentWriterMain } from '@teambit/component-writer';\nimport { WorkspaceAspect, Workspace, OutsideWorkspaceError } from '@teambit/workspace';\nimport pMapSeries from 'p-map-series';\nimport { InstallMain, InstallAspect } from '@teambit/install';\nimport { isValidIdChunk, InvalidName } from '@teambit/legacy-bit-id';\nimport { RenameCmd, RenameOptions } from './rename.cmd';\nimport { RenamingAspect } from './renaming.aspect';\nimport { RenamingFragment } from './renaming.fragment';\nimport { renamingSchema } from './renaming.graphql';\nimport { ScopeRenameCmd } from './scope-rename.cmd';\nimport { OldScopeNotFound } from './exceptions/old-scope-not-found';\nimport { ScopeRenameOwnerCmd } from './scope-rename-owner.cmd';\nimport { RenamingTagged } from './exceptions/renaming-tagged';\n\ntype RenameId = { sourceId: ComponentID; targetId: ComponentID };\ntype RenameData = RenameId & {\n sourcePkg: string;\n isTagged: boolean;\n targetPkg?: string;\n targetComp?: Component;\n compIdsUsingItAsEnv?: ComponentID[];\n};\nexport type RenameResult = { renameData: RenameData[]; refactoredIds: ComponentID[] };\n\nexport class RenamingMain {\n constructor(\n private workspace: Workspace,\n private install: InstallMain,\n private newComponentHelper: NewComponentHelperMain,\n private deprecation: DeprecationMain,\n private refactoring: RefactoringMain,\n private config: ConfigMain,\n private componentWriter: ComponentWriterMain,\n private compiler: CompilerMain,\n private logger: Logger,\n private envs: EnvsMain,\n private remove: RemoveMain\n ) {}\n\n async rename(\n sourceIdStr: string,\n targetName: string,\n options: RenameOptions = {}\n ): Promise<RenameDependencyNameResult> {\n if (!isValidIdChunk(targetName)) {\n if (targetName.includes('.'))\n throw new Error(`error: new-name argument \"${targetName}\" includes a dot.\nmake sure this argument is the name only, without the scope-name. to change the scope-name, use --scope flag`);\n throw new InvalidName(targetName);\n }\n const sourceId = await this.workspace.resolveComponentId(sourceIdStr);\n const targetId = this.newComponentHelper.getNewComponentId(targetName, undefined, options?.scope || sourceId.scope);\n await this.renameMultiple([{ sourceId, targetId }], options);\n\n return {\n sourceId,\n targetId,\n };\n }\n\n async renameMultiple(multipleIds: RenameId[], options: RenameOptions): Promise<RenameResult> {\n const renameData: RenameData[] = [];\n\n const stagedComps = multipleIds.filter(\n ({ sourceId }) => sourceId.hasVersion() && !this.workspace.isExported(sourceId)\n );\n\n if (stagedComps.length) {\n const idsStr = stagedComps.map(({ sourceId }) => sourceId.toString());\n throw new RenamingTagged(idsStr);\n }\n\n await pMapSeries(multipleIds, async ({ sourceId, targetId }) => {\n const isTagged = sourceId.hasVersion();\n const sourceComp = await this.workspace.get(sourceId);\n const isEnv = this.envs.isEnv(sourceComp);\n const sourcePackageName = this.workspace.componentPackageName(sourceComp);\n renameData.push({\n sourceId,\n targetId,\n sourcePkg: sourcePackageName,\n isTagged,\n compIdsUsingItAsEnv: isEnv\n ? (await this.workspace.getComponentsUsingEnv(sourceId.toString(), true)).map((c) => c.id)\n : undefined,\n });\n });\n\n await pMapSeries(renameData, async ({ sourceId, targetId, isTagged, sourcePkg }) => {\n const sourceComp = await this.workspace.get(sourceId);\n if (!options.preserve) {\n await this.refactoring.refactorVariableAndClasses(sourceComp, sourceId, targetId);\n this.refactoring.refactorFilenames(sourceComp, sourceId, targetId);\n }\n if (isTagged) {\n const config = await this.getConfig(sourceComp);\n await this.newComponentHelper.writeAndAddNewComp(sourceComp, targetId, options, config);\n options.deprecate\n ? await this.deprecation.deprecate(sourceId, targetId)\n : await this.remove.deleteComps(sourceId.toString());\n } else {\n this.workspace.bitMap.renameNewComponent(sourceId, targetId);\n await this.deleteLinkFromNodeModules(sourcePkg);\n }\n });\n await this.workspace.bitMap.write(`rename`);\n await this.renameAspectIdsInWorkspaceConfig(multipleIds);\n await this.workspace._reloadConsumer(); // in order to reload .bitmap file and clear all caches.\n await this.changeEnvsAccordingToNewIds(renameData);\n await pMapSeries(renameData, async (itemData) => {\n itemData.targetComp = await this.workspace.get(itemData.targetId);\n itemData.targetPkg = this.workspace.componentPackageName(itemData.targetComp);\n });\n\n const refactoredIds: ComponentID[] = [];\n if (options.refactor) {\n const allComponents = await this.workspace.list();\n const packagesToReplace: MultipleStringsReplacement = renameData.map(({ sourcePkg, targetPkg }) => {\n if (!targetPkg) throw new Error(`renameMultiple, targetPkg is missing`);\n return {\n // replace only packages ending with slash, quote or double-quote. otherwise, it could replace part of other packages.\n oldStr: `${sourcePkg}(['\"/])`,\n newStr: `${targetPkg}$1`,\n };\n });\n\n const { changedComponents } = await this.refactoring.replaceMultipleStrings(allComponents, packagesToReplace);\n await Promise.all(changedComponents.map((comp) => this.workspace.write(comp)));\n refactoredIds.push(...changedComponents.map((c) => c.id));\n }\n\n if (!options.preserve) {\n await pMapSeries(renameData, async ({ sourceId, targetId, targetComp, isTagged }) => {\n if (isTagged) {\n // we have done this logic already for tagged components before. (search for refactorVariableAndClasses).\n return;\n }\n if (!targetComp) throw new Error(`renameMultiple, targetComp is missing`);\n await this.refactoring.refactorVariableAndClasses(targetComp, sourceId, targetId, options);\n const compPath = this.newComponentHelper.getNewComponentPath(targetId);\n this.refactoring.refactorFilenames(targetComp, sourceId, targetId);\n await this.componentWriter.writeMany({\n components: [targetComp.state._consumer],\n skipDependencyInstallation: true,\n writeToPath: path.join(this.workspace.path, compPath),\n reasonForBitmapChange: 'rename',\n });\n });\n }\n\n multipleIds.forEach(({ sourceId, targetId }) => {\n this.workspace.bitMap.renameAspectInConfig(sourceId, targetId);\n });\n\n await this.workspace.bitMap.write(`rename`);\n\n const targetComps = compact(renameData.map(({ targetComp }) => targetComp));\n await linkToNodeModulesByComponents(targetComps, this.workspace); // link the new-name to node-modules\n await this.compileGracefully(targetComps.map((c) => c.id));\n\n return { refactoredIds, renameData };\n }\n\n getRenamingInfo(component: Component): RenamingInfo | null {\n const renameConfig = component.state.aspects.get(RenamingAspect.id)?.config as RenamingInfo | undefined;\n if (!renameConfig) return null;\n return {\n renamedFrom: ComponentID.fromObject(renameConfig.renamedFrom),\n };\n }\n\n /**\n * change the default-scope for new components.\n * for tagged/exported components, delete (or deprecate - depends on the flag) the original ones and create new ones.\n * optionally (if refactor is true), change the source code to match the new scope-name.\n */\n async renameScope(\n oldScope: string,\n newScope: string,\n options: { refactor?: boolean; deprecate?: boolean; preserve?: boolean } = {}\n ): Promise<RenameResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const allComponentsIds = this.workspace.listIds();\n const componentsUsingOldScope = allComponentsIds.filter((compId) => compId.scope === oldScope);\n if (!componentsUsingOldScope.length && this.workspace.defaultScope !== oldScope) {\n throw new OldScopeNotFound(oldScope);\n }\n if (this.workspace.defaultScope === oldScope) {\n await this.workspace.setDefaultScope(newScope, false);\n }\n const multipleIds: RenameId[] = componentsUsingOldScope.map((compId) => {\n const targetId = ComponentID.fromObject({ name: compId.fullName }, newScope);\n return { sourceId: compId, targetId };\n });\n return this.renameMultiple(multipleIds, options);\n }\n\n /**\n * change the default-scope for new components. optionally (if refactor is true), change the source code to match the\n * new scope-name.\n * keep in mind that this is working for new components only, for tagged/exported it's impossible. See the errors\n * thrown in such cases in this method.\n */\n async renameOwner(\n oldOwner: string,\n newOwner: string,\n options: { refactor?: boolean; ast?: boolean }\n ): Promise<RenameResult> {\n if (!this.workspace) throw new OutsideWorkspaceError();\n const isScopeUsesOldOwner = (scope: string) => scope.startsWith(`${oldOwner}.`);\n const allComponentsIds = this.workspace.listIds();\n const componentsUsingOldScope = allComponentsIds.filter((compId) => isScopeUsesOldOwner(compId.scope));\n if (!componentsUsingOldScope.length && !isScopeUsesOldOwner(this.workspace.defaultScope)) {\n throw new OldScopeNotFound(oldOwner);\n }\n const oldWorkspaceDefaultScope = this.workspace.defaultScope;\n const newWorkspaceDefaultScope = isScopeUsesOldOwner(oldWorkspaceDefaultScope)\n ? this.renameOwnerInScopeName(oldWorkspaceDefaultScope, oldOwner, newOwner)\n : undefined;\n if (newWorkspaceDefaultScope) {\n await this.workspace.setDefaultScope(newWorkspaceDefaultScope, false);\n }\n const multipleIds: RenameId[] = componentsUsingOldScope.map((compId) => {\n const newScope = this.renameOwnerInScopeName(compId.scope, oldOwner, newOwner);\n const targetId = compId.hasScope() ? compId.changeScope(newScope) : compId.changeDefaultScope(newScope);\n return { sourceId: compId, targetId };\n });\n return this.renameMultiple(multipleIds, { ...options, preserve: true });\n }\n\n private async renameAspectIdsInWorkspaceConfig(ids: RenameId[]) {\n const config = this.config.workspaceConfig;\n if (!config) throw new Error('unable to get workspace config');\n const wereChangesDone = ids.map((renameId) =>\n config.renameExtensionInRaw(\n renameId.sourceId.toStringWithoutVersion(),\n renameId.targetId.toStringWithoutVersion()\n )\n );\n const hasChanged = wereChangesDone.some((isChanged) => isChanged);\n if (hasChanged) await config.write({ reasonForChange: 'rename' });\n }\n private async changeEnvsAccordingToNewIds(renameData: RenameData[]) {\n await pMapSeries(renameData, async (renameItem) => {\n const componentIds = renameItem.compIdsUsingItAsEnv;\n if (!componentIds?.length) return;\n const newEnvId = renameItem.targetId;\n const newComponentIds = componentIds.map((id) => {\n const found = renameData.find((r) => r.sourceId.isEqualWithoutVersion(id));\n return found ? found.targetId : id;\n });\n await this.workspace.setEnvToComponents(newEnvId, newComponentIds);\n });\n }\n private async deleteLinkFromNodeModules(packageName: string) {\n await fs.remove(path.join(this.workspace.path, 'node_modules', packageName));\n }\n private async compileGracefully(ids: ComponentID[]) {\n try {\n await this.compiler.compileOnWorkspace(ids);\n } catch (err: any) {\n const idsStr = ids.map((id) => id.toString()).join(', ');\n this.logger.consoleFailure(`failed compiling the component(s) ${idsStr}. error: ${err.message}`);\n }\n }\n\n private renameOwnerInScopeName(scopeName: string, oldOwner: string, newOwner: string): string {\n return scopeName.replace(`${oldOwner}.`, `${newOwner}.`);\n }\n\n private async getConfig(comp: Component) {\n const fromExisting = await this.newComponentHelper.getConfigFromExistingToNewComponent(comp);\n return {\n ...fromExisting,\n [RenamingAspect.id]: {\n renamedFrom: comp.id.toObject(),\n },\n };\n }\n\n static slots = [];\n static dependencies = [\n CLIAspect,\n WorkspaceAspect,\n DeprecationAspect,\n NewComponentHelperAspect,\n ComponentAspect,\n GraphqlAspect,\n RefactoringAspect,\n InstallAspect,\n ConfigAspect,\n ComponentWriterAspect,\n CompilerAspect,\n LoggerAspect,\n EnvsAspect,\n RemoveAspect,\n ];\n static runtime = MainRuntime;\n static async provider([\n cli,\n workspace,\n deprecation,\n newComponentHelper,\n componentMain,\n graphql,\n refactoring,\n install,\n config,\n componentWriter,\n compiler,\n loggerMain,\n envs,\n remove,\n ]: [\n CLIMain,\n Workspace,\n DeprecationMain,\n NewComponentHelperMain,\n ComponentMain,\n GraphqlMain,\n RefactoringMain,\n InstallMain,\n ConfigMain,\n ComponentWriterMain,\n CompilerMain,\n LoggerMain,\n EnvsMain,\n RemoveMain\n ]) {\n const logger = loggerMain.createLogger(RenamingAspect.id);\n const renaming = new RenamingMain(\n workspace,\n install,\n newComponentHelper,\n deprecation,\n refactoring,\n config,\n componentWriter,\n compiler,\n logger,\n envs,\n remove\n );\n cli.register(new RenameCmd(renaming));\n\n const scopeCommand = cli.getCommand('scope');\n scopeCommand?.commands?.push(new ScopeRenameCmd(renaming));\n scopeCommand?.commands?.push(new ScopeRenameOwnerCmd(renaming));\n\n graphql.register(renamingSchema(renaming));\n componentMain.registerShowFragments([new RenamingFragment(renaming)]);\n return renaming;\n }\n}\n\nRenamingAspect.addRuntime(RenamingMain);\n\nexport type RenameDependencyNameResult = { sourceId: ComponentID; targetId: ComponentID };\n\nexport type RenamingInfo = {\n renamedFrom: ComponentID;\n};\n\nexport default RenamingMain;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,kBAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,KAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,IAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,WAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,UAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,aA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,eAAA,CAhQNiB,YAAY,kBAiQD,CACpB6K,gBAAS,EACTC,4BAAe,EACfC,gCAAiB,EACjBC,8CAAwB,EACxBC,4BAAe,EACfC,wBAAa,EACbC,gCAAiB,EACjBC,wBAAa,EACbC,sBAAY,EACZC,wCAAqB,EACrBC,0BAAc,EACdC,sBAAY,EACZC,kBAAU,EACVC,sBAAY,CACb;AAAA3M,eAAA,CAhRUiB,YAAY,aAiRN2L,kBAAW;AA0D9BzF,0BAAc,CAAC0F,UAAU,CAAC5L,YAAY,CAAC;AAAC,IAAA6L,QAAA,GAAAjB,OAAA,CAAA/M,OAAA,GAQzBmC,YAAY","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/renaming",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.271",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/renaming",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "renaming",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.271"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
"@teambit/legacy-bit-id": "1.1.1",
|
|
19
19
|
"@teambit/bit-error": "0.0.404",
|
|
20
20
|
"@teambit/cli": "0.0.865",
|
|
21
|
-
"@teambit/component": "1.0.
|
|
22
|
-
"@teambit/graphql": "1.0.
|
|
23
|
-
"@teambit/compiler": "1.0.
|
|
24
|
-
"@teambit/component-writer": "1.0.
|
|
25
|
-
"@teambit/config": "0.0.
|
|
26
|
-
"@teambit/deprecation": "1.0.
|
|
27
|
-
"@teambit/envs": "1.0.
|
|
28
|
-
"@teambit/install": "1.0.
|
|
21
|
+
"@teambit/component": "1.0.271",
|
|
22
|
+
"@teambit/graphql": "1.0.271",
|
|
23
|
+
"@teambit/compiler": "1.0.271",
|
|
24
|
+
"@teambit/component-writer": "1.0.271",
|
|
25
|
+
"@teambit/config": "0.0.1022",
|
|
26
|
+
"@teambit/deprecation": "1.0.271",
|
|
27
|
+
"@teambit/envs": "1.0.271",
|
|
28
|
+
"@teambit/install": "1.0.271",
|
|
29
29
|
"@teambit/logger": "0.0.958",
|
|
30
|
-
"@teambit/new-component-helper": "1.0.
|
|
31
|
-
"@teambit/refactoring": "1.0.
|
|
32
|
-
"@teambit/remove": "1.0.
|
|
30
|
+
"@teambit/new-component-helper": "1.0.271",
|
|
31
|
+
"@teambit/refactoring": "1.0.271",
|
|
32
|
+
"@teambit/remove": "1.0.271",
|
|
33
33
|
"@teambit/workspace.modules.node-modules-linker": "0.0.173",
|
|
34
|
-
"@teambit/workspace": "1.0.
|
|
34
|
+
"@teambit/workspace": "1.0.271"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/fs-extra": "9.0.7",
|