@teambit/mover 1.0.228 → 1.0.230

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.228" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/mover@1.0.230" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -48,7 +48,11 @@
48
48
  "line": 17,
49
49
  "character": 34
50
50
  },
51
- "name": "Workspace"
51
+ "name": "Workspace",
52
+ "componentId": {
53
+ "scope": "teambit.workspace",
54
+ "name": "workspace"
55
+ }
52
56
  },
53
57
  "isOptional": false,
54
58
  "isSpread": false
@@ -107,7 +111,8 @@
107
111
  "line": 19,
108
112
  "character": 41
109
113
  },
110
- "name": "PathOsBasedRelative"
114
+ "name": "PathOsBasedRelative",
115
+ "packageName": "@teambit/legacy/dist/utils/path"
111
116
  },
112
117
  "isOptional": false
113
118
  },
@@ -127,7 +132,8 @@
127
132
  "line": 19,
128
133
  "character": 66
129
134
  },
130
- "name": "PathOsBasedRelative"
135
+ "name": "PathOsBasedRelative",
136
+ "packageName": "@teambit/legacy/dist/utils/path"
131
137
  },
132
138
  "isOptional": false
133
139
  }
@@ -151,7 +157,8 @@
151
157
  "line": 19,
152
158
  "character": 41
153
159
  },
154
- "name": "PathOsBasedRelative"
160
+ "name": "PathOsBasedRelative",
161
+ "packageName": "@teambit/legacy/dist/utils/path"
155
162
  },
156
163
  "isOptional": false
157
164
  },
@@ -171,7 +178,8 @@
171
178
  "line": 19,
172
179
  "character": 66
173
180
  },
174
- "name": "PathOsBasedRelative"
181
+ "name": "PathOsBasedRelative",
182
+ "packageName": "@teambit/legacy/dist/utils/path"
175
183
  },
176
184
  "isOptional": false
177
185
  }
@@ -202,7 +210,8 @@
202
210
  "line": 19,
203
211
  "character": 98
204
212
  },
205
- "name": "PathChangeResult"
213
+ "name": "PathChangeResult",
214
+ "packageName": "@teambit/legacy/dist/consumer/bit-map/bit-map"
206
215
  }
207
216
  }
208
217
  ]
@@ -236,7 +245,8 @@
236
245
  "line": 52,
237
246
  "character": 36
238
247
  },
239
- "name": "Component"
248
+ "name": "Component",
249
+ "packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
240
250
  },
241
251
  "isOptional": false,
242
252
  "isSpread": false
@@ -256,7 +266,8 @@
256
266
  "line": 52,
257
267
  "character": 56
258
268
  },
259
- "name": "PathOsBasedAbsolute"
269
+ "name": "PathOsBasedAbsolute",
270
+ "packageName": "@teambit/legacy/dist/utils/path"
260
271
  },
261
272
  "isOptional": false,
262
273
  "isSpread": false
@@ -276,7 +287,8 @@
276
287
  "line": 52,
277
288
  "character": 86
278
289
  },
279
- "name": "PathOsBasedAbsolute"
290
+ "name": "PathOsBasedAbsolute",
291
+ "packageName": "@teambit/legacy/dist/utils/path"
280
292
  },
281
293
  "isOptional": false,
282
294
  "isSpread": false
@@ -389,7 +401,11 @@
389
401
  "line": 77,
390
402
  "character": 44
391
403
  },
392
- "name": "CLIMain"
404
+ "name": "CLIMain",
405
+ "componentId": {
406
+ "scope": "teambit.harmony",
407
+ "name": "cli"
408
+ }
393
409
  },
394
410
  {
395
411
  "__schema": "TypeRefSchema",
@@ -398,7 +414,11 @@
398
414
  "line": 77,
399
415
  "character": 53
400
416
  },
401
- "name": "Workspace"
417
+ "name": "Workspace",
418
+ "componentId": {
419
+ "scope": "teambit.workspace",
420
+ "name": "workspace"
421
+ }
402
422
  }
403
423
  ]
404
424
  },
@@ -507,7 +527,11 @@
507
527
  "line": 17,
508
528
  "character": 34
509
529
  },
