@teambit/mover 1.0.329 → 1.0.331

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.
@@ -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/mover@1.0.329" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/mover@1.0.331" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -25,7 +25,7 @@
25
25
  "__schema": "ClassSchema",
26
26
  "location": {
27
27
  "filePath": "mover.main.runtime.ts",
28
- "line": 16,
28
+ "line": 15,
29
29
  "character": 1
30
30
  },
31
31
  "signature": "class MoverMain",
@@ -35,7 +35,7 @@
35
35
  "__schema": "ConstructorSchema",
36
36
  "location": {
37
37
  "filePath": "mover.main.runtime.ts",
38
- "line": 17,
38
+ "line": 16,
39
39
  "character": 3
40
40
  },
41
41
  "signature": "constructor MoverMain(workspace: Workspace): MoverMain",
@@ -45,7 +45,7 @@
45
45
  "__schema": "ParameterSchema",
46
46
  "location": {
47
47
  "filePath": "mover.main.runtime.ts",
48
- "line": 17,
48
+ "line": 16,
49
49
  "character": 15
50
50
  },
51
51
  "name": "workspace",
@@ -53,14 +53,10 @@
53
53
  "__schema": "TypeRefSchema",
54
54
  "location": {
55
55
  "filePath": "mover.main.runtime.ts",
56
- "line": 17,
56
+ "line": 16,
57
57
  "character": 34
58
58
  },
59
- "name": "Workspace",
60
- "componentId": {
61
- "scope": "teambit.workspace",
62
- "name": "workspace"
63
- }
59
+ "name": "Workspace"
64
60
  },
65
61
  "isOptional": false,
66
62
  "isSpread": false
@@ -70,7 +66,7 @@
70
66
  "__schema": "ThisTypeSchema",
71
67
  "location": {
72
68
  "filePath": "mover.main.runtime.ts",
73
- "line": 16,
69
+ "line": 15,
74
70
  "character": 1
75
71
  },
76
72
  "name": "MoverMain"
@@ -81,7 +77,7 @@
81
77
  "__schema": "FunctionLikeSchema",
82
78
  "location": {
83
79
  "filePath": "mover.main.runtime.ts",
84
- "line": 19,
80
+ "line": 18,
85
81
  "character": 3
86
82
  },
87
83
  "signature": "(method) MoverMain.movePaths({ from, to }: {\n from: PathOsBasedRelative;\n to: PathOsBasedRelative;\n}): Promise<PathChangeResult[]>",
@@ -91,7 +87,7 @@
91
87
  "__schema": "ParameterSchema",
92
88
  "location": {
93
89
  "filePath": "mover.main.runtime.ts",
94
- "line": 19,
90
+ "line": 18,
95
91
  "character": 19
96
92
  },
97
93
  "name": "{ from, to }",
@@ -99,7 +95,7 @@
99
95
  "__schema": "TypeLiteralSchema",
100
96
  "location": {
101
97
  "filePath": "mover.main.runtime.ts",
102
- "line": 19,
98
+ "line": 18,
103
99
  "character": 33
104
100
  },
105
101
  "members": [
@@ -107,7 +103,7 @@
107
103
  "__schema": "VariableLikeSchema",
108
104
  "location": {
109
105
  "filePath": "mover.main.runtime.ts",
110
- "line": 19,
106
+ "line": 18,
111
107
  "character": 35
112
108
  },
113
109
  "signature": "(property) from: string",
@@ -116,11 +112,10 @@
116
112
  "__schema": "TypeRefSchema",
117
113
  "location": {
118
114
  "filePath": "mover.main.runtime.ts",
119
- "line": 19,
115
+ "line": 18,
120
116
  "character": 41
121
117
  },
122
- "name": "PathOsBasedRelative",
123
- "packageName": "@teambit/legacy/dist/utils/path"
118
+ "name": "PathOsBasedRelative"
124
119
  },
125
120
  "isOptional": false
126
121
  },
@@ -128,7 +123,7 @@
128
123
  "__schema": "VariableLikeSchema",
129
124
  "location": {
130
125
  "filePath": "mover.main.runtime.ts",
131
- "line": 19,
126
+ "line": 18,
132
127
  "character": 62
133
128
  },
134
129
  "signature": "(property) to: string",
@@ -137,11 +132,10 @@
137
132
  "__schema": "TypeRefSchema",
138
133
  "location": {
139
134
  "filePath": "mover.main.runtime.ts",
140
- "line": 19,
135
+ "line": 18,
141
136
  "character": 66
142
137
  },
143
- "name": "PathOsBasedRelative",
144
- "packageName": "@teambit/legacy/dist/utils/path"
138
+ "name": "PathOsBasedRelative"
145
139
  },
146
140
  "isOptional": false
147
141
  }
@@ -153,7 +147,7 @@
153
147
  "__schema": "VariableLikeSchema",
154
148
  "location": {
155
149
  "filePath": "mover.main.runtime.ts",
156
- "line": 19,
150
+ "line": 18,
157
151
  "character": 35
158
152
  },
159
153
  "signature": "(property) from: string",
@@ -162,11 +156,10 @@
162
156
  "__schema": "TypeRefSchema",
163
157
  "location": {
164
158
  "filePath": "mover.main.runtime.ts",
165
- "line": 19,
159
+ "line": 18,
166
160
  "character": 41
167
161
  },
168
- "name": "PathOsBasedRelative",
169
- "packageName": "@teambit/legacy/dist/utils/path"
162
+ "name": "PathOsBasedRelative"
170
163
  },
171
164
  "isOptional": false
172
165
  },
@@ -174,7 +167,7 @@
174
167
  "__schema": "VariableLikeSchema",
175
168
  "location": {
176
169
  "filePath": "mover.main.runtime.ts",
177
- "line": 19,
170
+ "line": 18,
178
171
  "character": 62
179
172
  },
180
173
  "signature": "(property) to: string",
@@ -183,11 +176,10 @@
183
176
  "__schema": "TypeRefSchema",
184
177
  "location": {
185
178
  "filePath": "mover.main.runtime.ts",
186
- "line": 19,
179
+ "line": 18,
187
180
  "character": 66
188
181
  },
189
- "name": "PathOsBasedRelative",
190
- "packageName": "@teambit/legacy/dist/utils/path"
182
+ "name": "PathOsBasedRelative"
191
183
  },
192
184
  "isOptional": false
193
185
  }
@@ -199,7 +191,7 @@
199
191
  "__schema": "TypeRefSchema",
200
192
  "location": {
201
193
  "filePath": "mover.main.runtime.ts",
202
- "line": 19,
194
+ "line": 18,
203
195
  "character": 90
204
196
  },
205
197
  "name": "Promise",
@@ -208,18 +200,17 @@
208
200
  "__schema": "TypeArraySchema",
