@teambit/mover 1.0.750 → 1.0.751
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/dist/move-cmd.js
CHANGED
|
@@ -19,8 +19,10 @@ class MoveCmd {
|
|
|
19
19
|
constructor(mover) {
|
|
20
20
|
this.mover = mover;
|
|
21
21
|
_defineProperty(this, "name", 'move <current-component-dir> <new-component-dir>');
|
|
22
|
-
_defineProperty(this, "description", '
|
|
23
|
-
_defineProperty(this, "extendedDescription", `
|
|
22
|
+
_defineProperty(this, "description", 'relocate a component to a different directory');
|
|
23
|
+
_defineProperty(this, "extendedDescription", `moves component files to a new location within the workspace and updates the .bitmap tracking.
|
|
24
|
+
only changes the filesystem location - does not affect the component's name, scope, or ID.
|
|
25
|
+
useful for reorganizing workspace structure or following new directory conventions.`);
|
|
24
26
|
_defineProperty(this, "helpUrl", 'reference/workspace/moving-components');
|
|
25
27
|
_defineProperty(this, "arguments", [{
|
|
26
28
|
name: 'current-component-dir',
|
package/dist/move-cmd.js.map
CHANGED
|
@@ -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 type { Command } from '@teambit/cli';\nimport type { PathChangeResult } from '@teambit/legacy.bit-map';\nimport type { MoverMain } from './mover.main.runtime';\n\nexport class MoveCmd implements Command {\n name = 'move <current-component-dir> <new-component-dir>';\n description = '
|
|
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 type { Command } from '@teambit/cli';\nimport type { PathChangeResult } from '@teambit/legacy.bit-map';\nimport type { MoverMain } from './mover.main.runtime';\n\nexport class MoveCmd implements Command {\n name = 'move <current-component-dir> <new-component-dir>';\n description = 'relocate a component to a different directory';\n extendedDescription = `moves component files to a new location within the workspace and updates the .bitmap tracking.\nonly changes the filesystem location - does not affect the component's name, scope, or ID.\nuseful for reorganizing workspace structure or following new directory conventions.`;\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 = 'component-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,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MAAEH,IAAI;MAAEC;IAAG,CAAC,CAAC;IACtF,MAAMG,MAAM,GAAGF,iBAAiB,CAACG,GAAG,CAAEC,SAAS,IAAK;MAClD,MAAMC,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":[]}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/mover",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.751",
|
|
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.751"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
13
13
|
"fs-extra": "10.0.0",
|
|
14
14
|
"lodash": "4.17.21",
|
|
15
|
-
"@teambit/cli": "0.0.1272",
|
|
16
|
-
"@teambit/legacy.bit-map": "0.0.130",
|
|
17
15
|
"@teambit/harmony": "0.4.7",
|
|
18
16
|
"@teambit/bit-error": "0.0.404",
|
|
19
|
-
"@teambit/
|
|
20
|
-
"@teambit/legacy.
|
|
21
|
-
"@teambit/
|
|
22
|
-
"@teambit/
|
|
23
|
-
"@teambit/
|
|
17
|
+
"@teambit/cli": "0.0.1273",
|
|
18
|
+
"@teambit/legacy.bit-map": "0.0.131",
|
|
19
|
+
"@teambit/component.sources": "0.0.126",
|
|
20
|
+
"@teambit/legacy.consumer-component": "0.0.75",
|
|
21
|
+
"@teambit/legacy.utils": "0.0.27",
|
|
22
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.302",
|
|
23
|
+
"@teambit/workspace": "1.0.751"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/fs-extra": "9.0.7",
|
|
File without changes
|