510
- "name": "Workspace"
530
+ "name": "Workspace",
531
+ "componentId": {
532
+ "scope": "teambit.workspace",
533
+ "name": "workspace"
534
+ }
511
535
  },
512
536
  "isOptional": false,
513
537
  "isSpread": false
@@ -566,7 +590,8 @@
566
590
  "line": 19,
567
591
  "character": 41
568
592
  },
569
- "name": "PathOsBasedRelative"
593
+ "name": "PathOsBasedRelative",
594
+ "packageName": "@teambit/legacy/dist/utils/path"
570
595
  },
571
596
  "isOptional": false
572
597
  },
@@ -586,7 +611,8 @@
586
611
  "line": 19,
587
612
  "character": 66
588
613
  },
589
- "name": "PathOsBasedRelative"
614
+ "name": "PathOsBasedRelative",
615
+ "packageName": "@teambit/legacy/dist/utils/path"
590
616
  },
591
617
  "isOptional": false
592
618
  }
@@ -610,7 +636,8 @@
610
636
  "line": 19,
611
637
  "character": 41
612
638
  },
613
- "name": "PathOsBasedRelative"
639
+ "name": "PathOsBasedRelative",
640
+ "packageName": "@teambit/legacy/dist/utils/path"
614
641
  },
615
642
  "isOptional": false
616
643
  },
@@ -630,7 +657,8 @@
630
657
  "line": 19,
631
658
  "character": 66
632
659
  },
633
- "name": "PathOsBasedRelative"
660
+ "name": "PathOsBasedRelative",
661
+ "packageName": "@teambit/legacy/dist/utils/path"
634
662
  },
635
663
  "isOptional": false
636
664
  }
@@ -661,7 +689,8 @@
661
689
  "line": 19,
662
690
  "character": 98
663
691
  },
664
- "name": "PathChangeResult"
692
+ "name": "PathChangeResult",
693
+ "packageName": "@teambit/legacy/dist/consumer/bit-map/bit-map"
665
694
  }
666
695
  }
667
696
  ]
@@ -695,7 +724,8 @@
695
724
  "line": 52,
696
725
  "character": 36
697
726
  },
698
- "name": "Component"
727
+ "name": "Component",
728
+ "packageName": "@teambit/legacy/dist/consumer/component/consumer-component"
699
729
  },
700
730
  "isOptional": false,
701
731
  "isSpread": false
@@ -715,7 +745,8 @@
715
745
  "line": 52,
716
746
  "character": 56
717
747
  },
718
- "name": "PathOsBasedAbsolute"
748
+ "name": "PathOsBasedAbsolute",
749
+ "packageName": "@teambit/legacy/dist/utils/path"
719
750
  },
720
751
  "isOptional": false,
721
752
  "isSpread": false
@@ -735,7 +766,8 @@
735
766
  "line": 52,
736
767
  "character": 86
737
768
  },
738
- "name": "PathOsBasedAbsolute"
769
+ "name": "PathOsBasedAbsolute",
770
+ "packageName": "@teambit/legacy/dist/utils/path"
739
771
  },
740
772
  "isOptional": false,
741
773
  "isSpread": false
@@ -848,7 +880,11 @@
848
880
  "line": 77,
849
881
  "character": 44
850
882
  },
851
- "name": "CLIMain"
883
+ "name": "CLIMain",
884
+ "componentId": {
885
+ "scope": "teambit.harmony",
886
+ "name": "cli"
887
+ }
852
888
  },
853
889
  {
854
890
  "__schema": "TypeRefSchema",
@@ -857,7 +893,11 @@
857
893
  "line": 77,
858
894
  "character": 53
859
895
  },
860
- "name": "Workspace"
896
+ "name": "Workspace",
897
+ "componentId": {
898
+ "scope": "teambit.workspace",
899
+ "name": "workspace"
900
+ }
861
901
  }
862
902
  ]
863
903
  },
@@ -918,7 +958,8 @@
918
958
  "line": 88,
919
959
  "character": 31
920
960
  },
921
- "name": "PathOsBasedAbsolute"
961
+ "name": "PathOsBasedAbsolute",
962
+ "packageName": "@teambit/legacy/dist/utils/path"
922
963
  },
923
964
  "isOptional": false,
924
965
  "isSpread": false