209
201
  "location": {
210
202
  "filePath": "mover.main.runtime.ts",
211
- "line": 19,
203
+ "line": 18,
212
204
  "character": 98
213
205
  },
214
206
  "type": {
215
207
  "__schema": "TypeRefSchema",
216
208
  "location": {
217
209
  "filePath": "mover.main.runtime.ts",
218
- "line": 19,
210
+ "line": 18,
219
211
  "character": 98
220
212
  },
221
- "name": "PathChangeResult",
222
- "packageName": "@teambit/legacy/dist/consumer/bit-map/bit-map"
213
+ "name": "PathChangeResult"
223
214
  }
224
215
  }
225
216
  ]
@@ -232,7 +223,7 @@
232
223
  "__schema": "FunctionLikeSchema",
233
224
  "location": {
234
225
  "filePath": "mover.main.runtime.ts",
235
- "line": 52,
226
+ "line": 51,
236
227
  "character": 3
237
228
  },
238
229
  "signature": "(method) MoverMain.moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void",
@@ -242,7 +233,7 @@
242
233
  "__schema": "ParameterSchema",
243
234
  "location": {
244
235
  "filePath": "mover.main.runtime.ts",
245
- "line": 52,
236
+ "line": 51,
246
237
  "character": 25
247
238
  },
248
239
  "name": "component",
@@ -250,11 +241,10 @@
250
241
  "__schema": "TypeRefSchema",
251
242
  "location": {
252
243
  "filePath": "mover.main.runtime.ts",
253
- "line": 52,
244
+ "line": 51,
254
245
  "character": 36
255
246
  },
256
- "name": "Component",
257
- "packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
247
+ "name": "Component"
258
248
  },
259
249
  "isOptional": false,
260
250
  "isSpread": false
@@ -263,7 +253,7 @@
263
253
  "__schema": "ParameterSchema",
264
254
  "location": {
265
255
  "filePath": "mover.main.runtime.ts",
266
- "line": 52,
256
+ "line": 51,
267
257
  "character": 47
268
258
  },
269
259
  "name": "oldPath",
@@ -271,11 +261,10 @@
271
261
  "__schema": "TypeRefSchema",
272
262
  "location": {
273
263
  "filePath": "mover.main.runtime.ts",
274
- "line": 52,
264
+ "line": 51,
275
265
  "character": 56
276
266
  },
277
- "name": "PathOsBasedAbsolute",
278
- "packageName": "@teambit/legacy/dist/utils/path"
267
+ "name": "PathOsBasedAbsolute"
279
268
  },
280
269
  "isOptional": false,
281
270
  "isSpread": false
@@ -284,7 +273,7 @@
284
273
  "__schema": "ParameterSchema",
285
274
  "location": {
286
275
  "filePath": "mover.main.runtime.ts",
287
- "line": 52,
276
+ "line": 51,
288
277
  "character": 77
289
278
  },
290
279
  "name": "newPath",
@@ -292,11 +281,10 @@
292
281
  "__schema": "TypeRefSchema",
293
282
  "location": {
294
283
  "filePath": "mover.main.runtime.ts",
295
- "line": 52,
284
+ "line": 51,
296
285
  "character": 86
297
286
  },
298
- "name": "PathOsBasedAbsolute",
299
- "packageName": "@teambit/legacy/dist/utils/path"
287
+ "name": "PathOsBasedAbsolute"
300
288
  },
301
289
  "isOptional": false,
302
290
  "isSpread": false
@@ -306,7 +294,7 @@
306
294
  "__schema": "InferenceTypeSchema",
307
295
  "location": {
308
296
  "filePath": "mover.main.runtime.ts",
309
- "line": 52,
297
+ "line": 51,
310
298
  "character": 3
311
299
  },
312
300
  "type": "void"
@@ -317,7 +305,7 @@
317
305
  "__schema": "VariableLikeSchema",
318
306
  "location": {
319
307
  "filePath": "mover.main.runtime.ts",
320
- "line": 73,
308
+ "line": 72,
321
309
  "character": 3
322
310
  },
323
311
  "signature": "(property) MoverMain.slots: never[]",
@@ -326,7 +314,7 @@
326
314
  "__schema": "InferenceTypeSchema",
327
315
  "location": {
328
316
  "filePath": "mover.main.runtime.ts",
329
- "line": 73,
317
+ "line": 72,
330
318
  "character": 3
331
319
  },
332
320
  "type": "never[]"
@@ -338,7 +326,7 @@
338
326
  "__schema": "VariableLikeSchema",
339
327
  "location": {
340
328
  "filePath": "mover.main.runtime.ts",
341
- "line": 74,
329
+ "line": 73,
342
330
  "character": 3
343
331
  },
344
332
  "signature": "(property) MoverMain.dependencies: Aspect[]",
@@ -347,7 +335,7 @@
347
335
  "__schema": "InferenceTypeSchema",
348
336
  "location": {
349
337
  "filePath": "mover.main.runtime.ts",
350
- "line": 74,
338
+ "line": 73,
351
339
  "character": 3
352
340
  },
353
341
  "type": "Aspect[]"
@@ -359,7 +347,7 @@
359
347
  "__schema": "VariableLikeSchema",
360
348
  "location": {
361
349
  "filePath": "mover.main.runtime.ts",
362
- "line": 75,
350
+ "line": 74,
363
351
  "character": 3
364
352
  },
365
353
  "signature": "(property) MoverMain.runtime: RuntimeDefinition",
@@ -368,7 +356,7 @@
368
356
  "__schema": "InferenceTypeSchema",
369
357
  "location": {
370
358
  "filePath": "mover.main.runtime.ts",
371
- "line": 75,
359
+ "line": 74,
372
360
  "character": 3
373
361
  },
374
362
  "type": "RuntimeDefinition"
@@ -380,7 +368,7 @@
380
368
  "__schema": "FunctionLikeSchema",
381
369
  "location": {
382
370
  "filePath": "mover.main.runtime.ts",
383
- "line": 77,
371
+ "line": 76,
384
372
  "character": 3
385
373
  },
386
374
  "signature": "(method) MoverMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>",
@@ -390,7 +378,7 @@
390
378
  "__schema": "ParameterSchema",
391
379
  "location": {
392
380
  "filePath": "mover.main.runtime.ts",
393
- "line": 77,
381
+ "line": 76,
394
382
  "character": 25
395
383
  },
396
384
  "name": "[ cli, workspace ]",
@@ -398,7 +386,7 @@
398
386
  "__schema": "TupleTypeSchema",
399
387
  "location": {
400
388
  "filePath": "mover.main.runtime.ts",
401
- "line": 77,
389
+ "line": 76,
402
390
  "character": 43
403
391
  },
