@teambit/mover 1.0.204 → 1.0.205

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.204" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/mover@1.0.205" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1094,7 +1094,7 @@
1094
1094
  "componentId": {
1095
1095
  "scope": "teambit.component",
1096
1096
  "name": "mover",
1097
- "version": "1.0.204"
1097
+ "version": "1.0.205"
1098
1098
  },
1099
1099
  "taggedModuleExports": []
1100
1100
  }
@@ -4,13 +4,13 @@ export declare class MoveCmd implements Command {
4
4
  private mover;
5
5
  name: string;
6
6
  description: string;
7
+ extendedDescription: string;
7
8
  helpUrl: string;
8
9
  arguments: {
9
10
  name: string;
10
11
  description: string;
11
12
  }[];
12
13
  group: string;
13
- extendedDescription: string;
14
14
  alias: string;
15
15
  loader: boolean;
16
16
  options: never[];
package/dist/move-cmd.js CHANGED
@@ -19,7 +19,8 @@ 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", "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)");
22
+ _defineProperty(this, "description", 'move a component to a different filesystem path');
23
+ _defineProperty(this, "extendedDescription", `(note: this does NOT affect the component's name or scope, just its location in the workspace)`);
23
24
  _defineProperty(this, "helpUrl", 'reference/workspace/moving-components');
24
25
  _defineProperty(this, "arguments", [{
25
26
  name: 'current-component-dir',
@@ -29,7 +30,6 @@ class MoveCmd {
29
30
  description: "the new directory (relative to the workspace root) to create and move the component's files to"
30
31
  }]);
31
32
  _defineProperty(this, "group", 'development');
32
- _defineProperty(this, "extendedDescription", `move files or directories of component(s)\n`);
33
33
  _defineProperty(this, "alias", 'mv');
34
34
  _defineProperty(this, "loader", true);
35
35
  _defineProperty(this, "options", []);
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","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 =\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;AA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C;IAAAA,eAAA,gBAC3D,IAAI;IAAAA,eAAA,iBACH,IAAI;IAAAA,eAAA,kBACH,EAAE;EAE2B;EAEvC,MAAMyB,MAAMA,CAAC,CAACC,IAAI,EAAEC,EAAE,CAAmB,EAAE;IACzC,MAAMC,iBAAqC,GAAG,MAAM,IAAI,CAACN,KAAK,CAACO,SAAS,CAAC;MAAEH,IAAI;MAAEC;IAAG,CAAC,CAAC;IACtF,MAAMG,MAAM,GAAGF,iBAAiB,CAACG,GAAG,CAAEC,SAAS,IAAK;MAClD,MAAMC,KAAK,GAAGC,gBAAK,CAACC,KAAK,CAAE,mBAAkBH,SAAS,CAACI,EAAE,CAACC,QAAQ,CAAC,CAAE,KAAI,CAAC;MAC1E,MAAMC,KAAK,GAAGN,SAAS,CAACO,OAAO,CAC5BR,GAAG,CAAES,IAAI,IAAM,QAAON,gBAAK,CAACO,IAAI,CAACD,IAAI,CAACd,IAAI,CAAE,OAAMQ,gBAAK,CAACO,IAAI,CAACD,IAAI,CAACb,EAAE,CAAE,EAAC,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","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","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,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AA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,gBAAK,CAACO,IAAI,CAACD,IAAI,CAACd,IAAI,CAAE,OAAMQ,gBAAK,CAACO,IAAI,CAACD,IAAI,CAACb,EAAE,CAAE,EAAC,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,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mover",
3
- "version": "1.0.204",
3
+ "version": "1.0.205",
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.204"
9
+ "version": "1.0.205"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -16,7 +16,7 @@
16
16
  "@teambit/bit-error": "0.0.404",
17
17
  "@teambit/cli": "0.0.858",
18
18
  "@teambit/workspace.modules.node-modules-linker": "0.0.165",
19
- "@teambit/workspace": "1.0.204"
19
+ "@teambit/workspace": "1.0.205"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/fs-extra": "9.0.7",