@@ -938,7 +979,8 @@
938
979
  "line": 88,
939
980
  "character": 58
940
981
  },
941
- "name": "PathOsBasedAbsolute"
982
+ "name": "PathOsBasedAbsolute",
983
+ "packageName": "@teambit/legacy/dist/utils/path"
942
984
  },
943
985
  "isOptional": false,
944
986
  "isSpread": false
@@ -1052,7 +1094,7 @@
1052
1094
  "componentId": {
1053
1095
  "scope": "teambit.component",
1054
1096
  "name": "mover",
1055
- "version": "1.0.228"
1097
+ "version": "1.0.230"
1056
1098
  },
1057
1099
  "taggedModuleExports": []
1058
1100
  }
@@ -0,0 +1,4 @@
1
+ import { MoverAspect } from './mover.aspect';
2
+ export type { MoverMain } from './mover.main.runtime';
3
+ export default MoverAspect;
4
+ export { MoverAspect };
@@ -0,0 +1,19 @@
1
+ import { Command } from '@teambit/cli';
2
+ import { MoverMain } from './mover.main.runtime';
3
+ export declare class MoveCmd implements Command {
4
+ private mover;
5
+ name: string;
6
+ description: string;
7
+ extendedDescription: string;
8
+ helpUrl: string;
9
+ arguments: {
10
+ name: string;
11
+ description: string;
12
+ }[];
13
+ group: string;
14
+ alias: string;
15
+ loader: boolean;
16
+ options: never[];
17
+ constructor(mover: MoverMain);
18
+ report([from, to]: [string, string]): Promise<string>;
19
+ }
@@ -0,0 +1,2 @@
1
+ import { Aspect } from '@teambit/harmony';
2
+ export declare const MoverAspect: Aspect;
@@ -0,0 +1,20 @@
1
+ import { CLIMain } from '@teambit/cli';
2
+ import { Workspace } from '@teambit/workspace';
3
+ import { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy/dist/utils/path';
4
+ import { PathChangeResult } from '@teambit/legacy/dist/consumer/bit-map/bit-map';
5
+ import Component from '@teambit/legacy/dist/consumer/component/consumer-component';
6
+ export declare class MoverMain {
7
+ private workspace;
8
+ constructor(workspace: Workspace);
9
+ movePaths({ from, to }: {
10
+ from: PathOsBasedRelative;
11
+ to: PathOsBasedRelative;
12
+ }): Promise<PathChangeResult[]>;
13
+ moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void;
14
+ static slots: never[];
15
+ static dependencies: import("@teambit/harmony").Aspect[];
16
+ static runtime: import("@teambit/harmony").RuntimeDefinition;
17
+ static provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>;
18
+ }
19
+ export default MoverMain;
20
+ export declare function moveSync(src: PathOsBasedAbsolute, dest: PathOsBasedAbsolute, options?: Record<string, any>): void;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mover",
3
- "version": "1.0.228",
3
+ "version": "1.0.230",
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.228"
9
+ "version": "1.0.230"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,16 +14,16 @@
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.861",
18
- "@teambit/workspace.modules.node-modules-linker": "0.0.167",
19
- "@teambit/workspace": "1.0.228"
17
+ "@teambit/cli": "0.0.862",
18
+ "@teambit/workspace.modules.node-modules-linker": "0.0.168",
19
+ "@teambit/workspace": "1.0.230"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/fs-extra": "9.0.7",
23
23
  "@types/lodash": "4.14.165",
24
24
  "@types/mocha": "9.1.0",
25
25
  "chai": "4.3.0",
26
- "@teambit/harmony.envs.core-aspect-env": "0.0.30"
26
+ "@teambit/harmony.envs.core-aspect-env": "0.0.33"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@teambit/legacy": "1.0.624"
package/tsconfig.json CHANGED
@@ -20,8 +20,7 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false,
24
- "composite": true
23
+ "noImplicitAny": false
25
24
  },
26
25
  "exclude": [
27
26
  "artifacts",
@@ -36,13 +35,5 @@
36
35
  "include": [
37
36
  "**/*",
38
37
  "**/*.json"
39
- ],
40
- "references": [
41
- {
42
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
43
- },
44
- {
45
- "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
46
- }
47
38
  ]
48
39
  }