404
392
  "elements": [
@@ -406,27 +394,19 @@
406
394
  "__schema": "TypeRefSchema",
407
395
  "location": {
408
396
  "filePath": "mover.main.runtime.ts",
409
- "line": 77,
397
+ "line": 76,
410
398
  "character": 44
411
399
  },
412
- "name": "CLIMain",
413
- "componentId": {
414
- "scope": "teambit.harmony",
415
- "name": "cli"
416
- }
400
+ "name": "CLIMain"
417
401
  },
418
402
  {
419
403
  "__schema": "TypeRefSchema",
420
404
  "location": {
421
405
  "filePath": "mover.main.runtime.ts",
422
- "line": 77,
406
+ "line": 76,
423
407
  "character": 53
424
408
  },
425
- "name": "Workspace",
426
- "componentId": {
427
- "scope": "teambit.workspace",
428
- "name": "workspace"
429
- }
409
+ "name": "Workspace"
430
410
  }
431
411
  ]
432
412
  },
@@ -438,7 +418,7 @@
438
418
  "__schema": "InferenceTypeSchema",
439
419
  "location": {
440
420
  "filePath": "mover.main.runtime.ts",
441
- "line": 77,
421
+ "line": 76,
442
422
  "character": 3
443
423
  },
444
424
  "type": "Promise<MoverMain>"
@@ -514,7 +494,7 @@
514
494
  "__schema": "ClassSchema",
515
495
  "location": {
516
496
  "filePath": "mover.main.runtime.ts",
517
- "line": 16,
497
+ "line": 15,
518
498
  "character": 1
519
499
  },
520
500
  "signature": "class MoverMain",
@@ -524,7 +504,7 @@
524
504
  "__schema": "ConstructorSchema",
525
505
  "location": {
526
506
  "filePath": "mover.main.runtime.ts",
527
- "line": 17,
507
+ "line": 16,
528
508
  "character": 3
529
509
  },
530
510
  "signature": "constructor MoverMain(workspace: Workspace): MoverMain",
@@ -534,7 +514,7 @@
534
514
  "__schema": "ParameterSchema",
535
515
  "location": {
536
516
  "filePath": "mover.main.runtime.ts",
537
- "line": 17,
517
+ "line": 16,
538
518
  "character": 15
539
519
  },
540
520
  "name": "workspace",
@@ -542,14 +522,10 @@
542
522
  "__schema": "TypeRefSchema",
543
523
  "location": {
544
524
  "filePath": "mover.main.runtime.ts",
545
- "line": 17,
525
+ "line": 16,
546
526
  "character": 34
547
527
  },
548
- "name": "Workspace",
549
- "componentId": {
550
- "scope": "teambit.workspace",
551
- "name": "workspace"
552
- }
528
+ "name": "Workspace"
553
529
  },
554
530
  "isOptional": false,
555
531
  "isSpread": false
@@ -559,7 +535,7 @@
559
535
  "__schema": "ThisTypeSchema",
560
536
  "location": {
561
537
  "filePath": "mover.main.runtime.ts",
562
- "line": 16,
538
+ "line": 15,
563
539
  "character": 1
564
540
  },
565
541
  "name": "MoverMain"
@@ -570,7 +546,7 @@
570
546
  "__schema": "FunctionLikeSchema",
571
547
  "location": {
572
548
  "filePath": "mover.main.runtime.ts",
573
- "line": 19,
549
+ "line": 18,
574
550
  "character": 3
575
551
  },
576
552
  "signature": "(method) MoverMain.movePaths({ from, to }: {\n from: PathOsBasedRelative;\n to: PathOsBasedRelative;\n}): Promise<PathChangeResult[]>",
@@ -580,7 +556,7 @@
580
556
  "__schema": "ParameterSchema",
581
557
  "location": {
582
558
  "filePath": "mover.main.runtime.ts",
583
- "line": 19,
559
+ "line": 18,
584
560
  "character": 19
585
561
  },
586
562
  "name": "{ from, to }",
@@ -588,7 +564,7 @@
588
564
  "__schema": "TypeLiteralSchema",
589
565
  "location": {
590
566
  "filePath": "mover.main.runtime.ts",
591
- "line": 19,
567
+ "line": 18,
592
568
  "character": 33
593
569
  },
594
570
  "members": [
@@ -596,7 +572,7 @@
596
572
  "__schema": "VariableLikeSchema",
597
573
  "location": {
598
574
  "filePath": "mover.main.runtime.ts",
599
- "line": 19,
575
+ "line": 18,
600
576
  "character": 35
601
577
  },
602
578
  "signature": "(property) from: string",
@@ -605,11 +581,10 @@
605
581
  "__schema": "TypeRefSchema",
606
582
  "location": {
607
583
  "filePath": "mover.main.runtime.ts",
608
- "line": 19,
584
+ "line": 18,
609
585
  "character": 41
610
586
  },
611
- "name": "PathOsBasedRelative",
612
- "packageName": "@teambit/legacy/dist/utils/path"
587
+ "name": "PathOsBasedRelative"
613
588
  },
614
589
  "isOptional": false
615
590
  },
@@ -617,7 +592,7 @@
617
592
  "__schema": "VariableLikeSchema",
618
593
  "location": {
619
594
  "filePath": "mover.main.runtime.ts",
620
- "line": 19,
595
+ "line": 18,
621
596
  "character": 62
622
597
  },
623
598
  "signature": "(property) to: string",
@@ -626,11 +601,10 @@
626
601
  "__schema": "TypeRefSchema",
627
602
  "location": {
628
603
  "filePath": "mover.main.runtime.ts",
629
- "line": 19,
604
+ "line": 18,
630
605
  "character": 66
631
606
  },
632
- "name": "PathOsBasedRelative",
633
- "packageName": "@teambit/legacy/dist/utils/path"
607
+ "name": "PathOsBasedRelative"
634
608
  },
635
609
  "isOptional": false
636
610
  }
@@ -642,7 +616,7 @@
642
616
  "__schema": "VariableLikeSchema",
643
617
  "location": {
644
618
  "filePath": "mover.main.runtime.ts",
645
- "line": 19,
619
+ "line": 18,
646
620
  "character": 35
647
621
  },
648
622
  "signature": "(property) from: string",
@@ -651,11 +625,10 @@
651
625
  "__schema": "TypeRefSchema",
652
626
  "location": {
653
627
  "filePath": "mover.main.runtime.ts",
654
- "line": 19,
628
+ "line": 18,
655
629
  "character": 41
656
630
  },
657
- "name": "PathOsBasedRelative",
658
- "packageName": "@teambit/legacy/dist/utils/path"
631
+ "name": "PathOsBasedRelative"
659
632
  },
660
633
  "isOptional": false
661
634
  },
@@ -663,7 +636,7 @@
663
636
  "__schema": "VariableLikeSchema",
664
637
  "location": {
665
638
  "filePath": "mover.main.runtime.ts",
666
- "line": 19,
639
+ "line": 18,
667
640
  "character": 62
668
641
  },
