@teambit/mover 0.0.164 → 0.0.165

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
@@ -21,28 +21,21 @@ function _chalk() {
21
21
  };
22
22
  return data;
23
23
  }
24
- function _constants() {
25
- const data = require("@teambit/legacy/dist/constants");
26
- _constants = function () {
27
- return data;
28
- };
29
- return data;
30
- }
31
24
  class MoveCmd {
32
25
  constructor(mover) {
33
26
  this.mover = mover;
34
27
  (0, _defineProperty2().default)(this, "name", 'move <current-component-dir> <new-component-dir>');
35
- (0, _defineProperty2().default)(this, "description", 'move a component to a different filesystem path');
36
- (0, _defineProperty2().default)(this, "helpUrl", 'docs/workspace/moving-components');
28
+ (0, _defineProperty2().default)(this, "description", "move a component to a different filesystem path (note: this does NOT affect the component's name or scope, just its location in the workspace)");
29
+ (0, _defineProperty2().default)(this, "helpUrl", 'reference/workspace/moving-components');
37
30
  (0, _defineProperty2().default)(this, "arguments", [{
38
31
  name: 'current-component-dir',
39
- description: 'the current relative path (in the workspace) to the component directory'
32
+ description: "the component's current directory (relative to the workspace root)"
40
33
  }, {
41
34
  name: 'new-component-dir',
42
- description: 'the new relative path (in the workspace) to the component directory'
35
+ description: "the new directory (relative to the workspace root) to create and move the component's files to"
43
36
  }]);
44
37
  (0, _defineProperty2().default)(this, "group", 'development');
45
- (0, _defineProperty2().default)(this, "extendedDescription", `move files or directories of component(s)\n https://${_constants().BASE_DOCS_DOMAIN}/workspace/moving-components`);
38
+ (0, _defineProperty2().default)(this, "extendedDescription", `move files or directories of component(s)\n`);
46
39
  (0, _defineProperty2().default)(this, "alias", 'mv');
47
40
  (0, _defineProperty2().default)(this, "loader", true);
48
41
  (0, _defineProperty2().default)(this, "options", []);
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_constants","MoveCmd","constructor","mover","_defineProperty2","default","name","description","BASE_DOCS_DOMAIN","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 { BASE_DOCS_DOMAIN } from '@teambit/legacy/dist/constants';\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 helpUrl = 'docs/workspace/moving-components';\n arguments = [\n {\n name: 'current-component-dir',\n description: 'the current relative path (in the workspace) to the component directory',\n },\n {\n name: 'new-component-dir',\n description: 'the new relative path (in the workspace) to the component directory',\n },\n ];\n group = 'development';\n extendedDescription = `move files or directories of component(s)\\n https://${BASE_DOCS_DOMAIN}/workspace/moving-components`;\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;AAEA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIO,MAAMI,OAAO,CAAoB;EAoBtCC,WAAWA,CAASC,KAAgB,EAAE;IAAA,KAAlBA,KAAgB,GAAhBA,KAAgB;IAAA,IAAAC,gBAAA,GAAAC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AI,CAAC;EAC1B;AACF;AAACC,OAAA,CAAA1B,OAAA,GAAAA,OAAA"}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","MoveCmd","constructor","mover","_defineProperty2","default","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 =\n \"move a component to a different filesystem path (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 extendedDescription = `move files or directories of component(s)\\n`;\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;AAKO,MAAMG,OAAO,CAAoB;EAqBtCC,WAAWA,CAASC,KAAgB,EAAE;IAAA,KAAlBA,KAAgB,GAAhBA,KAAgB;IAAA,IAAAC,gBAAA,GAAAC,OAAA,gBApB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AA,CAAAzB,OAAA,GAAAA,OAAA"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mover",
3
- "version": "0.0.164",
3
+ "version": "0.0.165",
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": "0.0.164"
9
+ "version": "0.0.165"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -15,10 +15,10 @@
15
15
  "core-js": "^3.0.0",
16
16
  "@babel/runtime": "7.20.0",
17
17
  "@teambit/harmony": "0.4.6",
18
- "@teambit/cli": "0.0.759",
18
+ "@teambit/cli": "0.0.760",
19
19
  "@teambit/bit-error": "0.0.402",
20
- "@teambit/workspace.modules.node-modules-linker": "0.0.101",
21
- "@teambit/workspace": "0.0.1133"
20
+ "@teambit/workspace.modules.node-modules-linker": "0.0.102",
21
+ "@teambit/workspace": "0.0.1134"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/fs-extra": "9.0.7",
@@ -30,7 +30,7 @@
30
30
  "@types/testing-library__jest-dom": "5.9.5"
31
31
  },
32
32
  "peerDependencies": {
33
- "@teambit/legacy": "1.0.542",
33
+ "@teambit/legacy": "1.0.544",
34
34
  "react": "^16.8.0 || ^17.0.0",
35
35
  "react-dom": "^16.8.0 || ^17.0.0"
36
36
  },