@teambit/mover 0.0.4 → 0.0.5

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.
@@ -51,13 +51,6 @@ function _ramda() {
51
51
  };
52
52
  return data;
53
53
  }
54
- function _bitIds() {
55
- const data = _interopRequireDefault(require("@teambit/legacy/dist/bit-id/bit-ids"));
56
- _bitIds = function () {
57
- return data;
58
- };
59
- return data;
60
- }
61
54
  function _generalError() {
62
55
  const data = _interopRequireDefault(require("@teambit/legacy/dist/error/general-error"));
63
56
  _generalError = function () {
@@ -65,13 +58,6 @@ function _generalError() {
65
58
  };
66
59
  return data;
67
60
  }
68
- function _links() {
69
- const data = require("@teambit/legacy/dist/links");
70
- _links = function () {
71
- return data;
72
- };
73
- return data;
74
- }
75
61
  function _utils() {
76
62
  const data = require("@teambit/legacy/dist/utils");
77
63
  _utils = function () {
@@ -86,6 +72,13 @@ function _moveSync() {
86
72
  };
87
73
  return data;
88
74
  }
75
+ function _workspaceModules() {
76
+ const data = require("@teambit/workspace.modules.node-modules-linker");
77
+ _workspaceModules = function () {
78
+ return data;
79
+ };
80
+ return data;
81
+ }
89
82
  function _removePath() {
90
83
  const data = _interopRequireDefault(require("@teambit/legacy/dist/consumer/component/sources/remove-path"));
91
84
  _removePath = function () {
@@ -139,11 +132,7 @@ class MoverMain {
139
132
  }
140
133
  if (!_ramda().default.isEmpty(changes)) {
141
134
  const componentsIds = changes.map(c => c.id);
142
- const {
143
- components
144
- } = await consumer.loadComponents(_bitIds().default.fromArray(componentsIds));
145
- const nodeModuleLinker = new (_links().NodeModuleLinker)(components, consumer, consumer.bitMap);
146
- await nodeModuleLinker.link();
135
+ await (0, _workspaceModules().linkToNodeModules)(this.workspace, componentsIds);
147
136
  }
148
137
  await this.workspace.bitMap.write();
149
138
  return changes;
@@ -1 +1 @@
1
- {"version":3,"names":["MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","GeneralError","isLegacy","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","existingPath","changes","bitMap","updatePathLocation","moveSync","R","isEmpty","componentsIds","map","c","id","components","loadComponents","BitIds","fromArray","nodeModuleLinker","NodeModuleLinker","link","write","moveExistingComponent","component","oldPath","newPath","toString","componentMap","getComponent","oldPathRelative","newPathRelative","updateDirLocation","markAsChanged","dataToPersist","files","forEach","file","newRelative","relative","replace","updatePaths","removePath","RemovePath","writtenPath","provider","cli","moverMain","register","MoveCmd","CLIAspect","WorkspaceAspect","MainRuntime","MoverAspect","addRuntime"],"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 WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport R from 'ramda';\nimport BitIds from '@teambit/legacy/dist/bit-id/bit-ids';\nimport GeneralError from '@teambit/legacy/dist/error/general-error';\nimport { NodeModuleLinker } from '@teambit/legacy/dist/links';\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 { 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 GeneralError(`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 (!R.isEmpty(changes)) {\n const componentsIds = changes.map((c) => c.id);\n const { components } = await consumer.loadComponents(BitIds.fromArray(componentsIds));\n const nodeModuleLinker = new NodeModuleLinker(components, consumer, consumer.bitMap);\n await nodeModuleLinker.link();\n }\n await this.workspace.bitMap.write();\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 GeneralError(\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 });\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;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,SAAS,CAAC;EACrBC,WAAW,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;EAAG;EAE3C,MAAMC,SAAS,CAAC;IAAEC,IAAI;IAAEC;EAA2D,CAAC,EAA+B;IACjH,MAAMC,QAAQ,GAAG,MAAM,IAAI,CAACJ,SAAS,CAACI,QAAQ;IAC9C,MAAMC,UAAU,GAAGC,kBAAE,CAACC,UAAU,CAACL,IAAI,CAAC;IACtC,MAAMM,QAAQ,GAAGF,kBAAE,CAACC,UAAU,CAACJ,EAAE,CAAC;IAClC,IAAIE,UAAU,IAAIG,QAAQ,EAAE;MAC1B,MAAM,KAAIC,oBAAQ,EAAE,2CAA0CP,IAAK,aAAYC,EAAG,iBAAgB,CAAC;IACrG;IACA,IA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SAAS,CAAC;IAC1C6D,GAAG,CAACE,QAAQ,CAAC,KAAIC,kBAAO,EAACF,SAAS,CAAC,CAAC;IACpC,OAAOA,SAAS;EAClB;AACF;AAAC;AAAA,gCAlEYhE,SAAS,WAyDL,EAAE;AAAA,gCAzDNA,SAAS,kBA0DE,CAACmE,gBAAS,EAAEC,oBAAe,CAAC;AAAA,gCA1DvCpE,SAAS,aA2DHqE,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAACvE,SAAS,CAAC;AAAC,eAEnBA,SAAS;AAAA"}
1
+ {"version":3,"names":["MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","GeneralError","isLegacy","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","existingPath","changes","bitMap","updatePathLocation","moveSync","R","isEmpty","componentsIds","map","c","id","linkToNodeModules","write","moveExistingComponent","component","oldPath","newPath","toString","componentMap","getComponent","oldPathRelative","newPathRelative","updateDirLocation","markAsChanged","dataToPersist","files","forEach","file","newRelative","relative","replace","updatePaths","removePath","RemovePath","writtenPath","provider","cli","moverMain","register","MoveCmd","CLIAspect","WorkspaceAspect","MainRuntime","MoverAspect","addRuntime"],"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 WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport R from 'ramda';\nimport GeneralError from '@teambit/legacy/dist/error/general-error';\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 { linkToNodeModules } 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 GeneralError(`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 (!R.isEmpty(changes)) {\n const componentsIds = changes.map((c) => c.id);\n await linkToNodeModules(this.workspace, componentsIds);\n }\n await this.workspace.bitMap.write();\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 GeneralError(\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 });\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;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,SAAS,CAAC;EACrBC,WAAW,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;EAAG;EAE3C,MAAMC,SAAS,CAAC;IAAEC,IAAI;IAAEC;EAA2D,CAAC,EAA+B;IACjH,MAAMC,QAAQ,GAAG,MAAM,IAAI,CAACJ,SAAS,CAACI,QAAQ;IAC9C,MAAMC,UAAU,GAA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C5D,MAAMwD,SAAS,GAAG,IAAI1D,SAAS,CAACE,SAAS,CAAC;IAC1CuD,GAAG,CAACE,QAAQ,CAAC,KAAIC,kBAAO,EAACF,SAAS,CAAC,CAAC;IACpC,OAAOA,SAAS;EAClB;AACF;AAAC;AAAA,gCAhEY1D,SAAS,WAuDL,EAAE;AAAA,gCAvDNA,SAAS,kBAwDE,CAAC6D,gBAAS,EAAEC,oBAAe,CAAC;AAAA,gCAxDvC9D,SAAS,aAyDH+D,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAACjE,SAAS,CAAC;AAAC,eAEnBA,SAAS;AAAA"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/mover",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "homepage": "https://bit.dev/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.4"
9
+ "version": "0.0.5"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -15,9 +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.653",
18
+ "@teambit/cli": "0.0.654",
19
19
  "@teambit/bit-error": "0.0.402",
20
- "@teambit/workspace": "0.0.973"
20
+ "@teambit/workspace.modules.node-modules-linker": "0.0.1",
21
+ "@teambit/workspace": "0.0.974"
21
22
  },
22
23
  "devDependencies": {
23
24
  "@types/fs-extra": "9.0.7",
@@ -29,7 +30,7 @@
29
30
  "@types/testing-library__jest-dom": "5.9.5"
30
31
  },
31
32
  "peerDependencies": {
32
- "@teambit/legacy": "1.0.435",
33
+ "@teambit/legacy": "1.0.436",
33
34
  "react": "^16.8.0 || ^17.0.0",
34
35
  "react-dom": "^16.8.0 || ^17.0.0"
35
36
  },
Binary file