669
642
  "signature": "(property) to: string",
@@ -672,11 +645,10 @@
672
645
  "__schema": "TypeRefSchema",
673
646
  "location": {
674
647
  "filePath": "mover.main.runtime.ts",
675
- "line": 19,
648
+ "line": 18,
676
649
  "character": 66
677
650
  },
678
- "name": "PathOsBasedRelative",
679
- "packageName": "@teambit/legacy/dist/utils/path"
651
+ "name": "PathOsBasedRelative"
680
652
  },
681
653
  "isOptional": false
682
654
  }
@@ -688,7 +660,7 @@
688
660
  "__schema": "TypeRefSchema",
689
661
  "location": {
690
662
  "filePath": "mover.main.runtime.ts",
691
- "line": 19,
663
+ "line": 18,
692
664
  "character": 90
693
665
  },
694
666
  "name": "Promise",
@@ -697,18 +669,17 @@
697
669
  "__schema": "TypeArraySchema",
698
670
  "location": {
699
671
  "filePath": "mover.main.runtime.ts",
700
- "line": 19,
672
+ "line": 18,
701
673
  "character": 98
702
674
  },
703
675
  "type": {
704
676
  "__schema": "TypeRefSchema",
705
677
  "location": {
706
678
  "filePath": "mover.main.runtime.ts",
707
- "line": 19,
679
+ "line": 18,
708
680
  "character": 98
709
681
  },
710
- "name": "PathChangeResult",
711
- "packageName": "@teambit/legacy/dist/consumer/bit-map/bit-map"
682
+ "name": "PathChangeResult"
712
683
  }
713
684
  }
714
685
  ]
@@ -721,7 +692,7 @@
721
692
  "__schema": "FunctionLikeSchema",
722
693
  "location": {
723
694
  "filePath": "mover.main.runtime.ts",
724
- "line": 52,
695
+ "line": 51,
725
696
  "character": 3
726
697
  },
727
698
  "signature": "(method) MoverMain.moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void",
@@ -731,7 +702,7 @@
731
702
  "__schema": "ParameterSchema",
732
703
  "location": {
733
704
  "filePath": "mover.main.runtime.ts",
734
- "line": 52,
705
+ "line": 51,
735
706
  "character": 25
736
707
  },
737
708
  "name": "component",
@@ -739,11 +710,10 @@
739
710
  "__schema": "TypeRefSchema",
740
711
  "location": {
741
712
  "filePath": "mover.main.runtime.ts",
742
- "line": 52,
713
+ "line": 51,
743
714
  "character": 36
744
715
  },
745
- "name": "Component",
746
- "packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
716
+ "name": "Component"
747
717
  },
748
718
  "isOptional": false,
749
719
  "isSpread": false
@@ -752,7 +722,7 @@
752
722
  "__schema": "ParameterSchema",
753
723
  "location": {
754
724
  "filePath": "mover.main.runtime.ts",
755
- "line": 52,
725
+ "line": 51,
756
726
  "character": 47
757
727
  },
758
728
  "name": "oldPath",
@@ -760,11 +730,10 @@
760
730
  "__schema": "TypeRefSchema",
761
731
  "location": {
762
732
  "filePath": "mover.main.runtime.ts",
763
- "line": 52,
733
+ "line": 51,
764
734
  "character": 56
765
735
  },
766
- "name": "PathOsBasedAbsolute",
767
- "packageName": "@teambit/legacy/dist/utils/path"
736
+ "name": "PathOsBasedAbsolute"
768
737
  },
769
738
  "isOptional": false,
770
739
  "isSpread": false
@@ -773,7 +742,7 @@
773
742
  "__schema": "ParameterSchema",
774
743
  "location": {
775
744
  "filePath": "mover.main.runtime.ts",
776
- "line": 52,
745
+ "line": 51,
777
746
  "character": 77
778
747
  },
779
748
  "name": "newPath",
@@ -781,11 +750,10 @@
781
750
  "__schema": "TypeRefSchema",
782
751
  "location": {
783
752
  "filePath": "mover.main.runtime.ts",
784
- "line": 52,
753
+ "line": 51,
785
754
  "character": 86
786
755
  },
787
- "name": "PathOsBasedAbsolute",
788
- "packageName": "@teambit/legacy/dist/utils/path"
756
+ "name": "PathOsBasedAbsolute"
789
757
  },
790
758
  "isOptional": false,
791
759
  "isSpread": false
@@ -795,7 +763,7 @@
795
763
  "__schema": "InferenceTypeSchema",
796
764
  "location": {
797
765
  "filePath": "mover.main.runtime.ts",
798
- "line": 52,
766
+ "line": 51,
799
767
  "character": 3
800
768
  },
801
769
  "type": "void"
@@ -806,7 +774,7 @@
806
774
  "__schema": "VariableLikeSchema",
807
775
  "location": {
808
776
  "filePath": "mover.main.runtime.ts",
809
- "line": 73,
777
+ "line": 72,
810
778
  "character": 3
811
779
  },
812
780
  "signature": "(property) MoverMain.slots: never[]",
@@ -815,7 +783,7 @@
815
783
  "__schema": "InferenceTypeSchema",
816
784
  "location": {
817
785
  "filePath": "mover.main.runtime.ts",
818
- "line": 73,
786
+ "line": 72,
819
787
  "character": 3
820
788
  },
821
789
  "type": "never[]"
@@ -827,7 +795,7 @@
827
795
  "__schema": "VariableLikeSchema",
828
796
  "location": {
829
797
  "filePath": "mover.main.runtime.ts",
830
- "line": 74,
798
+ "line": 73,
831
799
  "character": 3
832
800
  },
833
801
  "signature": "(property) MoverMain.dependencies: Aspect[]",
@@ -836,7 +804,7 @@
836
804
  "__schema": "InferenceTypeSchema",
837
805
  "location": {
838
806
  "filePath": "mover.main.runtime.ts",
839
- "line": 74,
807
+ "line": 73,
840
808
  "character": 3
841
809
  },
842
810
  "type": "Aspect[]"
@@ -848,7 +816,7 @@
848
816
  "__schema": "VariableLikeSchema",
849
817
  "location": {
850
818
  "filePath": "mover.main.runtime.ts",
851
- "line": 75,
819
+ "line": 74,
852
820
  "character": 3
853
821
  },
854
822
  "signature": "(property) MoverMain.runtime: RuntimeDefinition",
@@ -857,7 +825,7 @@
857
825
  "__schema": "InferenceTypeSchema",
858
826
  "location": {
859
827
  "filePath": "mover.main.runtime.ts",
860
- "line": 75,
828
+ "line": 74,
861
829
  "character": 3
862
830
  },
863
831
  "type": "RuntimeDefinition"
@@ -869,7 +837,7 @@
869
837
  "__schema": "FunctionLikeSchema",
