@teambit/forking 1.0.487 → 1.0.489
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_forking-preview.js +1 -1
- package/artifacts/schema.json +246 -56
- package/dist/{preview-1733714450424.js → preview-1733851236714.js} +2 -2
- package/dist/scope-fork.cmd.js +4 -4
- package/dist/scope-fork.cmd.js.map +1 -1
- package/package.json +16 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.component/forking@1.0.
|
|
3
|
+
<testsuite name="teambit.component/forking@1.0.489" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={111:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.489",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(111);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})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -57,7 +57,11 @@
|
|
|
57
57
|
"line": 54,
|
|
58
58
|
"character": 24
|
|
59
59
|
},
|
|
60
|
-
"name": "Workspace"
|
|
60
|
+
"name": "Workspace",
|
|
61
|
+
"componentId": {
|
|
62
|
+
"scope": "teambit.workspace",
|
|
63
|
+
"name": "workspace"
|
|
64
|
+
}
|
|
61
65
|
},
|
|
62
66
|
"isOptional": false,
|
|
63
67
|
"isSpread": false
|
|
@@ -77,7 +81,11 @@
|
|
|
77
81
|
"line": 55,
|
|
78
82
|
"character": 20
|
|
79
83
|
},
|
|
80
|
-
"name": "ScopeMain"
|
|
84
|
+
"name": "ScopeMain",
|
|
85
|
+
"componentId": {
|
|
86
|
+
"scope": "teambit.scope",
|
|
87
|
+
"name": "scope"
|
|
88
|
+
}
|
|
81
89
|
},
|
|
82
90
|
"isOptional": false,
|
|
83
91
|
"isSpread": false
|
|
@@ -97,7 +105,11 @@
|
|
|
97
105
|
"line": 56,
|
|
98
106
|
"character": 22
|
|
99
107
|
},
|
|
100
|
-
"name": "InstallMain"
|
|
108
|
+
"name": "InstallMain",
|
|
109
|
+
"componentId": {
|
|
110
|
+
"scope": "teambit.workspace",
|
|
111
|
+
"name": "install"
|
|
112
|
+
}
|
|
101
113
|
},
|
|
102
114
|
"isOptional": false,
|
|
103
115
|
"isSpread": false
|
|
@@ -117,7 +129,11 @@
|
|
|
117
129
|
"line": 57,
|
|
118
130
|
"character": 33
|
|
119
131
|
},
|
|
120
|
-
"name": "DependencyResolverMain"
|
|
132
|
+
"name": "DependencyResolverMain",
|
|
133
|
+
"componentId": {
|
|
134
|
+
"scope": "teambit.dependencies",
|
|
135
|
+
"name": "dependency-resolver"
|
|
136
|
+
}
|
|
121
137
|
},
|
|
122
138
|
"isOptional": false,
|
|
123
139
|
"isSpread": false
|
|
@@ -137,7 +153,11 @@
|
|
|
137
153
|
"line": 58,
|
|
138
154
|
"character": 33
|
|
139
155
|
},
|
|
140
|
-
"name": "NewComponentHelperMain"
|
|
156
|
+
"name": "NewComponentHelperMain",
|
|
157
|
+
"componentId": {
|
|
158
|
+
"scope": "teambit.component",
|
|
159
|
+
"name": "new-component-helper"
|
|
160
|
+
}
|
|
141
161
|
},
|
|
142
162
|
"isOptional": false,
|
|
143
163
|
"isSpread": false
|
|
@@ -157,7 +177,11 @@
|
|
|
157
177
|
"line": 59,
|
|
158
178
|
"character": 26
|
|
159
179
|
},
|
|
160
|
-
"name": "RefactoringMain"
|
|
180
|
+
"name": "RefactoringMain",
|
|
181
|
+
"componentId": {
|
|
182
|
+
"scope": "teambit.component",
|
|
183
|
+
"name": "refactoring"
|
|
184
|
+
}
|
|
161
185
|
},
|
|
162
186
|
"isOptional": false,
|
|
163
187
|
"isSpread": false
|
|
@@ -177,7 +201,11 @@
|
|
|
177
201
|
"line": 60,
|
|
178
202
|
"character": 18
|
|
179
203
|
},
|
|
180
|
-
"name": "PkgMain"
|
|
204
|
+
"name": "PkgMain",
|
|
205
|
+
"componentId": {
|
|
206
|
+
"scope": "teambit.pkg",
|
|
207
|
+
"name": "pkg"
|
|
208
|
+
}
|
|
181
209
|
},
|
|
182
210
|
"isOptional": false,
|
|
183
211
|
"isSpread": false
|
|
@@ -270,7 +298,8 @@
|
|
|
270
298
|
"line": 68,
|
|
271
299
|
"character": 61
|
|
272
300
|
},
|
|
273
|
-
"name": "ForkOptions"
|
|
301
|
+
"name": "ForkOptions",
|
|
302
|
+
"internalFilePath": "fork.cmd.ts"
|
|
274
303
|
},
|
|
275
304
|
"isOptional": true,
|
|
276
305
|
"isSpread": false
|
|
@@ -292,7 +321,12 @@
|
|
|
292
321
|
"line": 68,
|
|
293
322
|
"character": 83
|
|
294
323
|
},
|
|
295
|
-
"name": "ComponentID"
|
|
324
|
+
"name": "ComponentID",
|
|
325
|
+
"componentId": {
|
|
326
|
+
"scope": "teambit.component",
|
|
327
|
+
"name": "component-id",
|
|
328
|
+
"version": "1.2.2"
|
|
329
|
+
}
|
|
296
330
|
}
|
|
297
331
|
]
|
|
298
332
|
},
|
|
@@ -336,7 +370,11 @@
|
|
|
336
370
|
"line": 86,
|
|
337
371
|
"character": 26
|
|
338
372
|
},
|
|
339
|
-
"name": "Component"
|
|
373
|
+
"name": "Component",
|
|
374
|
+
"componentId": {
|
|
375
|
+
"scope": "teambit.component",
|
|
376
|
+
"name": "component"
|
|
377
|
+
}
|
|
340
378
|
},
|
|
341
379
|
"isOptional": false,
|
|
342
380
|
"isSpread": false
|
|
@@ -357,7 +395,8 @@
|
|
|
357
395
|
"line": 86,
|
|
358
396
|
"character": 38
|
|
359
397
|
},
|
|
360
|
-
"name": "ForkInfo"
|
|
398
|
+
"name": "ForkInfo",
|
|
399
|
+
"internalFilePath": "forking.main.runtime.ts"
|
|
361
400
|
},
|
|
362
401
|
{
|
|
363
402
|
"__schema": "LiteralTypeSchema",
|
|
@@ -397,7 +436,8 @@
|
|
|
397
436
|
"line": 94,
|
|
398
437
|
"character": 50
|
|
399
438
|
},
|
|
400
|
-
"name": "MultipleComponentsToFork"
|
|
439
|
+
"name": "MultipleComponentsToFork",
|
|
440
|
+
"internalFilePath": "forking.main.runtime.ts"
|
|
401
441
|
},
|
|
402
442
|
"isOptional": false,
|
|
403
443
|
"isSpread": false
|
|
@@ -417,7 +457,8 @@
|
|
|
417
457
|
"line": 94,
|
|
418
458
|
"character": 85
|
|
419
459
|
},
|
|
420
|
-
"name": "MultipleForkOptions"
|
|
460
|
+
"name": "MultipleForkOptions",
|
|
461
|
+
"internalFilePath": "forking.main.runtime.ts"
|
|
421
462
|
},
|
|
422
463
|
"isOptional": true,
|
|
423
464
|
"defaultValue": "{}",
|
|
@@ -533,7 +574,8 @@
|
|
|
533
574
|
"line": 198,
|
|
534
575
|
"character": 15
|
|
535
576
|
},
|
|
536
|
-
"name": "ScopeForkOptions"
|
|
577
|
+
"name": "ScopeForkOptions",
|
|
578
|
+
"internalFilePath": "scope-fork.cmd.ts"
|
|
537
579
|
},
|
|
538
580
|
"isOptional": true,
|
|
539
581
|
"isSpread": false
|
|
@@ -562,7 +604,12 @@
|
|
|
562
604
|
"line": 199,
|
|
563
605
|
"character": 14
|
|
564
606
|
},
|
|
565
|
-
"name": "ComponentID"
|
|
607
|
+
"name": "ComponentID",
|
|
608
|
+
"componentId": {
|
|
609
|
+
"scope": "teambit.component",
|
|
610
|
+
"name": "component-id",
|
|
611
|
+
"version": "1.2.2"
|
|
612
|
+
}
|
|
566
613
|
}
|
|
567
614
|
}
|
|
568
615
|
]
|
|
@@ -596,7 +643,12 @@
|
|
|
596
643
|
"line": 264,
|
|
597
644
|
"character": 15
|
|
598
645
|
},
|
|
599
|
-
"name": "ComponentID"
|
|
646
|
+
"name": "ComponentID",
|
|
647
|
+
"componentId": {
|
|
648
|
+
"scope": "teambit.component",
|
|
649
|
+
"name": "component-id",
|
|
650
|
+
"version": "1.2.2"
|
|
651
|
+
}
|
|
600
652
|
},
|
|
601
653
|
"isOptional": false,
|
|
602
654
|
"isSpread": false
|
|
@@ -636,7 +688,8 @@
|
|
|
636
688
|
"line": 266,
|
|
637
689
|
"character": 15
|
|
638
690
|
},
|
|
639
|
-
"name": "ForkOptions"
|
|
691
|
+
"name": "ForkOptions",
|
|
692
|
+
"internalFilePath": "fork.cmd.ts"
|
|
640
693
|
},
|
|
641
694
|
"isOptional": true,
|
|
642
695
|
"isSpread": false
|
|
@@ -833,7 +886,11 @@
|
|
|
833
886
|
"line": 387,
|
|
834
887
|
"character": 5
|
|
835
888
|
},
|
|
836
|
-
"name": "CLIMain"
|
|
889
|
+
"name": "CLIMain",
|
|
890
|
+
"componentId": {
|
|
891
|
+
"scope": "teambit.harmony",
|
|
892
|
+
"name": "cli"
|
|
893
|
+
}
|
|
837
894
|
},
|
|
838
895
|
{
|
|
839
896
|
"__schema": "TypeRefSchema",
|
|
@@ -842,7 +899,11 @@
|
|
|
842
899
|
"line": 388,
|
|
843
900
|
"character": 5
|
|
844
901
|
},
|
|
845
|
-
"name": "Workspace"
|
|
902
|
+
"name": "Workspace",
|
|
903
|
+
"componentId": {
|
|
904
|
+
"scope": "teambit.workspace",
|
|
905
|
+
"name": "workspace"
|
|
906
|
+
}
|
|
846
907
|
},
|
|
847
908
|
{
|
|
848
909
|
"__schema": "TypeRefSchema",
|
|
@@ -851,7 +912,11 @@
|
|
|
851
912
|
"line": 389,
|
|
852
913
|
"character": 5
|
|
853
914
|
},
|
|
854
|
-
"name": "ScopeMain"
|
|
915
|
+
"name": "ScopeMain",
|
|
916
|
+
"componentId": {
|
|
917
|
+
"scope": "teambit.scope",
|
|
918
|
+
"name": "scope"
|
|
919
|
+
}
|
|
855
920
|
},
|
|
856
921
|
{
|
|
857
922
|
"__schema": "TypeRefSchema",
|
|
@@ -860,7 +925,11 @@
|
|
|
860
925
|
"line": 390,
|
|
861
926
|
"character": 5
|
|
862
927
|
},
|
|
863
|
-
"name": "DependencyResolverMain"
|
|
928
|
+
"name": "DependencyResolverMain",
|
|
929
|
+
"componentId": {
|
|
930
|
+
"scope": "teambit.dependencies",
|
|
931
|
+
"name": "dependency-resolver"
|
|
932
|
+
}
|
|
864
933
|
},
|
|
865
934
|
{
|
|
866
935
|
"__schema": "TypeRefSchema",
|
|
@@ -869,7 +938,11 @@
|
|
|
869
938
|
"line": 391,
|
|
870
939
|
"character": 5
|
|
871
940
|
},
|
|
872
|
-
"name": "ComponentMain"
|
|
941
|
+
"name": "ComponentMain",
|
|
942
|
+
"componentId": {
|
|
943
|
+
"scope": "teambit.component",
|
|
944
|
+
"name": "component"
|
|
945
|
+
}
|
|
873
946
|
},
|
|
874
947
|
{
|
|
875
948
|
"__schema": "TypeRefSchema",
|
|
@@ -878,7 +951,11 @@
|
|
|
878
951
|
"line": 392,
|
|
879
952
|
"character": 5
|
|
880
953
|
},
|
|
881
|
-
"name": "NewComponentHelperMain"
|
|
954
|
+
"name": "NewComponentHelperMain",
|
|
955
|
+
"componentId": {
|
|
956
|
+
"scope": "teambit.component",
|
|
957
|
+
"name": "new-component-helper"
|
|
958
|
+
}
|
|
882
959
|
},
|
|
883
960
|
{
|
|
884
961
|
"__schema": "TypeRefSchema",
|
|
@@ -887,7 +964,11 @@
|
|
|
887
964
|
"line": 393,
|
|
888
965
|
"character": 5
|
|
889
966
|
},
|
|
890
|
-
"name": "GraphqlMain"
|
|
967
|
+
"name": "GraphqlMain",
|
|
968
|
+
"componentId": {
|
|
969
|
+
"scope": "teambit.harmony",
|
|
970
|
+
"name": "graphql"
|
|
971
|
+
}
|
|
891
972
|
},
|
|
892
973
|
{
|
|
893
974
|
"__schema": "TypeRefSchema",
|
|
@@ -896,7 +977,11 @@
|
|
|
896
977
|
"line": 394,
|
|
897
978
|
"character": 5
|
|
898
979
|
},
|
|
899
|
-
"name": "RefactoringMain"
|
|
980
|
+
"name": "RefactoringMain",
|
|
981
|
+
"componentId": {
|
|
982
|
+
"scope": "teambit.component",
|
|
983
|
+
"name": "refactoring"
|
|
984
|
+
}
|
|
900
985
|
},
|
|
901
986
|
{
|
|
902
987
|
"__schema": "TypeRefSchema",
|
|
@@ -905,7 +990,11 @@
|
|
|
905
990
|
"line": 395,
|
|
906
991
|
"character": 5
|
|
907
992
|
},
|
|
908
|
-
"name": "PkgMain"
|
|
993
|
+
"name": "PkgMain",
|
|
994
|
+
"componentId": {
|
|
995
|
+
"scope": "teambit.pkg",
|
|
996
|
+
"name": "pkg"
|
|
997
|
+
}
|
|
909
998
|
},
|
|
910
999
|
{
|
|
911
1000
|
"__schema": "TypeRefSchema",
|
|
@@ -914,7 +1003,11 @@
|
|
|
914
1003
|
"line": 396,
|
|
915
1004
|
"character": 5
|
|
916
1005
|
},
|
|
917
|
-
"name": "InstallMain"
|
|
1006
|
+
"name": "InstallMain",
|
|
1007
|
+
"componentId": {
|
|
1008
|
+
"scope": "teambit.workspace",
|
|
1009
|
+
"name": "install"
|
|
1010
|
+
}
|
|
918
1011
|
}
|
|
919
1012
|
]
|
|
920
1013
|
},
|
|
@@ -1079,7 +1172,11 @@
|
|
|
1079
1172
|
"line": 54,
|
|
1080
1173
|
"character": 24
|
|
1081
1174
|
},
|
|
1082
|
-
"name": "Workspace"
|
|
1175
|
+
"name": "Workspace",
|
|
1176
|
+
"componentId": {
|
|
1177
|
+
"scope": "teambit.workspace",
|
|
1178
|
+
"name": "workspace"
|
|
1179
|
+
}
|
|
1083
1180
|
},
|
|
1084
1181
|
"isOptional": false,
|
|
1085
1182
|
"isSpread": false
|
|
@@ -1099,7 +1196,11 @@
|
|
|
1099
1196
|
"line": 55,
|
|
1100
1197
|
"character": 20
|
|
1101
1198
|
},
|
|
1102
|
-
"name": "ScopeMain"
|
|
1199
|
+
"name": "ScopeMain",
|
|
1200
|
+
"componentId": {
|
|
1201
|
+
"scope": "teambit.scope",
|
|
1202
|
+
"name": "scope"
|
|
1203
|
+
}
|
|
1103
1204
|
},
|
|
1104
1205
|
"isOptional": false,
|
|
1105
1206
|
"isSpread": false
|
|
@@ -1119,7 +1220,11 @@
|
|
|
1119
1220
|
"line": 56,
|
|
1120
1221
|
"character": 22
|
|
1121
1222
|
},
|
|
1122
|
-
"name": "InstallMain"
|
|
1223
|
+
"name": "InstallMain",
|
|
1224
|
+
"componentId": {
|
|
1225
|
+
"scope": "teambit.workspace",
|
|
1226
|
+
"name": "install"
|
|
1227
|
+
}
|
|
1123
1228
|
},
|
|
1124
1229
|
"isOptional": false,
|
|
1125
1230
|
"isSpread": false
|
|
@@ -1139,7 +1244,11 @@
|
|
|
1139
1244
|
"line": 57,
|
|
1140
1245
|
"character": 33
|
|
1141
1246
|
},
|
|
1142
|
-
"name": "DependencyResolverMain"
|
|
1247
|
+
"name": "DependencyResolverMain",
|
|
1248
|
+
"componentId": {
|
|
1249
|
+
"scope": "teambit.dependencies",
|
|
1250
|
+
"name": "dependency-resolver"
|
|
1251
|
+
}
|
|
1143
1252
|
},
|
|
1144
1253
|
"isOptional": false,
|
|
1145
1254
|
"isSpread": false
|
|
@@ -1159,7 +1268,11 @@
|
|
|
1159
1268
|
"line": 58,
|
|
1160
1269
|
"character": 33
|
|
1161
1270
|
},
|
|
1162
|
-
"name": "NewComponentHelperMain"
|
|
1271
|
+
"name": "NewComponentHelperMain",
|
|
1272
|
+
"componentId": {
|
|
1273
|
+
"scope": "teambit.component",
|
|
1274
|
+
"name": "new-component-helper"
|
|
1275
|
+
}
|
|
1163
1276
|
},
|
|
1164
1277
|
"isOptional": false,
|
|
1165
1278
|
"isSpread": false
|
|
@@ -1179,7 +1292,11 @@
|
|
|
1179
1292
|
"line": 59,
|
|
1180
1293
|
"character": 26
|
|
1181
1294
|
},
|
|
1182
|
-
"name": "RefactoringMain"
|
|
1295
|
+
"name": "RefactoringMain",
|
|
1296
|
+
"componentId": {
|
|
1297
|
+
"scope": "teambit.component",
|
|
1298
|
+
"name": "refactoring"
|
|
1299
|
+
}
|
|
1183
1300
|
},
|
|
1184
1301
|
"isOptional": false,
|
|
1185
1302
|
"isSpread": false
|
|
@@ -1199,7 +1316,11 @@
|
|
|
1199
1316
|
"line": 60,
|
|
1200
1317
|
"character": 18
|
|
1201
1318
|
},
|
|
1202
|
-
"name": "PkgMain"
|
|
1319
|
+
"name": "PkgMain",
|
|
1320
|
+
"componentId": {
|
|
1321
|
+
"scope": "teambit.pkg",
|
|
1322
|
+
"name": "pkg"
|
|
1323
|
+
}
|
|
1203
1324
|
},
|
|
1204
1325
|
"isOptional": false,
|
|
1205
1326
|
"isSpread": false
|
|
@@ -1292,7 +1413,8 @@
|
|
|
1292
1413
|
"line": 68,
|
|
1293
1414
|
"character": 61
|
|
1294
1415
|
},
|
|
1295
|
-
"name": "ForkOptions"
|
|
1416
|
+
"name": "ForkOptions",
|
|
1417
|
+
"internalFilePath": "fork.cmd.ts"
|
|
1296
1418
|
},
|
|
1297
1419
|
"isOptional": true,
|
|
1298
1420
|
"isSpread": false
|
|
@@ -1314,7 +1436,12 @@
|
|
|
1314
1436
|
"line": 68,
|
|
1315
1437
|
"character": 83
|
|
1316
1438
|
},
|
|
1317
|
-
"name": "ComponentID"
|
|
1439
|
+
"name": "ComponentID",
|
|
1440
|
+
"componentId": {
|
|
1441
|
+
"scope": "teambit.component",
|
|
1442
|
+
"name": "component-id",
|
|
1443
|
+
"version": "1.2.2"
|
|
1444
|
+
}
|
|
1318
1445
|
}
|
|
1319
1446
|
]
|
|
1320
1447
|
},
|
|
@@ -1358,7 +1485,11 @@
|
|
|
1358
1485
|
"line": 86,
|
|
1359
1486
|
"character": 26
|
|
1360
1487
|
},
|
|
1361
|
-
"name": "Component"
|
|
1488
|
+
"name": "Component",
|
|
1489
|
+
"componentId": {
|
|
1490
|
+
"scope": "teambit.component",
|
|
1491
|
+
"name": "component"
|
|
1492
|
+
}
|
|
1362
1493
|
},
|
|
1363
1494
|
"isOptional": false,
|
|
1364
1495
|
"isSpread": false
|
|
@@ -1379,7 +1510,8 @@
|
|
|
1379
1510
|
"line": 86,
|
|
1380
1511
|
"character": 38
|
|
1381
1512
|
},
|
|
1382
|
-
"name": "ForkInfo"
|
|
1513
|
+
"name": "ForkInfo",
|
|
1514
|
+
"internalFilePath": "forking.main.runtime.ts"
|
|
1383
1515
|
},
|
|
1384
1516
|
{
|
|
1385
1517
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1419,7 +1551,8 @@
|
|
|
1419
1551
|
"line": 94,
|
|
1420
1552
|
"character": 50
|
|
1421
1553
|
},
|
|
1422
|
-
"name": "MultipleComponentsToFork"
|
|
1554
|
+
"name": "MultipleComponentsToFork",
|
|
1555
|
+
"internalFilePath": "forking.main.runtime.ts"
|
|
1423
1556
|
},
|
|
1424
1557
|
"isOptional": false,
|
|
1425
1558
|
"isSpread": false
|
|
@@ -1439,7 +1572,8 @@
|
|
|
1439
1572
|
"line": 94,
|
|
1440
1573
|
"character": 85
|
|
1441
1574
|
},
|
|
1442
|
-
"name": "MultipleForkOptions"
|
|
1575
|
+
"name": "MultipleForkOptions",
|
|
1576
|
+
"internalFilePath": "forking.main.runtime.ts"
|
|
1443
1577
|
},
|
|
1444
1578
|
"isOptional": true,
|
|
1445
1579
|
"defaultValue": "{}",
|
|
@@ -1555,7 +1689,8 @@
|
|
|
1555
1689
|
"line": 198,
|
|
1556
1690
|
"character": 15
|
|
1557
1691
|
},
|
|
1558
|
-
"name": "ScopeForkOptions"
|
|
1692
|
+
"name": "ScopeForkOptions",
|
|
1693
|
+
"internalFilePath": "scope-fork.cmd.ts"
|
|
1559
1694
|
},
|
|
1560
1695
|
"isOptional": true,
|
|
1561
1696
|
"isSpread": false
|
|
@@ -1584,7 +1719,12 @@
|
|
|
1584
1719
|
"line": 199,
|
|
1585
1720
|
"character": 14
|
|
1586
1721
|
},
|
|
1587
|
-
"name": "ComponentID"
|
|
1722
|
+
"name": "ComponentID",
|
|
1723
|
+
"componentId": {
|
|
1724
|
+
"scope": "teambit.component",
|
|
1725
|
+
"name": "component-id",
|
|
1726
|
+
"version": "1.2.2"
|
|
1727
|
+
}
|
|
1588
1728
|
}
|
|
1589
1729
|
}
|
|
1590
1730
|
]
|
|
@@ -1618,7 +1758,12 @@
|
|
|
1618
1758
|
"line": 264,
|
|
1619
1759
|
"character": 15
|
|
1620
1760
|
},
|
|
1621
|
-
"name": "ComponentID"
|
|
1761
|
+
"name": "ComponentID",
|
|
1762
|
+
"componentId": {
|
|
1763
|
+
"scope": "teambit.component",
|
|
1764
|
+
"name": "component-id",
|
|
1765
|
+
"version": "1.2.2"
|
|
1766
|
+
}
|
|
1622
1767
|
},
|
|
1623
1768
|
"isOptional": false,
|
|
1624
1769
|
"isSpread": false
|
|
@@ -1658,7 +1803,8 @@
|
|
|
1658
1803
|
"line": 266,
|
|
1659
1804
|
"character": 15
|
|
1660
1805
|
},
|
|
1661
|
-
"name": "ForkOptions"
|
|
1806
|
+
"name": "ForkOptions",
|
|
1807
|
+
"internalFilePath": "fork.cmd.ts"
|
|
1662
1808
|
},
|
|
1663
1809
|
"isOptional": true,
|
|
1664
1810
|
"isSpread": false
|
|
@@ -1855,7 +2001,11 @@
|
|
|
1855
2001
|
"line": 387,
|
|
1856
2002
|
"character": 5
|
|
1857
2003
|
},
|
|
1858
|
-
"name": "CLIMain"
|
|
2004
|
+
"name": "CLIMain",
|
|
2005
|
+
"componentId": {
|
|
2006
|
+
"scope": "teambit.harmony",
|
|
2007
|
+
"name": "cli"
|
|
2008
|
+
}
|
|
1859
2009
|
},
|
|
1860
2010
|
{
|
|
1861
2011
|
"__schema": "TypeRefSchema",
|
|
@@ -1864,7 +2014,11 @@
|
|
|
1864
2014
|
"line": 388,
|
|
1865
2015
|
"character": 5
|
|
1866
2016
|
},
|
|
1867
|
-
"name": "Workspace"
|
|
2017
|
+
"name": "Workspace",
|
|
2018
|
+
"componentId": {
|
|
2019
|
+
"scope": "teambit.workspace",
|
|
2020
|
+
"name": "workspace"
|
|
2021
|
+
}
|
|
1868
2022
|
},
|
|
1869
2023
|
{
|
|
1870
2024
|
"__schema": "TypeRefSchema",
|
|
@@ -1873,7 +2027,11 @@
|
|
|
1873
2027
|
"line": 389,
|
|
1874
2028
|
"character": 5
|
|
1875
2029
|
},
|
|
1876
|
-
"name": "ScopeMain"
|
|
2030
|
+
"name": "ScopeMain",
|
|
2031
|
+
"componentId": {
|
|
2032
|
+
"scope": "teambit.scope",
|
|
2033
|
+
"name": "scope"
|
|
2034
|
+
}
|
|
1877
2035
|
},
|
|
1878
2036
|
{
|
|
1879
2037
|
"__schema": "TypeRefSchema",
|
|
@@ -1882,7 +2040,11 @@
|
|
|
1882
2040
|
"line": 390,
|
|
1883
2041
|
"character": 5
|
|
1884
2042
|
},
|
|
1885
|
-
"name": "DependencyResolverMain"
|
|
2043
|
+
"name": "DependencyResolverMain",
|
|
2044
|
+
"componentId": {
|
|
2045
|
+
"scope": "teambit.dependencies",
|
|
2046
|
+
"name": "dependency-resolver"
|
|
2047
|
+
}
|
|
1886
2048
|
},
|
|
1887
2049
|
{
|
|
1888
2050
|
"__schema": "TypeRefSchema",
|
|
@@ -1891,7 +2053,11 @@
|
|
|
1891
2053
|
"line": 391,
|
|
1892
2054
|
"character": 5
|
|
1893
2055
|
},
|
|
1894
|
-
"name": "ComponentMain"
|
|
2056
|
+
"name": "ComponentMain",
|
|
2057
|
+
"componentId": {
|
|
2058
|
+
"scope": "teambit.component",
|
|
2059
|
+
"name": "component"
|
|
2060
|
+
}
|
|
1895
2061
|
},
|
|
1896
2062
|
{
|
|
1897
2063
|
"__schema": "TypeRefSchema",
|
|
@@ -1900,7 +2066,11 @@
|
|
|
1900
2066
|
"line": 392,
|
|
1901
2067
|
"character": 5
|
|
1902
2068
|
},
|
|
1903
|
-
"name": "NewComponentHelperMain"
|
|
2069
|
+
"name": "NewComponentHelperMain",
|
|
2070
|
+
"componentId": {
|
|
2071
|
+
"scope": "teambit.component",
|
|
2072
|
+
"name": "new-component-helper"
|
|
2073
|
+
}
|
|
1904
2074
|
},
|
|
1905
2075
|
{
|
|
1906
2076
|
"__schema": "TypeRefSchema",
|
|
@@ -1909,7 +2079,11 @@
|
|
|
1909
2079
|
"line": 393,
|
|
1910
2080
|
"character": 5
|
|
1911
2081
|
},
|
|
1912
|
-
"name": "GraphqlMain"
|
|
2082
|
+
"name": "GraphqlMain",
|
|
2083
|
+
"componentId": {
|
|
2084
|
+
"scope": "teambit.harmony",
|
|
2085
|
+
"name": "graphql"
|
|
2086
|
+
}
|
|
1913
2087
|
},
|
|
1914
2088
|
{
|
|
1915
2089
|
"__schema": "TypeRefSchema",
|
|
@@ -1918,7 +2092,11 @@
|
|
|
1918
2092
|
"line": 394,
|
|
1919
2093
|
"character": 5
|
|
1920
2094
|
},
|
|
1921
|
-
"name": "RefactoringMain"
|
|
2095
|
+
"name": "RefactoringMain",
|
|
2096
|
+
"componentId": {
|
|
2097
|
+
"scope": "teambit.component",
|
|
2098
|
+
"name": "refactoring"
|
|
2099
|
+
}
|
|
1922
2100
|
},
|
|
1923
2101
|
{
|
|
1924
2102
|
"__schema": "TypeRefSchema",
|
|
@@ -1927,7 +2105,11 @@
|
|
|
1927
2105
|
"line": 395,
|
|
1928
2106
|
"character": 5
|
|
1929
2107
|
},
|
|
1930
|
-
"name": "PkgMain"
|
|
2108
|
+
"name": "PkgMain",
|
|
2109
|
+
"componentId": {
|
|
2110
|
+
"scope": "teambit.pkg",
|
|
2111
|
+
"name": "pkg"
|
|
2112
|
+
}
|
|
1931
2113
|
},
|
|
1932
2114
|
{
|
|
1933
2115
|
"__schema": "TypeRefSchema",
|
|
@@ -1936,7 +2118,11 @@
|
|
|
1936
2118
|
"line": 396,
|
|
1937
2119
|
"character": 5
|
|
1938
2120
|
},
|
|
1939
|
-
"name": "InstallMain"
|
|
2121
|
+
"name": "InstallMain",
|
|
2122
|
+
"componentId": {
|
|
2123
|
+
"scope": "teambit.workspace",
|
|
2124
|
+
"name": "install"
|
|
2125
|
+
}
|
|
1940
2126
|
}
|
|
1941
2127
|
]
|
|
1942
2128
|
},
|
|
@@ -2240,7 +2426,11 @@
|
|
|
2240
2426
|
"line": 42,
|
|
2241
2427
|
"character": 12
|
|
2242
2428
|
},
|
|
2243
|
-
"name": "ComponentConfig"
|
|
2429
|
+
"name": "ComponentConfig",
|
|
2430
|
+
"componentId": {
|
|
2431
|
+
"scope": "teambit.generator",
|
|
2432
|
+
"name": "generator"
|
|
2433
|
+
}
|
|
2244
2434
|
},
|
|
2245
2435
|
"isOptional": true
|
|
2246
2436
|
}
|
|
@@ -2402,7 +2592,7 @@
|
|
|
2402
2592
|
"componentId": {
|
|
2403
2593
|
"scope": "teambit.component",
|
|
2404
2594
|
"name": "forking",
|
|
2405
|
-
"version": "1.0.
|
|
2595
|
+
"version": "1.0.489"
|
|
2406
2596
|
},
|
|
2407
2597
|
"taggedModuleExports": []
|
|
2408
2598
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.489/dist/forking.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.489/dist/forking.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/dist/scope-fork.cmd.js
CHANGED
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ScopeForkCmd = void 0;
|
|
7
|
-
function
|
|
8
|
-
const data = require("@teambit/legacy
|
|
9
|
-
|
|
7
|
+
function _legacy() {
|
|
8
|
+
const data = require("@teambit/legacy.constants");
|
|
9
|
+
_legacy = function () {
|
|
10
10
|
return data;
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
@@ -34,7 +34,7 @@ class ScopeForkCmd {
|
|
|
34
34
|
description: 'the new scope to fork to, default to the default-scope of the workspace'
|
|
35
35
|
}, {
|
|
36
36
|
name: 'pattern',
|
|
37
|
-
description:
|
|
37
|
+
description: _legacy().COMPONENT_PATTERN_HELP
|
|
38
38
|
}]);
|
|
39
39
|
_defineProperty(this, "description", 'fork all components of the original-scope and refactor the source-code to use the new scope name');
|
|
40
40
|
_defineProperty(this, "extendedDescription", 'optionally, provide [pattern] to limit the fork to specific components');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_legacy","data","require","_chalk","_interopRequireDefault","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeForkCmd","constructor","forking","name","description","COMPONENT_PATTERN_HELP","report","originalScope","newScope","pattern","options","forkedIds","forkScope","title","chalk","green","bold","scope","map","id","toString","join","exports"],"sources":["scope-fork.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport chalk from 'chalk';\nimport { ForkingMain } from './forking.main.runtime';\n\nexport type ScopeForkOptions = {\n ast?: boolean;\n skipDependencyInstallation?: boolean;\n};\nexport class ScopeForkCmd implements Command {\n name = 'fork <original-scope> [new-scope] [pattern]';\n arguments = [\n {\n name: 'original-scope',\n description: 'the original scope to fork',\n },\n {\n name: 'new-scope',\n description: 'the new scope to fork to, default to the default-scope of the workspace',\n },\n {\n name: 'pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = 'fork all components of the original-scope and refactor the source-code to use the new scope name';\n extendedDescription = 'optionally, provide [pattern] to limit the fork to specific components';\n options = [\n ['', 'ast', 'use ast to transform files instead of regex'],\n ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n group = 'development';\n\n constructor(private forking: ForkingMain) {}\n\n async report([originalScope, newScope, pattern]: [string, string, string], options: ScopeForkOptions) {\n const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);\n const title = chalk.green(\n `successfully forked ${chalk.bold(originalScope)} into ${chalk.bold(\n newScope || forkedIds[0].scope\n )}. the following components were created`\n );\n return `${title}\\n${forkedIds.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAOnB,MAAMgB,YAAY,CAAoB;EAwB3CC,WAAWA,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAApB,eAAA,eAvBjC,6CAA6C;IAAAA,eAAA,oBACxC,CACV;MACEqB,IAAI,EAAE,gBAAgB;MACtBC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,WAAW;MACjBC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,SAAS;MACfC,WAAW,EAAEC;IACf,CAAC,CACF;IAAAvB,eAAA,sBACa,kGAAkG;IAAAA,eAAA,8BAC1F,wEAAwE;IAAAA,eAAA,kBACpF,CACR,CAAC,EAAE,EAAE,KAAK,EAAE,6CAA6C,CAAC,EAC1D,CAAC,GAAG,EAAE,8BAA8B,EAAE,oDAAoD,CAAC,CAC5F;IAAAA,eAAA,gBACO,aAAa;EAEsB;EAE3C,MAAMwB,MAAMA,CAAC,CAACC,aAAa,EAAEC,QAAQ,EAAEC,OAAO,CAA2B,EAAEC,OAAyB,EAAE;IACpG,MAAMC,SAAS,GAAG,MAAM,IAAI,CAACT,OAAO,CAACU,SAAS,CAACL,aAAa,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,OAAO,CAAC;IACzF,MAAMG,KAAK,GAAGC,gBAAK,CAACC,KAAK,CACvB,uBAAuBD,gBAAK,CAACE,IAAI,CAACT,aAAa,CAAC,SAASO,gBAAK,CAACE,IAAI,CACjER,QAAQ,IAAIG,SAAS,CAAC,CAAC,CAAC,CAACM,KAC3B,CAAC,yCACH,CAAC;IACD,OAAO,GAAGJ,KAAK,KAAKF,SAAS,CAACO,GAAG,CAAEC,EAAE,IAAKA,EAAE,CAACC,QAAQ,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC,EAAE;EACvE;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/forking",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.489",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/forking",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "forking",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.489"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
13
13
|
"graphql-tag": "2.12.1",
|
|
14
14
|
"lodash": "4.17.21",
|
|
15
15
|
"p-map-series": "2.1.0",
|
|
16
|
-
"semver": "7.5.
|
|
16
|
+
"semver": "7.5.4",
|
|
17
17
|
"@teambit/harmony": "0.4.6",
|
|
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.
|
|
22
|
-
"@teambit/generator": "1.0.
|
|
23
|
-
"@teambit/component": "1.0.
|
|
24
|
-
"@teambit/graphql": "1.0.
|
|
21
|
+
"@teambit/cli": "0.0.1066",
|
|
22
|
+
"@teambit/generator": "1.0.490",
|
|
23
|
+
"@teambit/component": "1.0.489",
|
|
24
|
+
"@teambit/graphql": "1.0.489",
|
|
25
25
|
"@teambit/component-package-version": "0.0.434",
|
|
26
|
-
"@teambit/dependency-resolver": "1.0.
|
|
27
|
-
"@teambit/install": "1.0.
|
|
28
|
-
"@teambit/new-component-helper": "1.0.
|
|
29
|
-
"@teambit/pkg": "1.0.
|
|
30
|
-
"@teambit/refactoring": "1.0.
|
|
31
|
-
"@teambit/scope": "1.0.
|
|
32
|
-
"@teambit/typescript": "1.0.
|
|
33
|
-
"@teambit/workspace": "1.0.
|
|
26
|
+
"@teambit/dependency-resolver": "1.0.489",
|
|
27
|
+
"@teambit/install": "1.0.489",
|
|
28
|
+
"@teambit/new-component-helper": "1.0.489",
|
|
29
|
+
"@teambit/pkg": "1.0.489",
|
|
30
|
+
"@teambit/refactoring": "1.0.489",
|
|
31
|
+
"@teambit/scope": "1.0.489",
|
|
32
|
+
"@teambit/typescript": "1.0.489",
|
|
33
|
+
"@teambit/workspace": "1.0.489",
|
|
34
|
+
"@teambit/legacy.constants": "0.0.2"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@types/lodash": "4.14.165",
|