@teambit/mover 1.0.177 → 1.0.179
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.
|
3
|
+
<testsuite name="teambit.component/mover@1.0.179" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
@@ -215,7 +215,7 @@
|
|
215
215
|
"__schema": "FunctionLikeSchema",
|
216
216
|
"location": {
|
217
217
|
"filePath": "mover.main.runtime.ts",
|
218
|
-
"line":
|
218
|
+
"line": 52,
|
219
219
|
"character": 3
|
220
220
|
},
|
221
221
|
"signature": "(method) MoverMain.moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void",
|
@@ -225,7 +225,7 @@
|
|
225
225
|
"__schema": "ParameterSchema",
|
226
226
|
"location": {
|
227
227
|
"filePath": "mover.main.runtime.ts",
|
228
|
-
"line":
|
228
|
+
"line": 52,
|
229
229
|
"character": 25
|
230
230
|
},
|
231
231
|
"name": "component",
|
@@ -233,7 +233,7 @@
|
|
233
233
|
"__schema": "TypeRefSchema",
|
234
234
|
"location": {
|
235
235
|
"filePath": "mover.main.runtime.ts",
|
236
|
-
"line":
|
236
|
+
"line": 52,
|
237
237
|
"character": 36
|
238
238
|
},
|
239
239
|
"name": "Component"
|
@@ -245,7 +245,7 @@
|
|
245
245
|
"__schema": "ParameterSchema",
|
246
246
|
"location": {
|
247
247
|
"filePath": "mover.main.runtime.ts",
|
248
|
-
"line":
|
248
|
+
"line": 52,
|
249
249
|
"character": 47
|
250
250
|
},
|
251
251
|
"name": "oldPath",
|
@@ -253,7 +253,7 @@
|
|
253
253
|
"__schema": "TypeRefSchema",
|
254
254
|
"location": {
|
255
255
|
"filePath": "mover.main.runtime.ts",
|
256
|
-
"line":
|
256
|
+
"line": 52,
|
257
257
|
"character": 56
|
258
258
|
},
|
259
259
|
"name": "PathOsBasedAbsolute"
|
@@ -265,7 +265,7 @@
|
|
265
265
|
"__schema": "ParameterSchema",
|
266
266
|
"location": {
|
267
267
|
"filePath": "mover.main.runtime.ts",
|
268
|
-
"line":
|
268
|
+
"line": 52,
|
269
269
|
"character": 77
|
270
270
|
},
|
271
271
|
"name": "newPath",
|
@@ -273,7 +273,7 @@
|
|
273
273
|
"__schema": "TypeRefSchema",
|
274
274
|
"location": {
|
275
275
|
"filePath": "mover.main.runtime.ts",
|
276
|
-
"line":
|
276
|
+
"line": 52,
|
277
277
|
"character": 86
|
278
278
|
},
|
279
279
|
"name": "PathOsBasedAbsolute"
|
@@ -286,7 +286,7 @@
|
|
286
286
|
"__schema": "InferenceTypeSchema",
|
287
287
|
"location": {
|
288
288
|
"filePath": "mover.main.runtime.ts",
|
289
|
-
"line":
|
289
|
+
"line": 52,
|
290
290
|
"character": 3
|
291
291
|
},
|
292
292
|
"type": "void"
|
@@ -297,7 +297,7 @@
|
|
297
297
|
"__schema": "VariableLikeSchema",
|
298
298
|
"location": {
|
299
299
|
"filePath": "mover.main.runtime.ts",
|
300
|
-
"line":
|
300
|
+
"line": 73,
|
301
301
|
"character": 3
|
302
302
|
},
|
303
303
|
"signature": "(property) MoverMain.slots: never[]",
|
@@ -306,7 +306,7 @@
|
|
306
306
|
"__schema": "InferenceTypeSchema",
|
307
307
|
"location": {
|
308
308
|
"filePath": "mover.main.runtime.ts",
|
309
|
-
"line":
|
309
|
+
"line": 73,
|
310
310
|
"character": 3
|
311
311
|
},
|
312
312
|
"type": "never[]"
|
@@ -318,7 +318,7 @@
|
|
318
318
|
"__schema": "VariableLikeSchema",
|
319
319
|
"location": {
|
320
320
|
"filePath": "mover.main.runtime.ts",
|
321
|
-
"line":
|
321
|
+
"line": 74,
|
322
322
|
"character": 3
|
323
323
|
},
|
324
324
|
"signature": "(property) MoverMain.dependencies: Aspect[]",
|
@@ -327,7 +327,7 @@
|
|
327
327
|
"__schema": "InferenceTypeSchema",
|
328
328
|
"location": {
|
329
329
|
"filePath": "mover.main.runtime.ts",
|
330
|
-
"line":
|
330
|
+
"line": 74,
|
331
331
|
"character": 3
|
332
332
|
},
|
333
333
|
"type": "Aspect[]"
|
@@ -339,7 +339,7 @@
|
|
339
339
|
"__schema": "VariableLikeSchema",
|
340
340
|
"location": {
|
341
341
|
"filePath": "mover.main.runtime.ts",
|
342
|
-
"line":
|
342
|
+
"line": 75,
|
343
343
|
"character": 3
|
344
344
|
},
|
345
345
|
"signature": "(property) MoverMain.runtime: RuntimeDefinition",
|
@@ -348,7 +348,7 @@
|
|
348
348
|
"__schema": "InferenceTypeSchema",
|
349
349
|
"location": {
|
350
350
|
"filePath": "mover.main.runtime.ts",
|
351
|
-
"line":
|
351
|
+
"line": 75,
|
352
352
|
"character": 3
|
353
353
|
},
|
354
354
|
"type": "RuntimeDefinition"
|
@@ -360,7 +360,7 @@
|
|
360
360
|
"__schema": "FunctionLikeSchema",
|
361
361
|
"location": {
|
362
362
|
"filePath": "mover.main.runtime.ts",
|
363
|
-
"line":
|
363
|
+
"line": 77,
|
364
364
|
"character": 3
|
365
365
|
},
|
366
366
|
"signature": "(method) MoverMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>",
|
@@ -370,7 +370,7 @@
|
|
370
370
|
"__schema": "ParameterSchema",
|
371
371
|
"location": {
|
372
372
|
"filePath": "mover.main.runtime.ts",
|
373
|
-
"line":
|
373
|
+
"line": 77,
|
374
374
|
"character": 25
|
375
375
|
},
|
376
376
|
"name": "[ cli, workspace ]",
|
@@ -378,7 +378,7 @@
|
|
378
378
|
"__schema": "TupleTypeSchema",
|
379
379
|
"location": {
|
380
380
|
"filePath": "mover.main.runtime.ts",
|
381
|
-
"line":
|
381
|
+
"line": 77,
|
382
382
|
"character": 43
|
383
383
|
},
|
384
384
|
"elements": [
|
@@ -386,7 +386,7 @@
|
|
386
386
|
"__schema": "TypeRefSchema",
|
387
387
|
"location": {
|
388
388
|
"filePath": "mover.main.runtime.ts",
|
389
|
-
"line":
|
389
|
+
"line": 77,
|
390
390
|
"character": 44
|
391
391
|
},
|
392
392
|
"name": "CLIMain"
|
@@ -395,7 +395,7 @@
|
|
395
395
|
"__schema": "TypeRefSchema",
|
396
396
|
"location": {
|
397
397
|
"filePath": "mover.main.runtime.ts",
|
398
|
-
"line":
|
398
|
+
"line": 77,
|
399
399
|
"character": 53
|
400
400
|
},
|
401
401
|
"name": "Workspace"
|
@@ -410,7 +410,7 @@
|
|
410
410
|
"__schema": "InferenceTypeSchema",
|
411
411
|
"location": {
|
412
412
|
"filePath": "mover.main.runtime.ts",
|
413
|
-
"line":
|
413
|
+
"line": 77,
|
414
414
|
"character": 3
|
415
415
|
},
|
416
416
|
"type": "Promise<MoverMain>"
|
@@ -674,7 +674,7 @@
|
|
674
674
|
"__schema": "FunctionLikeSchema",
|
675
675
|
"location": {
|
676
676
|
"filePath": "mover.main.runtime.ts",
|
677
|
-
"line":
|
677
|
+
"line": 52,
|
678
678
|
"character": 3
|
679
679
|
},
|
680
680
|
"signature": "(method) MoverMain.moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void",
|
@@ -684,7 +684,7 @@
|
|
684
684
|
"__schema": "ParameterSchema",
|
685
685
|
"location": {
|
686
686
|
"filePath": "mover.main.runtime.ts",
|
687
|
-
"line":
|
687
|
+
"line": 52,
|
688
688
|
"character": 25
|
689
689
|
},
|
690
690
|
"name": "component",
|
@@ -692,7 +692,7 @@
|
|
692
692
|
"__schema": "TypeRefSchema",
|
693
693
|
"location": {
|
694
694
|
"filePath": "mover.main.runtime.ts",
|
695
|
-
"line":
|
695
|
+
"line": 52,
|
696
696
|
"character": 36
|
697
697
|
},
|
698
698
|
"name": "Component"
|
@@ -704,7 +704,7 @@
|
|
704
704
|
"__schema": "ParameterSchema",
|
705
705
|
"location": {
|
706
706
|
"filePath": "mover.main.runtime.ts",
|
707
|
-
"line":
|
707
|
+
"line": 52,
|
708
708
|
"character": 47
|
709
709
|
},
|
710
710
|
"name": "oldPath",
|
@@ -712,7 +712,7 @@
|
|
712
712
|
"__schema": "TypeRefSchema",
|
713
713
|
"location": {
|
714
714
|
"filePath": "mover.main.runtime.ts",
|
715
|
-
"line":
|
715
|
+
"line": 52,
|
716
716
|
"character": 56
|
717
717
|
},
|
718
718
|
"name": "PathOsBasedAbsolute"
|
@@ -724,7 +724,7 @@
|
|
724
724
|
"__schema": "ParameterSchema",
|
725
725
|
"location": {
|
726
726
|
"filePath": "mover.main.runtime.ts",
|
727
|
-
"line":
|
727
|
+
"line": 52,
|
728
728
|
"character": 77
|
729
729
|
},
|
730
730
|
"name": "newPath",
|
@@ -732,7 +732,7 @@
|
|
732
732
|
"__schema": "TypeRefSchema",
|
733
733
|
"location": {
|
734
734
|
"filePath": "mover.main.runtime.ts",
|
735
|
-
"line":
|
735
|
+
"line": 52,
|
736
736
|
"character": 86
|
737
737
|
},
|
738
738
|
"name": "PathOsBasedAbsolute"
|
@@ -745,7 +745,7 @@
|
|
745
745
|
"__schema": "InferenceTypeSchema",
|
746
746
|
"location": {
|
747
747
|
"filePath": "mover.main.runtime.ts",
|
748
|
-
"line":
|
748
|
+
"line": 52,
|
749
749
|
"character": 3
|
750
750
|
},
|
751
751
|
"type": "void"
|
@@ -756,7 +756,7 @@
|
|
756
756
|
"__schema": "VariableLikeSchema",
|
757
757
|
"location": {
|
758
758
|
"filePath": "mover.main.runtime.ts",
|
759
|
-
"line":
|
759
|
+
"line": 73,
|
760
760
|
"character": 3
|
761
761
|
},
|
762
762
|
"signature": "(property) MoverMain.slots: never[]",
|
@@ -765,7 +765,7 @@
|
|
765
765
|
"__schema": "InferenceTypeSchema",
|
766
766
|
"location": {
|
767
767
|
"filePath": "mover.main.runtime.ts",
|
768
|
-
"line":
|
768
|
+
"line": 73,
|
769
769
|
"character": 3
|
770
770
|
},
|
771
771
|
"type": "never[]"
|
@@ -777,7 +777,7 @@
|
|
777
777
|
"__schema": "VariableLikeSchema",
|
778
778
|
"location": {
|
779
779
|
"filePath": "mover.main.runtime.ts",
|
780
|
-
"line":
|
780
|
+
"line": 74,
|
781
781
|
"character": 3
|
782
782
|
},
|
783
783
|
"signature": "(property) MoverMain.dependencies: Aspect[]",
|
@@ -786,7 +786,7 @@
|
|
786
786
|
"__schema": "InferenceTypeSchema",
|
787
787
|
"location": {
|
788
788
|
"filePath": "mover.main.runtime.ts",
|
789
|
-
"line":
|
789
|
+
"line": 74,
|
790
790
|
"character": 3
|
791
791
|
},
|
792
792
|
"type": "Aspect[]"
|
@@ -798,7 +798,7 @@
|
|
798
798
|
"__schema": "VariableLikeSchema",
|
799
799
|
"location": {
|
800
800
|
"filePath": "mover.main.runtime.ts",
|
801
|
-
"line":
|
801
|
+
"line": 75,
|
802
802
|
"character": 3
|
803
803
|
},
|
804
804
|
"signature": "(property) MoverMain.runtime: RuntimeDefinition",
|
@@ -807,7 +807,7 @@
|
|
807
807
|
"__schema": "InferenceTypeSchema",
|
808
808
|
"location": {
|
809
809
|
"filePath": "mover.main.runtime.ts",
|
810
|
-
"line":
|
810
|
+
"line": 75,
|
811
811
|
"character": 3
|
812
812
|
},
|
813
813
|
"type": "RuntimeDefinition"
|
@@ -819,7 +819,7 @@
|
|
819
819
|
"__schema": "FunctionLikeSchema",
|
820
820
|
"location": {
|
821
821
|
"filePath": "mover.main.runtime.ts",
|
822
|
-
"line":
|
822
|
+
"line": 77,
|
823
823
|
"character": 3
|
824
824
|
},
|
825
825
|
"signature": "(method) MoverMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>",
|
@@ -829,7 +829,7 @@
|
|
829
829
|
"__schema": "ParameterSchema",
|
830
830
|
"location": {
|
831
831
|
"filePath": "mover.main.runtime.ts",
|
832
|
-
"line":
|
832
|
+
"line": 77,
|
833
833
|
"character": 25
|
834
834
|
},
|
835
835
|
"name": "[ cli, workspace ]",
|
@@ -837,7 +837,7 @@
|
|
837
837
|
"__schema": "TupleTypeSchema",
|
838
838
|
"location": {
|
839
839
|
"filePath": "mover.main.runtime.ts",
|
840
|
-
"line":
|
840
|
+
"line": 77,
|
841
841
|
"character": 43
|
842
842
|
},
|
843
843
|
"elements": [
|
@@ -845,7 +845,7 @@
|
|
845
845
|
"__schema": "TypeRefSchema",
|
846
846
|
"location": {
|
847
847
|
"filePath": "mover.main.runtime.ts",
|
848
|
-
"line":
|
848
|
+
"line": 77,
|
849
849
|
"character": 44
|
850
850
|
},
|
851
851
|
"name": "CLIMain"
|
@@ -854,7 +854,7 @@
|
|
854
854
|
"__schema": "TypeRefSchema",
|
855
855
|
"location": {
|
856
856
|
"filePath": "mover.main.runtime.ts",
|
857
|
-
"line":
|
857
|
+
"line": 77,
|
858
858
|
"character": 53
|
859
859
|
},
|
860
860
|
"name": "Workspace"
|
@@ -869,7 +869,7 @@
|
|
869
869
|
"__schema": "InferenceTypeSchema",
|
870
870
|
"location": {
|
871
871
|
"filePath": "mover.main.runtime.ts",
|
872
|
-
"line":
|
872
|
+
"line": 77,
|
873
873
|
"character": 3
|
874
874
|
},
|
875
875
|
"type": "Promise<MoverMain>"
|
@@ -887,7 +887,7 @@
|
|
887
887
|
"__schema": "UnImplementedSchema",
|
888
888
|
"location": {
|
889
889
|
"filePath": "mover.main.runtime.ts",
|
890
|
-
"line":
|
890
|
+
"line": 86,
|
891
891
|
"character": 16
|
892
892
|
},
|
893
893
|
"name": "MoverMain",
|
@@ -899,7 +899,7 @@
|
|
899
899
|
"__schema": "UnImplementedSchema",
|
900
900
|
"location": {
|
901
901
|
"filePath": "mover.main.runtime.ts",
|
902
|
-
"line":
|
902
|
+
"line": 84,
|
903
903
|
"character": 1
|
904
904
|
},
|
905
905
|
"name": "MoverAspect.addRuntime(MoverMain);",
|
@@ -948,7 +948,7 @@
|
|
948
948
|
"componentId": {
|
949
949
|
"scope": "teambit.component",
|
950
950
|
"name": "mover",
|
951
|
-
"version": "1.0.
|
951
|
+
"version": "1.0.179"
|
952
952
|
},
|
953
953
|
"taggedModuleExports": []
|
954
954
|
}
|
@@ -93,24 +93,26 @@ class MoverMain {
|
|
93
93
|
from,
|
94
94
|
to
|
95
95
|
}) {
|
96
|
-
const consumer =
|
96
|
+
const consumer = this.workspace.consumer;
|
97
97
|
const fromExists = _fsExtra().default.existsSync(from);
|
98
98
|
const toExists = _fsExtra().default.existsSync(to);
|
99
99
|
if (fromExists && toExists) {
|
100
100
|
throw new (_bitError().BitError)(`unable to move because both paths from (${from}) and to (${to}) already exist`);
|
101
101
|
}
|
102
102
|
if (!fromExists && !toExists) throw new (_bitError().BitError)(`both paths from (${from}) and to (${to}) do not exist`);
|
103
|
-
if (
|
103
|
+
if (fromExists && !(0, _utils().isDir)(from)) {
|
104
104
|
throw new (_bitError().BitError)(`bit move supports moving directories only, not files.
|
105
|
-
|
106
|
-
|
105
|
+
files withing a component dir are automatically tracked, no action is needed.
|
106
|
+
to change the main-file, use "bit add <component-dir> --main <new-main-file>"`);
|
107
|
+
}
|
108
|
+
if (toExists && !(0, _utils().isDir)(to)) {
|
109
|
+
throw new (_bitError().BitError)(`unable to move because the destination path (${to}) is a file and not a directory`);
|
107
110
|
}
|
108
111
|
const fromRelative = consumer.getPathRelativeToConsumer(from);
|
109
112
|
const toRelative = consumer.getPathRelativeToConsumer(to);
|
110
113
|
const fromAbsolute = consumer.toAbsolutePath(fromRelative);
|
111
114
|
const toAbsolute = consumer.toAbsolutePath(toRelative);
|
112
|
-
const
|
113
|
-
const changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative, existingPath);
|
115
|
+
const changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative);
|
114
116
|
if (fromExists && !toExists) {
|
115
117
|
// user would like to physically move the file. Otherwise (!fromExists and toExists), user would like to only update bit.map
|
116
118
|
(0, _moveSync().default)(fromAbsolute, toAbsolute);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_bitError","_cli","_lodash","_workspace","_utils","_moveSync","_workspaceModules","_removePath","_mover","_moveCmd","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","isLegacy","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","existingPath","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"],"sources":["mover.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\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 moveSync from '@teambit/legacy/dist/utils/fs/move-sync';\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 = await 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 (!consumer.isLegacy && fromExists && !isDir(from)) {\n throw new BitError(`bit move supports moving directories only, not files.\n files withing a component dir are automatically tracked, no action is needed.\n to change the main-file, use \"bit add <component-dir> --main <new-main-file>\"`);\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 existingPath = fromExists ? fromAbsolute : toAbsolute;\n const changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative, existingPath);\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"],"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,UAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,KAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,IAAA,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,WAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,OAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAM,SAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,S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,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAK;MAC9C;MACA,MAAMC,WAAW,GAAGD,IAAI,CAACE,QAAQ,CAACC,OAAO,CAACV,eAAe,EAAEC,eAAe,CAAC;MAC3EM,IAAI,CAACI,WAAW,CAAC;QAAEH,WAAW;QAAEI,OAAO,EAAEX;MAAgB,CAAC,CAAC;IAC7D,CAAC,CAAC;IACFP,SAAS,CAACU,aAAa,CAACS,UAAU,CAAC,KAAIC,qBAAU,EAACd,eAAe,CAAC,CAAC;IACnEN,SAAS,CAACqB,WAAW,GAAGd,eAAe;EACzC;EAMA,aAAae,QAAQA,CAAC,CAACC,GAAG,EAAEtD,SAAS,CAAuB,EAAE;IAC5D,MAAMuD,SAAS,GAAG,IAAIzD,SAAS,CAACE,SAAS,CAAC;IAC1CsD,GAAG,CAACE,QAAQ,CAAC,KAAIC,kBAAO,EAACF,SAAS,CAAC,CAAC;IACpC,OAAOA,SAAS;EAClB;AACF;AAACG,OAAA,CAAA5D,SAAA,GAAAA,SAAA;AAAApB,eAAA,CAhEYoB,SAAS,WAuDL,EAAE;AAAApB,eAAA,CAvDNoB,SAAS,kBAwDE,CAAC6D,gBAAS,EAAEC,4BAAe,CAAC;AAAAlF,eAAA,CAxDvCoB,SAAS,aAyDH+D,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAACjE,SAAS,CAAC;AAAC,IAAAkE,QAAA,GAAAN,OAAA,CAAAjF,OAAA,GAEnBqB,SAAS"}
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_bitError","_cli","_lodash","_workspace","_utils","_moveSync","_workspaceModules","_removePath","_mover","_moveCmd","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","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"],"sources":["mover.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\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 moveSync from '@teambit/legacy/dist/utils/fs/move-sync';\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"],"mappings":";;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AACS,UAAU,CAAC,KAAIC,qBAAU,EAACd,eAAe,CAAC,CAAC;IACnEN,SAAS,CAACqB,WAAW,GAAGd,eAAe;EACzC;EAMA,aAAae,QAAQA,CAAC,CAACC,GAAG,EAAEpD,SAAS,CAAuB,EAAE;IAC5D,MAAMqD,SAAS,GAAG,IAAIvD,SAAS,CAACE,SAAS,CAAC;IAC1CoD,GAAG,CAACE,QAAQ,CAAC,KAAIC,kBAAO,EAACF,SAAS,CAAC,CAAC;IACpC,OAAOA,SAAS;EAClB;AACF;AAACG,OAAA,CAAA1D,SAAA,GAAAA,SAAA;AAAApB,eAAA,CAlEYoB,SAAS,WAyDL,EAAE;AAAApB,eAAA,CAzDNoB,SAAS,kBA0DE,CAAC2D,gBAAS,EAAEC,4BAAe,CAAC;AAAAhF,eAAA,CA1DvCoB,SAAS,aA2DH6D,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAAC/D,SAAS,CAAC;AAAC,IAAAgE,QAAA,GAAAN,OAAA,CAAA/E,OAAA,GAEnBqB,SAAS"}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/mover",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.179",
|
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.
|
9
|
+
"version": "1.0.179"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -14,9 +14,9 @@
|
|
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.
|
17
|
+
"@teambit/cli": "0.0.852",
|
18
18
|
"@teambit/workspace.modules.node-modules-linker": "0.0.165",
|
19
|
-
"@teambit/workspace": "1.0.
|
19
|
+
"@teambit/workspace": "1.0.179"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
22
|
"@types/fs-extra": "9.0.7",
|
File without changes
|