870
838
  "location": {
871
839
  "filePath": "mover.main.runtime.ts",
872
- "line": 77,
840
+ "line": 76,
873
841
  "character": 3
874
842
  },
875
843
  "signature": "(method) MoverMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>",
@@ -879,7 +847,7 @@
879
847
  "__schema": "ParameterSchema",
880
848
  "location": {
881
849
  "filePath": "mover.main.runtime.ts",
882
- "line": 77,
850
+ "line": 76,
883
851
  "character": 25
884
852
  },
885
853
  "name": "[ cli, workspace ]",
@@ -887,7 +855,7 @@
887
855
  "__schema": "TupleTypeSchema",
888
856
  "location": {
889
857
  "filePath": "mover.main.runtime.ts",
890
- "line": 77,
858
+ "line": 76,
891
859
  "character": 43
892
860
  },
893
861
  "elements": [
@@ -895,27 +863,19 @@
895
863
  "__schema": "TypeRefSchema",
896
864
  "location": {
897
865
  "filePath": "mover.main.runtime.ts",
898
- "line": 77,
866
+ "line": 76,
899
867
  "character": 44
900
868
  },
901
- "name": "CLIMain",
902
- "componentId": {
903
- "scope": "teambit.harmony",
904
- "name": "cli"
905
- }
869
+ "name": "CLIMain"
906
870
  },
907
871
  {
908
872
  "__schema": "TypeRefSchema",
909
873
  "location": {
910
874
  "filePath": "mover.main.runtime.ts",
911
- "line": 77,
875
+ "line": 76,
912
876
  "character": 53
913
877
  },
914
- "name": "Workspace",
915
- "componentId": {
916
- "scope": "teambit.workspace",
917
- "name": "workspace"
918
- }
878
+ "name": "Workspace"
919
879
  }
920
880
  ]
921
881
  },
@@ -927,7 +887,7 @@
927
887
  "__schema": "InferenceTypeSchema",
928
888
  "location": {
929
889
  "filePath": "mover.main.runtime.ts",
930
- "line": 77,
890
+ "line": 76,
931
891
  "character": 3
932
892
  },
933
893
  "type": "Promise<MoverMain>"
@@ -945,7 +905,7 @@
945
905
  "__schema": "UnImplementedSchema",
946
906
  "location": {
947
907
  "filePath": "mover.main.runtime.ts",
948
- "line": 86,
908
+ "line": 85,
949
909
  "character": 16
950
910
  },
951
911
  "name": "MoverMain",
@@ -955,7 +915,7 @@
955
915
  "__schema": "FunctionLikeSchema",
956
916
  "location": {
957
917
  "filePath": "mover.main.runtime.ts",
958
- "line": 88,
918
+ "line": 87,
959
919
  "character": 1
960
920
  },
961
921
  "signature": "function moveSync(src: PathOsBasedAbsolute, dest: PathOsBasedAbsolute, options?: Record<string, any>): void",
@@ -965,7 +925,7 @@
965
925
  "__schema": "ParameterSchema",
966
926
  "location": {
967
927
  "filePath": "mover.main.runtime.ts",
968
- "line": 88,
928
+ "line": 87,
969
929
  "character": 26
970
930
  },
971
931
  "name": "src",
@@ -973,11 +933,10 @@
973
933
  "__schema": "TypeRefSchema",
974
934
  "location": {
975
935
  "filePath": "mover.main.runtime.ts",
976
- "line": 88,
936
+ "line": 87,
977
937
  "character": 31
978
938
  },
979
- "name": "PathOsBasedAbsolute",
980
- "packageName": "@teambit/legacy/dist/utils/path"
939
+ "name": "PathOsBasedAbsolute"
981
940
  },
982
941
  "isOptional": false,
983
942
  "isSpread": false
@@ -986,7 +945,7 @@
986
945
  "__schema": "ParameterSchema",
987
946
  "location": {
988
947
  "filePath": "mover.main.runtime.ts",
989
- "line": 88,
948
+ "line": 87,
990
949
  "character": 52
991
950
  },
992
951
  "name": "dest",
@@ -994,11 +953,10 @@
994
953
  "__schema": "TypeRefSchema",
995
954
  "location": {
996
955
  "filePath": "mover.main.runtime.ts",
997
- "line": 88,
956
+ "line": 87,
998
957
  "character": 58
999
958
  },
1000
- "name": "PathOsBasedAbsolute",
1001
- "packageName": "@teambit/legacy/dist/utils/path"
959
+ "name": "PathOsBasedAbsolute"
1002
960
  },
1003
961
  "isOptional": false,
1004
962
  "isSpread": false
@@ -1007,7 +965,7 @@
1007
965
  "__schema": "ParameterSchema",
1008
966
  "location": {
1009
967
  "filePath": "mover.main.runtime.ts",
1010
- "line": 88,
968
+ "line": 87,
1011
969
  "character": 79
1012
970
  },
1013
971
  "name": "options",
@@ -1015,7 +973,7 @@
1015
973
  "__schema": "TypeRefSchema",
1016
974
  "location": {
1017
975
  "filePath": "mover.main.runtime.ts",
1018
- "line": 88,
976
+ "line": 87,
1019
977
  "character": 89
1020
978
  },
1021
979
  "name": "Record",
@@ -1024,7 +982,7 @@
1024
982
  "__schema": "KeywordTypeSchema",
1025
983
  "location": {
1026
984
  "filePath": "mover.main.runtime.ts",
1027
- "line": 88,
985
+ "line": 87,
1028
986
  "character": 96
1029
987
  },
1030
988
  "name": "string"
@@ -1033,7 +991,7 @@
1033
991
  "__schema": "KeywordTypeSchema",
1034
992
  "location": {
1035
993
  "filePath": "mover.main.runtime.ts",
1036
- "line": 88,
994
+ "line": 87,
1037
995
  "character": 104
1038
996
  },
1039
997
  "name": "any"
@@ -1048,7 +1006,7 @@
1048
1006
  "__schema": "InferenceTypeSchema",
1049
1007
  "location": {
1050
1008
  "filePath": "mover.main.runtime.ts",
1051
- "line": 88,
1009
+ "line": 87,
1052
1010
  "character": 1
1053
1011
  },
1054
1012
  "type": "void"
@@ -1063,7 +1021,7 @@
1063
1021
  "__schema": "UnImplementedSchema",
1064
1022
  "location": {
1065
1023
  "filePath": "mover.main.runtime.ts",
1066
- "line": 84,
1024
+ "line": 83,
1067
1025
  "character": 1
1068
1026
  },
1069
1027
  "name": "MoverAspect.addRuntime(MoverMain);",
@@ -1112,7 +1070,7 @@
1112
1070
  "componentId": {
1113
1071
  "scope": "teambit.component",
1114
1072
  "name": "mover",
1115
- "version": "1.0.329"
1073
+ "version": "1.0.331"
1116
1074
  },
1117
1075
  "taggedModuleExports": []
1118
1076
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MoveCmd","constructor","mover","name","description","report","from","to","componentsChanged","movePaths","output","map","component","title","chalk","green","id","toString","files","changes","file","bold","join","exports"],"sources":["move-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command } from '@teambit/cli';\nimport { PathChangeResult } from '@teambit/legacy/dist/consumer/bit-map/bit-map';\nimport { MoverMain } from './mover.main.runtime';\n\nexport class MoveCmd implements Command {\n name = 'move <current-component-dir> <new-component-dir>';\n description = 'move a component to a different filesystem path';\n extendedDescription = `(note: this does NOT affect the component's name or scope, just its location in the workspace)`;\n helpUrl = 'reference/workspace/moving-components';\n arguments = [\n {\n name: 'current-component-dir',\n description: \"the component's current directory (relative to the workspace root)\",\n },\n {\n name: 'new-component-dir',\n description: \"the new directory (relative to the workspace root) to create and move the component's files to\",\n },\n ];\n group = 'development';\n alias = 'mv';\n loader = true;\n options = [];\n\n constructor(private mover: MoverMain) {}\n\n async report([from, to]: [string, string]) {\n const componentsChanged: PathChangeResult[] = await this.mover.movePaths({ from, to });\n const output = componentsChanged.map((component) => {\n const title = chalk.green(`moved component ${component.id.toString()}:\\n`);\n const files = component.changes\n .map((file) => `from ${chalk.bold(file.from)} to ${chalk.bold(file.to)}`)\n .join('\\n');\n return title + files;\n });\n return output.join('\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,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,MAAA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,KAAK,GAAGC,gBAAK,CAACC,KAAK,CAAC,mBAAmBH,SAAS,CAACI,EAAE,CAACC,QAAQ,CAAC,CAAC,KAAK,CAAC;MAC1E,MAAMC,KAAK,GAAGN,SAAS,CAACO,OAAO,CAC5BR,GAAG,CAAES,IAAI,IAAK,QAAQN,gBAAK,CAACO,IAAI,CAACD,IAAI,CAACd,IAAI,CAAC,OAAOQ,gBAAK,CAACO,IAAI,CAACD,IAAI,CAACb,EAAE,CAAC,EAAE,CAAC,CACxEe,IAAI,CAAC,IAAI,CAAC;MACb,OAAOT,KAAK,GAAGK,KAAK;IACtB,CAAC,CAAC;IACF,OAAOR,MAAM,CAACY,IAAI,CAAC,IAAI,CAAC;EAC1B;AACF;AAACC,OAAA,CAAAvB,OAAA,GAAAA,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MoveCmd","constructor","mover","name","description","report","from","to","componentsChanged","movePaths","output","map","component","title","chalk","green","id","toString","files","changes","file","bold","join","exports"],"sources":["move-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command } from '@teambit/cli';\nimport { PathChangeResult } from '@teambit/legacy.bit-map';\nimport { MoverMain } from './mover.main.runtime';\n\nexport class MoveCmd implements Command {\n name = 'move <current-component-dir> <new-component-dir>';\n description = 'move a component to a different filesystem path';\n extendedDescription = `(note: this does NOT affect the component's name or scope, just its location in the workspace)`;\n helpUrl = 'reference/workspace/moving-components';\n arguments = [\n {\n name: 'current-component-dir',\n description: \"the component's current directory (relative to the workspace root)\",\n },\n {\n name: 'new-component-dir',\n description: \"the new directory (relative to the workspace root) to create and move the component's files to\",\n },\n ];\n group = 'development';\n alias = 'mv';\n loader = true;\n options = [];\n\n constructor(private mover: MoverMain) {}\n\n async report([from, to]: [string, string]) {\n const componentsChanged: PathChangeResult[] = await this.mover.movePaths({ from, to });\n const output = componentsChanged.map((component) => {\n const title = chalk.green(`moved component ${component.id.toString()}:\\n`);\n const files = component.changes\n .map((file) => `from ${chalk.bold(file.from)} to ${chalk.bold(file.to)}`)\n .join('\\n');\n return title + files;\n });\n return output.join('\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,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;AAKnB,MAAMgB,OAAO,CAAoB;EAoBtCC,WAAWA,CAASC,KAAgB,EAAE;IAAA,KA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/workspace';
3
- import { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy/dist/utils/path';
4
- import { PathChangeResult } from '@teambit/legacy/dist/consumer/bit-map/bit-map';
3
+ import { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy.utils';
4
+ import { PathChangeResult } from '@teambit/legacy.bit-map';
5
5
  import Component from '@teambit/legacy/dist/consumer/component/consumer-component';
6
6
  export declare class MoverMain {
7
7
  private workspace;
@@ -47,9 +47,9 @@ function _workspace() {
47
47
  };
48
48
  return data;
49
49
  }
50
- function _utils() {
51
- const data = require("@teambit/legacy/dist/utils");
52
- _utils = function () {
50
+ function _legacy() {
51
+ const data = require("@teambit/legacy.utils");
52
+ _legacy = function () {
53
53
  return data;
54
54
  };
55
55
  return data;
@@ -101,12 +101,12 @@ class MoverMain {
101
101
  throw new (_bitError().BitError)(`unable to move because both paths from (${from}) and to (${to}) already exist`);
102
102
  }
103
103
  if (!fromExists && !toExists) throw new (_bitError().BitError)(`both paths from (${from}) and to (${to}) do not exist`);
104
- if (fromExists && !(0, _utils().isDir)(from)) {
104
+ if (fromExists && !(0, _legacy().isDir)(from)) {
105
105
  throw new (_bitError().BitError)(`bit move supports moving directories only, not files.
106
106
  files withing a component dir are automatically tracked, no action is needed.
107
107
  to change the main-file, use "bit add <component-dir> --main <new-main-file>"`);
108
108
  }
109
- if (toExists && !(0, _utils().isDir)(to)) {
109
+ if (toExists && !(0, _legacy().isDir)(to)) {
110
110
  throw new (_bitError().BitError)(`unable to move because the destination path (${to}) is a file and not a directory`);
111
111
  }
112
112
  const fromRelative = consumer.getPathRelativeToConsumer(from);
@@ -1 +1 @@
1
- {"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_bitError","_cli","_lodash","_workspace","_utils","_workspaceModules","_removePath","_mover","_moveCmd","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","changes","bitMap","updatePathLocation","moveSync","isEmpty","componentsIds","map","c","id","linkToNodeModulesByIds","write","moveExistingComponent","component","oldPath","newPath","toString","componentMap","getComponent","oldPathRelative","newPathRelative","updateDirLocation","markAsChanged","dataToPersist","files","forEach","file","newRelative","relative","replace","updatePaths","newBase","removePath","RemovePath","writtenPath","provider","cli","moverMain","register","MoveCmd","exports","CLIAspect","WorkspaceAspect","MainRuntime","MoverAspect","addRuntime","_default","src","dest","options","isAbsolute","Error","err","message","includes"],"sources":["mover.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport { isAbsolute } from 'path';\nimport { BitError } from '@teambit/bit-error';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { isEmpty } from 'lodash';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { isDir } from '@teambit/legacy/dist/utils';\nimport { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy/dist/utils/path';\nimport { linkToNodeModulesByIds } from '@teambit/workspace.modules.node-modules-linker';\nimport { PathChangeResult } from '@teambit/legacy/dist/consumer/bit-map/bit-map';\nimport Component from '@teambit/legacy/dist/consumer/component/consumer-component';\nimport RemovePath from '@teambit/legacy/dist/consumer/component/sources/remove-path';\nimport { MoverAspect } from './mover.aspect';\nimport { MoveCmd } from './move-cmd';\n\nexport class MoverMain {\n constructor(private workspace: Workspace) {}\n\n async movePaths({ from, to }: { from: PathOsBasedRelative; to: PathOsBasedRelative }): Promise<PathChangeResult[]> {\n const consumer = this.workspace.consumer;\n const fromExists = fs.existsSync(from);\n const toExists = fs.existsSync(to);\n if (fromExists && toExists) {\n throw new BitError(`unable to move because both paths from (${from}) and to (${to}) already exist`);\n }\n if (!fromExists && !toExists) throw new BitError(`both paths from (${from}) and to (${to}) do not exist`);\n if (fromExists && !isDir(from)) {\n throw new BitError(`bit move supports moving directories only, not files.\nfiles withing a component dir are automatically tracked, no action is needed.\nto change the main-file, use \"bit add <component-dir> --main <new-main-file>\"`);\n }\n if (toExists && !isDir(to)) {\n throw new BitError(`unable to move because the destination path (${to}) is a file and not a directory`);\n }\n const fromRelative = consumer.getPathRelativeToConsumer(from);\n const toRelative = consumer.getPathRelativeToConsumer(to);\n const fromAbsolute = consumer.toAbsolutePath(fromRelative);\n const toAbsolute = consumer.toAbsolutePath(toRelative);\n const changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative);\n if (fromExists && !toExists) {\n // user would like to physically move the file. Otherwise (!fromExists and toExists), user would like to only update bit.map\n moveSync(fromAbsolute, toAbsolute);\n }\n if (!isEmpty(changes)) {\n const componentsIds = changes.map((c) => c.id);\n await linkToNodeModulesByIds(this.workspace, componentsIds);\n }\n await this.workspace.bitMap.write('move');\n return changes;\n }\n\n moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute) {\n const consumer = this.workspace.consumer;\n if (fs.existsSync(newPath)) {\n throw new BitError(\n `could not move the component ${component.id.toString()} from ${oldPath} to ${newPath} as the destination path already exists`\n );\n }\n const componentMap = consumer.bitMap.getComponent(component.id);\n const oldPathRelative = consumer.getPathRelativeToConsumer(oldPath);\n const newPathRelative = consumer.getPathRelativeToConsumer(newPath);\n componentMap.updateDirLocation(oldPathRelative, newPathRelative);\n consumer.bitMap.markAsChanged();\n component.dataToPersist.files.forEach((file) => {\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const newRelative = file.relative.replace(oldPathRelative, newPathRelative);\n file.updatePaths({ newRelative, newBase: newPathRelative });\n });\n component.dataToPersist.removePath(new RemovePath(oldPathRelative));\n component.writtenPath = newPathRelative;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n\n static async provider([cli, workspace]: [CLIMain, Workspace]) {\n const moverMain = new MoverMain(workspace);\n cli.register(new MoveCmd(moverMain));\n return moverMain;\n }\n}\n\nMoverAspect.addRuntime(MoverMain);\n\nexport default MoverMain;\n\nexport function moveSync(src: PathOsBasedAbsolute, dest: PathOsBasedAbsolute, options?: Record<string, any>) {\n if (!isAbsolute(src) || !isAbsolute(dest)) {\n throw new Error(`moveSync, src and dest must be absolute. Got src \"${src}\", dest \"${dest}\"`);\n }\n try {\n fs.moveSync(src, dest, options);\n } catch (err: any) {\n if (err.message.includes('Cannot move') && err.message.includes('into itself')) {\n throw new BitError(`unable to move '${src}' into itself '${dest}'`);\n }\n throw err;\n }\n}\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,GAAAE,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,UAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,KAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,OAAA;EAAA,MAAAR,IAAA,GAAAE,OAA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GAAG,CAAC;EAC9F;EACA,IAAI;IACF1D,kBAAE,CAACc,QAAQ,CAAC2C,GAAG,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACjC,CAAC,CAAC,OAAOG,GAAQ,EAAE;IACjB,IAAIA,GAAG,CAACC,OAAO,CAACC,QAAQ,CAAC,aAAa,CAAC,IAAIF,GAAG,CAACC,OAAO,CAACC,QAAQ,CAAC,aAAa,CAAC,EAAE;MAC9E,MAAM,KAAI7D,oBAAQ,EAAC,mBAAmBsD,GAAG,kBAAkBC,IAAI,GAAG,CAAC;IACrE;IACA,MAAMI,GAAG;EACX;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_bitError","_cli","_lodash","_workspace","_legacy","_workspaceModules","_removePath","_mover","_moveCmd","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","changes","bitMap","updatePathLocation","moveSync","isEmpty","componentsIds","map","c","id","linkToNodeModulesByIds","write","moveExistingComponent","component","oldPath","newPath","toString","componentMap","getComponent","oldPathRelative","newPathRelative","updateDirLocation","markAsChanged","dataToPersist","files","forEach","file","newRelative","relative","replace","updatePaths","newBase","removePath","RemovePath","writtenPath","provider","cli","moverMain","register","MoveCmd","exports","CLIAspect","WorkspaceAspect","MainRuntime","MoverAspect","addRuntime","_default","src","dest","options","isAbsolute","Error","err","message","includes"],"sources":["mover.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport { isAbsolute } from 'path';\nimport { BitError } from '@teambit/bit-error';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { isEmpty } from 'lodash';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { isDir, PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy.utils';\nimport { linkToNodeModulesByIds } from '@teambit/workspace.modules.node-modules-linker';\nimport { PathChangeResult } from '@teambit/legacy.bit-map';\nimport Component from '@teambit/legacy/dist/consumer/component/consumer-component';\nimport RemovePath from '@teambit/legacy/dist/consumer/component/sources/remove-path';\nimport { MoverAspect } from './mover.aspect';\nimport { MoveCmd } from './move-cmd';\n\nexport class MoverMain {\n constructor(private workspace: Workspace) {}\n\n async movePaths({ from, to }: { from: PathOsBasedRelative; to: PathOsBasedRelative }): Promise<PathChangeResult[]> {\n const consumer = this.workspace.consumer;\n const fromExists = fs.existsSync(from);\n const toExists = fs.existsSync(to);\n if (fromExists && toExists) {\n throw new BitError(`unable to move because both paths from (${from}) and to (${to}) already exist`);\n }\n if (!fromExists && !toExists) throw new BitError(`both paths from (${from}) and to (${to}) do not exist`);\n if (fromExists && !isDir(from)) {\n throw new BitError(`bit move supports moving directories only, not files.\nfiles withing a component dir are automatically tracked, no action is needed.\nto change the main-file, use \"bit add <component-dir> --main <new-main-file>\"`);\n }\n if (toExists && !isDir(to)) {\n throw new BitError(`unable to move because the destination path (${to}) is a file and not a directory`);\n }\n const fromRelative = consumer.getPathRelativeToConsumer(from);\n const toRelative = consumer.getPathRelativeToConsumer(to);\n const fromAbsolute = consumer.toAbsolutePath(fromRelative);\n const toAbsolute = consumer.toAbsolutePath(toRelative);\n const changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative);\n if (fromExists && !toExists) {\n // user would like to physically move the file. Otherwise (!fromExists and toExists), user would like to only update bit.map\n moveSync(fromAbsolute, toAbsolute);\n }\n if (!isEmpty(changes)) {\n const componentsIds = changes.map((c) => c.id);\n await linkToNodeModulesByIds(this.workspace, componentsIds);\n }\n await this.workspace.bitMap.write('move');\n return changes;\n }\n\n moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute) {\n const consumer = this.workspace.consumer;\n if (fs.existsSync(newPath)) {\n throw new BitError(\n `could not move the component ${component.id.toString()} from ${oldPath} to ${newPath} as the destination path already exists`\n );\n }\n const componentMap = consumer.bitMap.getComponent(component.id);\n const oldPathRelative = consumer.getPathRelativeToConsumer(oldPath);\n const newPathRelative = consumer.getPathRelativeToConsumer(newPath);\n componentMap.updateDirLocation(oldPathRelative, newPathRelative);\n consumer.bitMap.markAsChanged();\n component.dataToPersist.files.forEach((file) => {\n // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!\n const newRelative = file.relative.replace(oldPathRelative, newPathRelative);\n file.updatePaths({ newRelative, newBase: newPathRelative });\n });\n component.dataToPersist.removePath(new RemovePath(oldPathRelative));\n component.writtenPath = newPathRelative;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n\n static async provider([cli, workspace]: [CLIMain, Workspace]) {\n const moverMain = new MoverMain(workspace);\n cli.register(new MoveCmd(moverMain));\n return moverMain;\n }\n}\n\nMoverAspect.addRuntime(MoverMain);\n\nexport default MoverMain;\n\nexport function moveSync(src: PathOsBasedAbsolute, dest: PathOsBasedAbsolute, options?: Record<string, any>) {\n if (!isAbsolute(src) || !isAbsolute(dest)) {\n throw new Error(`moveSync, src and dest must be absolute. Got src \"${src}\", dest \"${dest}\"`);\n }\n try {\n fs.moveSync(src, dest, options);\n } catch (err: any) {\n if (err.message.includes('Cannot move') && err.message.includes('into itself')) {\n throw new BitError(`unable to move '${src}' into itself '${dest}'`);\n }\n throw err;\n }\n}\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,GAAAE,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;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B;AACF;AAACG,OAAA,CAAA1D,SAAA,GAAAA,SAAA;AAAAlB,eAAA,CAlEYkB,SAAS,WAyDL,EAAE;AAAAlB,eAAA,CAzDNkB,SAAS,kBA0DE,CAAC2D,gBAAS,EAAEC,4BAAe,CAAC;AAAA9E,eAAA,CA1DvCkB,SAAS,aA2DH6D,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAAC/D,SAAS,CAAC;AAAC,IAAAgE,QAAA,GAAAN,OAAA,CAAA7E,OAAA,GAEnBmB,SAAS;AAEjB,SAASsB,QAAQA,CAAC2C,GAAwB,EAAEC,IAAyB,EAAEC,OAA6B,EAAE;EAC3G,IAAI,CAAC,IAAAC,kBAAU,EAACH,GAAG,CAAC,IAAI,CAAC,IAAAG,kBAAU,EAACF,IAAI,CAAC,EAAE;IACzC,MAAM,IAAIG,KAAK,CAAC,qDAAqDJ,GAAG,YAAYC,IAAI,GAAG,CAAC;EAC9F;EACA,IAAI;IACF1D,kBAAE,CAACc,QAAQ,CAAC2C,GAAG,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACjC,CAAC,CAAC,OAAOG,GAAQ,EAAE;IACjB,IAAIA,GAAG,CAACC,OAAO,CAACC,QAAQ,CAAC,aAAa,CAAC,IAAIF,GAAG,CAACC,OAAO,CAACC,QAAQ,CAAC,aAAa,CAAC,EAAE;MAC9E,MAAM,KAAI7D,oBAAQ,EAAC,mBAAmBsD,GAAG,kBAAkBC,IAAI,GAAG,CAAC;IACrE;IACA,MAAMI,GAAG;EACX;AACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mover",
3
- "version": "1.0.329",
3
+ "version": "1.0.331",
4
4
  "homepage": "https://bit.cloud/teambit/component/mover",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "mover",
9
- "version": "1.0.329"
9
+ "version": "1.0.331"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,16 +14,18 @@
14
14
  "lodash": "4.17.21",
15
15
  "@teambit/harmony": "0.4.6",
16
16
  "@teambit/bit-error": "0.0.404",
17
- "@teambit/cli": "0.0.906",
18
- "@teambit/workspace.modules.node-modules-linker": "0.0.174",
19
- "@teambit/workspace": "1.0.329"
17
+ "@teambit/cli": "0.0.908",
18
+ "@teambit/legacy.bit-map": "0.0.5",
19
+ "@teambit/legacy.utils": "0.0.3",
20
+ "@teambit/workspace.modules.node-modules-linker": "0.0.176",
21
+ "@teambit/workspace": "1.0.331"
20
22
  },
21
23
  "devDependencies": {
22
24
  "@types/fs-extra": "9.0.7",
23
25
  "@types/lodash": "4.14.165",
24
26
  "@types/mocha": "9.1.0",
25
27
  "chai": "4.3.0",
26
- "@teambit/harmony.envs.core-aspect-env": "0.0.39"
28
+ "@teambit/harmony.envs.core-aspect-env": "0.0.42"
27
29
  },
28
30
  "peerDependencies": {
29
31
  "@teambit/legacy": "1.0.624"