@teambit/mover 1.0.186 → 1.0.188
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/artifacts/__bit_junit.xml +1 -1
- package/dist/mover.main.runtime.d.ts +1 -0
- package/dist/mover.main.runtime.js +22 -8
- package/dist/mover.main.runtime.js.map +1 -1
- package/package.json +4 -4
- package/artifacts/schema.json +0 -954
- /package/dist/{preview-1709781440634.js → preview-1710040632859.js} +0 -0
@@ -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.
|
3
|
+
<testsuite name="teambit.component/mover@1.0.188" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -17,3 +17,4 @@ export declare class MoverMain {
|
|
17
17
|
static provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>;
|
18
18
|
}
|
19
19
|
export default MoverMain;
|
20
|
+
export declare function moveSync(src: PathOsBasedAbsolute, dest: PathOsBasedAbsolute, options?: Record<string, any>): void;
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = exports.MoverMain = void 0;
|
7
|
+
exports.moveSync = moveSync;
|
7
8
|
function _fsExtra() {
|
8
9
|
const data = _interopRequireDefault(require("fs-extra"));
|
9
10
|
_fsExtra = function () {
|
@@ -11,6 +12,13 @@ function _fsExtra() {
|
|
11
12
|
};
|
12
13
|
return data;
|
13
14
|
}
|
15
|
+
function _path() {
|
16
|
+
const data = require("path");
|
17
|
+
_path = function () {
|
18
|
+
return data;
|
19
|
+
};
|
20
|
+
return data;
|
21
|
+
}
|
14
22
|
function _bitError() {
|
15
23
|
const data = require("@teambit/bit-error");
|
16
24
|
_bitError = function () {
|
@@ -46,13 +54,6 @@ function _utils() {
|
|
46
54
|
};
|
47
55
|
return data;
|
48
56
|
}
|
49
|
-
function _moveSync() {
|
50
|
-
const data = _interopRequireDefault(require("@teambit/legacy/dist/utils/fs/move-sync"));
|
51
|
-
_moveSync = function () {
|
52
|
-
return data;
|
53
|
-
};
|
54
|
-
return data;
|
55
|
-
}
|
56
57
|
function _workspaceModules() {
|
57
58
|
const data = require("@teambit/workspace.modules.node-modules-linker");
|
58
59
|
_workspaceModules = function () {
|
@@ -115,7 +116,7 @@ to change the main-file, use "bit add <component-dir> --main <new-main-file>"`);
|
|
115
116
|
const changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative);
|
116
117
|
if (fromExists && !toExists) {
|
117
118
|
// user would like to physically move the file. Otherwise (!fromExists and toExists), user would like to only update bit.map
|
118
|
-
(
|
119
|
+
moveSync(fromAbsolute, toAbsolute);
|
119
120
|
}
|
120
121
|
if (!(0, _lodash().isEmpty)(changes)) {
|
121
122
|
const componentsIds = changes.map(c => c.id);
|
@@ -157,5 +158,18 @@ _defineProperty(MoverMain, "dependencies", [_cli().CLIAspect, _workspace().Works
|
|
157
158
|
_defineProperty(MoverMain, "runtime", _cli().MainRuntime);
|
158
159
|
_mover().MoverAspect.addRuntime(MoverMain);
|
159
160
|
var _default = exports.default = MoverMain;
|
161
|
+
function moveSync(src, dest, options) {
|
162
|
+
if (!(0, _path().isAbsolute)(src) || !(0, _path().isAbsolute)(dest)) {
|
163
|
+
throw new Error(`moveSync, src and dest must be absolute. Got src "${src}", dest "${dest}"`);
|
164
|
+
}
|
165
|
+
try {
|
166
|
+
_fsExtra().default.moveSync(src, dest, options);
|
167
|
+
} catch (err) {
|
168
|
+
if (err.message.includes('Cannot move') && err.message.includes('into itself')) {
|
169
|
+
throw new (_bitError().BitError)(`unable to move '${src}' into itself '${dest}'`);
|
170
|
+
}
|
171
|
+
throw err;
|
172
|
+
}
|
173
|
+
}
|
160
174
|
|
161
175
|
//# sourceMappingURL=mover.main.runtime.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_bitError","_cli","_lodash","_workspace","_utils","_moveSync","_workspaceModules","_removePath","_mover","_moveCmd","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","changes","bitMap","updatePathLocation","moveSync","isEmpty","componentsIds","map","c","id","linkToNodeModulesByIds","write","moveExistingComponent","component","oldPath","newPath","toString","componentMap","getComponent","oldPathRelative","newPathRelative","updateDirLocation","markAsChanged","dataToPersist","files","forEach","file","newRelative","relative","replace","updatePaths","newBase","removePath","RemovePath","writtenPath","provider","cli","moverMain","register","MoveCmd","exports","CLIAspect","WorkspaceAspect","MainRuntime","MoverAspect","addRuntime","_default"],"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 { isEmpty } from 'lodash';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\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 { linkToNodeModulesByIds } 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 = 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 BitError(`both paths from (${from}) and to (${to}) do not exist`);\n if (fromExists && !isDir(from)) {\n throw new BitError(`bit move supports moving directories only, not files.\nfiles withing a component dir are automatically tracked, no action is needed.\nto change the main-file, use \"bit add <component-dir> --main <new-main-file>\"`);\n }\n if (toExists && !isDir(to)) {\n throw new BitError(`unable to move because the destination path (${to}) is a file and not a directory`);\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 changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative);\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 (!isEmpty(changes)) {\n const componentsIds = changes.map((c) => c.id);\n await linkToNodeModulesByIds(this.workspace, componentsIds);\n }\n await this.workspace.bitMap.write('move');\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 BitError(\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, newBase: newPathRelative });\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,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,KAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,OAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAM,SAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;A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AAC,CAAC;IAC/BT,SAAS,CAACU,aAAa,CAACC,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAK;MAC9C;MACA,MAAMC,WAAW,GAAGD,IAAI,CAACE,QAAQ,CAACC,OAAO,CAACV,eAAe,EAAEC,eAAe,CAAC;MAC3EM,IAAI,CAACI,WAAW,CAAC;QAAEH,WAAW;QAAEI,OAAO,EAAEX;MAAgB,CAAC,CAAC;IAC7D,CAAC,CAAC;IACFP,SAAS,CAACU,aAAa,CAACS,UAAU,CAAC,KAAIC,qBAAU,EAACd,eAAe,CAAC,CAAC;IACnEN,SAAS,CAACqB,WAAW,GAAGd,eAAe;EACzC;EAMA,aAAae,QAAQA,CAAC,CAACC,GAAG,EAAEpD,SAAS,CAAuB,EAAE;IAC5D,MAAMqD,SAAS,GAAG,IAAIvD,SAAS,CAACE,SAAS,CAAC;IAC1CoD,GAAG,CAACE,QAAQ,CAAC,KAAIC,kBAAO,EAACF,SAAS,CAAC,CAAC;IACpC,OAAOA,SAAS;EAClB;AACF;AAACG,OAAA,CAAA1D,SAAA,GAAAA,SAAA;AAAApB,eAAA,CAlEYoB,SAAS,WAyDL,EAAE;AAAApB,eAAA,CAzDNoB,SAAS,kBA0DE,CAAC2D,gBAAS,EAAEC,4BAAe,CAAC;AAAAhF,eAAA,CA1DvCoB,SAAS,aA2DH6D,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAAC/D,SAAS,CAAC;AAAC,IAAAgE,QAAA,GAAAN,OAAA,CAAA/E,OAAA,GAEnBqB,SAAS"}
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_path","_bitError","_cli","_lodash","_workspace","_utils","_workspaceModules","_removePath","_mover","_moveCmd","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MoverMain","constructor","workspace","movePaths","from","to","consumer","fromExists","fs","existsSync","toExists","BitError","isDir","fromRelative","getPathRelativeToConsumer","toRelative","fromAbsolute","toAbsolutePath","toAbsolute","changes","bitMap","updatePathLocation","moveSync","isEmpty","componentsIds","map","c","id","linkToNodeModulesByIds","write","moveExistingComponent","component","oldPath","newPath","toString","componentMap","getComponent","oldPathRelative","newPathRelative","updateDirLocation","markAsChanged","dataToPersist","files","forEach","file","newRelative","relative","replace","updatePaths","newBase","removePath","RemovePath","writtenPath","provider","cli","moverMain","register","MoveCmd","exports","CLIAspect","WorkspaceAspect","MainRuntime","MoverAspect","addRuntime","_default","src","dest","options","isAbsolute","Error","err","message","includes"],"sources":["mover.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport { isAbsolute } from 'path';\nimport { BitError } from '@teambit/bit-error';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { isEmpty } from 'lodash';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { isDir } from '@teambit/legacy/dist/utils';\nimport { PathOsBasedAbsolute, PathOsBasedRelative } from '@teambit/legacy/dist/utils/path';\nimport { linkToNodeModulesByIds } 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 = 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 BitError(`both paths from (${from}) and to (${to}) do not exist`);\n if (fromExists && !isDir(from)) {\n throw new BitError(`bit move supports moving directories only, not files.\nfiles withing a component dir are automatically tracked, no action is needed.\nto change the main-file, use \"bit add <component-dir> --main <new-main-file>\"`);\n }\n if (toExists && !isDir(to)) {\n throw new BitError(`unable to move because the destination path (${to}) is a file and not a directory`);\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 changes = consumer.bitMap.updatePathLocation(fromRelative, toRelative);\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 (!isEmpty(changes)) {\n const componentsIds = changes.map((c) => c.id);\n await linkToNodeModulesByIds(this.workspace, componentsIds);\n }\n await this.workspace.bitMap.write('move');\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 BitError(\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, newBase: newPathRelative });\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\nexport function moveSync(src: PathOsBasedAbsolute, dest: PathOsBasedAbsolute, options?: Record<string, any>) {\n if (!isAbsolute(src) || !isAbsolute(dest)) {\n throw new Error(`moveSync, src and dest must be absolute. Got src \"${src}\", dest \"${dest}\"`);\n }\n try {\n fs.moveSync(src, dest, options);\n } catch (err: any) {\n if (err.message.includes('Cannot move') && err.message.includes('into itself')) {\n throw new BitError(`unable to move '${src}' into itself '${dest}'`);\n }\n throw err;\n }\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,MAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,UAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,KAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,IAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,UAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,OAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,MAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;E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1D,kBAAE,CAACc,QAAQ,CAAC2C,GAAG,EAAEC,IAAI,EAAEC,OAAO,CAAC;EACjC,CAAC,CAAC,OAAOG,GAAQ,EAAE;IACjB,IAAIA,GAAG,CAACC,OAAO,CAACC,QAAQ,CAAC,aAAa,CAAC,IAAIF,GAAG,CAACC,OAAO,CAACC,QAAQ,CAAC,aAAa,CAAC,EAAE;MAC9E,MAAM,KAAI7D,oBAAQ,EAAE,mBAAkBsD,GAAI,kBAAiBC,IAAK,GAAE,CAAC;IACrE;IACA,MAAMI,GAAG;EACX;AACF"}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/mover",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.188",
|
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.188"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -14,9 +14,9 @@
|
|
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.
|
17
|
+
"@teambit/cli": "0.0.855",
|
18
18
|
"@teambit/workspace.modules.node-modules-linker": "0.0.165",
|
19
|
-
"@teambit/workspace": "1.0.
|
19
|
+
"@teambit/workspace": "1.0.188"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
22
|
"@types/fs-extra": "9.0.7",
|
package/artifacts/schema.json
DELETED
@@ -1,954 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"__schema": "APISchema",
|
3
|
-
"location": {
|
4
|
-
"filePath": "index.ts",
|
5
|
-
"line": 1,
|
6
|
-
"character": 1
|
7
|
-
},
|
8
|
-
"module": {
|
9
|
-
"__schema": "ModuleSchema",
|
10
|
-
"location": {
|
11
|
-
"filePath": "index.ts",
|
12
|
-
"line": 1,
|
13
|
-
"character": 1
|
14
|
-
},
|
15
|
-
"exports": [
|
16
|
-
{
|
17
|
-
"__schema": "ClassSchema",
|
18
|
-
"location": {
|
19
|
-
"filePath": "mover.main.runtime.ts",
|
20
|
-
"line": 16,
|
21
|
-
"character": 1
|
22
|
-
},
|
23
|
-
"signature": "class MoverMain",
|
24
|
-
"name": "MoverMain",
|
25
|
-
"members": [
|
26
|
-
{
|
27
|
-
"__schema": "ConstructorSchema",
|
28
|
-
"location": {
|
29
|
-
"filePath": "mover.main.runtime.ts",
|
30
|
-
"line": 17,
|
31
|
-
"character": 3
|
32
|
-
},
|
33
|
-
"signature": "constructor MoverMain(workspace: Workspace): MoverMain",
|
34
|
-
"name": "constructor",
|
35
|
-
"params": [
|
36
|
-
{
|
37
|
-
"__schema": "ParameterSchema",
|
38
|
-
"location": {
|
39
|
-
"filePath": "mover.main.runtime.ts",
|
40
|
-
"line": 17,
|
41
|
-
"character": 15
|
42
|
-
},
|
43
|
-
"name": "workspace",
|
44
|
-
"type": {
|
45
|
-
"__schema": "TypeRefSchema",
|
46
|
-
"location": {
|
47
|
-
"filePath": "mover.main.runtime.ts",
|
48
|
-
"line": 17,
|
49
|
-
"character": 34
|
50
|
-
},
|
51
|
-
"name": "Workspace"
|
52
|
-
},
|
53
|
-
"isOptional": false,
|
54
|
-
"isSpread": false
|
55
|
-
}
|
56
|
-
],
|
57
|
-
"returnType": {
|
58
|
-
"__schema": "ThisTypeSchema",
|
59
|
-
"location": {
|
60
|
-
"filePath": "mover.main.runtime.ts",
|
61
|
-
"line": 16,
|
62
|
-
"character": 1
|
63
|
-
},
|
64
|
-
"name": "MoverMain"
|
65
|
-
},
|
66
|
-
"modifiers": []
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"__schema": "FunctionLikeSchema",
|
70
|
-
"location": {
|
71
|
-
"filePath": "mover.main.runtime.ts",
|
72
|
-
"line": 19,
|
73
|
-
"character": 3
|
74
|
-
},
|
75
|
-
"signature": "(method) MoverMain.movePaths({ from, to }: {\n from: PathOsBasedRelative;\n to: PathOsBasedRelative;\n}): Promise<PathChangeResult[]>",
|
76
|
-
"name": "movePaths",
|
77
|
-
"params": [
|
78
|
-
{
|
79
|
-
"__schema": "ParameterSchema",
|
80
|
-
"location": {
|
81
|
-
"filePath": "mover.main.runtime.ts",
|
82
|
-
"line": 19,
|
83
|
-
"character": 19
|
84
|
-
},
|
85
|
-
"name": "{ from, to }",
|
86
|
-
"type": {
|
87
|
-
"__schema": "TypeLiteralSchema",
|
88
|
-
"location": {
|
89
|
-
"filePath": "mover.main.runtime.ts",
|
90
|
-
"line": 19,
|
91
|
-
"character": 33
|
92
|
-
},
|
93
|
-
"members": [
|
94
|
-
{
|
95
|
-
"__schema": "VariableLikeSchema",
|
96
|
-
"location": {
|
97
|
-
"filePath": "mover.main.runtime.ts",
|
98
|
-
"line": 19,
|
99
|
-
"character": 35
|
100
|
-
},
|
101
|
-
"signature": "(property) from: string",
|
102
|
-
"name": "from",
|
103
|
-
"type": {
|
104
|
-
"__schema": "TypeRefSchema",
|
105
|
-
"location": {
|
106
|
-
"filePath": "mover.main.runtime.ts",
|
107
|
-
"line": 19,
|
108
|
-
"character": 41
|
109
|
-
},
|
110
|
-
"name": "PathOsBasedRelative"
|
111
|
-
},
|
112
|
-
"isOptional": false
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"__schema": "VariableLikeSchema",
|
116
|
-
"location": {
|
117
|
-
"filePath": "mover.main.runtime.ts",
|
118
|
-
"line": 19,
|
119
|
-
"character": 62
|
120
|
-
},
|
121
|
-
"signature": "(property) to: string",
|
122
|
-
"name": "to",
|
123
|
-
"type": {
|
124
|
-
"__schema": "TypeRefSchema",
|
125
|
-
"location": {
|
126
|
-
"filePath": "mover.main.runtime.ts",
|
127
|
-
"line": 19,
|
128
|
-
"character": 66
|
129
|
-
},
|
130
|
-
"name": "PathOsBasedRelative"
|
131
|
-
},
|
132
|
-
"isOptional": false
|
133
|
-
}
|
134
|
-
]
|
135
|
-
},
|
136
|
-
"isOptional": false,
|
137
|
-
"objectBindingNodes": [
|
138
|
-
{
|
139
|
-
"__schema": "VariableLikeSchema",
|
140
|
-
"location": {
|
141
|
-
"filePath": "mover.main.runtime.ts",
|
142
|
-
"line": 19,
|
143
|
-
"character": 35
|
144
|
-
},
|
145
|
-
"signature": "(property) from: string",
|
146
|
-
"name": "from",
|
147
|
-
"type": {
|
148
|
-
"__schema": "TypeRefSchema",
|
149
|
-
"location": {
|
150
|
-
"filePath": "mover.main.runtime.ts",
|
151
|
-
"line": 19,
|
152
|
-
"character": 41
|
153
|
-
},
|
154
|
-
"name": "PathOsBasedRelative"
|
155
|
-
},
|
156
|
-
"isOptional": false
|
157
|
-
},
|
158
|
-
{
|
159
|
-
"__schema": "VariableLikeSchema",
|
160
|
-
"location": {
|
161
|
-
"filePath": "mover.main.runtime.ts",
|
162
|
-
"line": 19,
|
163
|
-
"character": 62
|
164
|
-
},
|
165
|
-
"signature": "(property) to: string",
|
166
|
-
"name": "to",
|
167
|
-
"type": {
|
168
|
-
"__schema": "TypeRefSchema",
|
169
|
-
"location": {
|
170
|
-
"filePath": "mover.main.runtime.ts",
|
171
|
-
"line": 19,
|
172
|
-
"character": 66
|
173
|
-
},
|
174
|
-
"name": "PathOsBasedRelative"
|
175
|
-
},
|
176
|
-
"isOptional": false
|
177
|
-
}
|
178
|
-
],
|
179
|
-
"isSpread": false
|
180
|
-
}
|
181
|
-
],
|
182
|
-
"returnType": {
|
183
|
-
"__schema": "TypeRefSchema",
|
184
|
-
"location": {
|
185
|
-
"filePath": "mover.main.runtime.ts",
|
186
|
-
"line": 19,
|
187
|
-
"character": 90
|
188
|
-
},
|
189
|
-
"name": "Promise",
|
190
|
-
"typeArgs": [
|
191
|
-
{
|
192
|
-
"__schema": "TypeArraySchema",
|
193
|
-
"location": {
|
194
|
-
"filePath": "mover.main.runtime.ts",
|
195
|
-
"line": 19,
|
196
|
-
"character": 98
|
197
|
-
},
|
198
|
-
"type": {
|
199
|
-
"__schema": "TypeRefSchema",
|
200
|
-
"location": {
|
201
|
-
"filePath": "mover.main.runtime.ts",
|
202
|
-
"line": 19,
|
203
|
-
"character": 98
|
204
|
-
},
|
205
|
-
"name": "PathChangeResult"
|
206
|
-
}
|
207
|
-
}
|
208
|
-
]
|
209
|
-
},
|
210
|
-
"modifiers": [
|
211
|
-
"async"
|
212
|
-
]
|
213
|
-
},
|
214
|
-
{
|
215
|
-
"__schema": "FunctionLikeSchema",
|
216
|
-
"location": {
|
217
|
-
"filePath": "mover.main.runtime.ts",
|
218
|
-
"line": 52,
|
219
|
-
"character": 3
|
220
|
-
},
|
221
|
-
"signature": "(method) MoverMain.moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void",
|
222
|
-
"name": "moveExistingComponent",
|
223
|
-
"params": [
|
224
|
-
{
|
225
|
-
"__schema": "ParameterSchema",
|
226
|
-
"location": {
|
227
|
-
"filePath": "mover.main.runtime.ts",
|
228
|
-
"line": 52,
|
229
|
-
"character": 25
|
230
|
-
},
|
231
|
-
"name": "component",
|
232
|
-
"type": {
|
233
|
-
"__schema": "TypeRefSchema",
|
234
|
-
"location": {
|
235
|
-
"filePath": "mover.main.runtime.ts",
|
236
|
-
"line": 52,
|
237
|
-
"character": 36
|
238
|
-
},
|
239
|
-
"name": "Component"
|
240
|
-
},
|
241
|
-
"isOptional": false,
|
242
|
-
"isSpread": false
|
243
|
-
},
|
244
|
-
{
|
245
|
-
"__schema": "ParameterSchema",
|
246
|
-
"location": {
|
247
|
-
"filePath": "mover.main.runtime.ts",
|
248
|
-
"line": 52,
|
249
|
-
"character": 47
|
250
|
-
},
|
251
|
-
"name": "oldPath",
|
252
|
-
"type": {
|
253
|
-
"__schema": "TypeRefSchema",
|
254
|
-
"location": {
|
255
|
-
"filePath": "mover.main.runtime.ts",
|
256
|
-
"line": 52,
|
257
|
-
"character": 56
|
258
|
-
},
|
259
|
-
"name": "PathOsBasedAbsolute"
|
260
|
-
},
|
261
|
-
"isOptional": false,
|
262
|
-
"isSpread": false
|
263
|
-
},
|
264
|
-
{
|
265
|
-
"__schema": "ParameterSchema",
|
266
|
-
"location": {
|
267
|
-
"filePath": "mover.main.runtime.ts",
|
268
|
-
"line": 52,
|
269
|
-
"character": 77
|
270
|
-
},
|
271
|
-
"name": "newPath",
|
272
|
-
"type": {
|
273
|
-
"__schema": "TypeRefSchema",
|
274
|
-
"location": {
|
275
|
-
"filePath": "mover.main.runtime.ts",
|
276
|
-
"line": 52,
|
277
|
-
"character": 86
|
278
|
-
},
|
279
|
-
"name": "PathOsBasedAbsolute"
|
280
|
-
},
|
281
|
-
"isOptional": false,
|
282
|
-
"isSpread": false
|
283
|
-
}
|
284
|
-
],
|
285
|
-
"returnType": {
|
286
|
-
"__schema": "InferenceTypeSchema",
|
287
|
-
"location": {
|
288
|
-
"filePath": "mover.main.runtime.ts",
|
289
|
-
"line": 52,
|
290
|
-
"character": 3
|
291
|
-
},
|
292
|
-
"type": "void"
|
293
|
-
},
|
294
|
-
"modifiers": []
|
295
|
-
},
|
296
|
-
{
|
297
|
-
"__schema": "VariableLikeSchema",
|
298
|
-
"location": {
|
299
|
-
"filePath": "mover.main.runtime.ts",
|
300
|
-
"line": 73,
|
301
|
-
"character": 3
|
302
|
-
},
|
303
|
-
"signature": "(property) MoverMain.slots: never[]",
|
304
|
-
"name": "slots",
|
305
|
-
"type": {
|
306
|
-
"__schema": "InferenceTypeSchema",
|
307
|
-
"location": {
|
308
|
-
"filePath": "mover.main.runtime.ts",
|
309
|
-
"line": 73,
|
310
|
-
"character": 3
|
311
|
-
},
|
312
|
-
"type": "never[]"
|
313
|
-
},
|
314
|
-
"isOptional": true,
|
315
|
-
"defaultValue": "[]"
|
316
|
-
},
|
317
|
-
{
|
318
|
-
"__schema": "VariableLikeSchema",
|
319
|
-
"location": {
|
320
|
-
"filePath": "mover.main.runtime.ts",
|
321
|
-
"line": 74,
|
322
|
-
"character": 3
|
323
|
-
},
|
324
|
-
"signature": "(property) MoverMain.dependencies: Aspect[]",
|
325
|
-
"name": "dependencies",
|
326
|
-
"type": {
|
327
|
-
"__schema": "InferenceTypeSchema",
|
328
|
-
"location": {
|
329
|
-
"filePath": "mover.main.runtime.ts",
|
330
|
-
"line": 74,
|
331
|
-
"character": 3
|
332
|
-
},
|
333
|
-
"type": "Aspect[]"
|
334
|
-
},
|
335
|
-
"isOptional": true,
|
336
|
-
"defaultValue": "[CLIAspect, WorkspaceAspect]"
|
337
|
-
},
|
338
|
-
{
|
339
|
-
"__schema": "VariableLikeSchema",
|
340
|
-
"location": {
|
341
|
-
"filePath": "mover.main.runtime.ts",
|
342
|
-
"line": 75,
|
343
|
-
"character": 3
|
344
|
-
},
|
345
|
-
"signature": "(property) MoverMain.runtime: RuntimeDefinition",
|
346
|
-
"name": "runtime",
|
347
|
-
"type": {
|
348
|
-
"__schema": "InferenceTypeSchema",
|
349
|
-
"location": {
|
350
|
-
"filePath": "mover.main.runtime.ts",
|
351
|
-
"line": 75,
|
352
|
-
"character": 3
|
353
|
-
},
|
354
|
-
"type": "RuntimeDefinition"
|
355
|
-
},
|
356
|
-
"isOptional": true,
|
357
|
-
"defaultValue": "MainRuntime"
|
358
|
-
},
|
359
|
-
{
|
360
|
-
"__schema": "FunctionLikeSchema",
|
361
|
-
"location": {
|
362
|
-
"filePath": "mover.main.runtime.ts",
|
363
|
-
"line": 77,
|
364
|
-
"character": 3
|
365
|
-
},
|
366
|
-
"signature": "(method) MoverMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>",
|
367
|
-
"name": "provider",
|
368
|
-
"params": [
|
369
|
-
{
|
370
|
-
"__schema": "ParameterSchema",
|
371
|
-
"location": {
|
372
|
-
"filePath": "mover.main.runtime.ts",
|
373
|
-
"line": 77,
|
374
|
-
"character": 25
|
375
|
-
},
|
376
|
-
"name": "[ cli, workspace ]",
|
377
|
-
"type": {
|
378
|
-
"__schema": "TupleTypeSchema",
|
379
|
-
"location": {
|
380
|
-
"filePath": "mover.main.runtime.ts",
|
381
|
-
"line": 77,
|
382
|
-
"character": 43
|
383
|
-
},
|
384
|
-
"elements": [
|
385
|
-
{
|
386
|
-
"__schema": "TypeRefSchema",
|
387
|
-
"location": {
|
388
|
-
"filePath": "mover.main.runtime.ts",
|
389
|
-
"line": 77,
|
390
|
-
"character": 44
|
391
|
-
},
|
392
|
-
"name": "CLIMain"
|
393
|
-
},
|
394
|
-
{
|
395
|
-
"__schema": "TypeRefSchema",
|
396
|
-
"location": {
|
397
|
-
"filePath": "mover.main.runtime.ts",
|
398
|
-
"line": 77,
|
399
|
-
"character": 53
|
400
|
-
},
|
401
|
-
"name": "Workspace"
|
402
|
-
}
|
403
|
-
]
|
404
|
-
},
|
405
|
-
"isOptional": false,
|
406
|
-
"isSpread": false
|
407
|
-
}
|
408
|
-
],
|
409
|
-
"returnType": {
|
410
|
-
"__schema": "InferenceTypeSchema",
|
411
|
-
"location": {
|
412
|
-
"filePath": "mover.main.runtime.ts",
|
413
|
-
"line": 77,
|
414
|
-
"character": 3
|
415
|
-
},
|
416
|
-
"type": "Promise<MoverMain>"
|
417
|
-
},
|
418
|
-
"modifiers": [
|
419
|
-
"static",
|
420
|
-
"async"
|
421
|
-
]
|
422
|
-
}
|
423
|
-
],
|
424
|
-
"extendsNodes": [],
|
425
|
-
"implementNodes": []
|
426
|
-
},
|
427
|
-
{
|
428
|
-
"__schema": "UnImplementedSchema",
|
429
|
-
"location": {
|
430
|
-
"filePath": "index.ts",
|
431
|
-
"line": 4,
|
432
|
-
"character": 16
|
433
|
-
},
|
434
|
-
"name": "MoverAspect",
|
435
|
-
"type": "Identifier"
|
436
|
-
},
|
437
|
-
{
|
438
|
-
"__schema": "VariableLikeSchema",
|
439
|
-
"location": {
|
440
|
-
"filePath": "mover.aspect.ts",
|
441
|
-
"line": 3,
|
442
|
-
"character": 14
|
443
|
-
},
|
444
|
-
"signature": "const MoverAspect: Aspect",
|
445
|
-
"name": "MoverAspect",
|
446
|
-
"type": {
|
447
|
-
"__schema": "TypeRefSchema",
|
448
|
-
"location": {
|
449
|
-
"filePath": "mover.aspect.ts",
|
450
|
-
"line": 3,
|
451
|
-
"character": 14
|
452
|
-
},
|
453
|
-
"name": "Aspect",
|
454
|
-
"componentId": {
|
455
|
-
"scope": "teambit.harmony",
|
456
|
-
"name": "harmony",
|
457
|
-
"version": "0.4.6"
|
458
|
-
}
|
459
|
-
},
|
460
|
-
"isOptional": false,
|
461
|
-
"defaultValue": "Aspect.create({\n id: 'teambit.component/mover',\n})"
|
462
|
-
}
|
463
|
-
],
|
464
|
-
"internals": []
|
465
|
-
},
|
466
|
-
"internals": [
|
467
|
-
{
|
468
|
-
"__schema": "ModuleSchema",
|
469
|
-
"location": {
|
470
|
-
"filePath": "mover.main.runtime.ts",
|
471
|
-
"line": 1,
|
472
|
-
"character": 1
|
473
|
-
},
|
474
|
-
"exports": [
|
475
|
-
{
|
476
|
-
"__schema": "ClassSchema",
|
477
|
-
"location": {
|
478
|
-
"filePath": "mover.main.runtime.ts",
|
479
|
-
"line": 16,
|
480
|
-
"character": 1
|
481
|
-
},
|
482
|
-
"signature": "class MoverMain",
|
483
|
-
"name": "MoverMain",
|
484
|
-
"members": [
|
485
|
-
{
|
486
|
-
"__schema": "ConstructorSchema",
|
487
|
-
"location": {
|
488
|
-
"filePath": "mover.main.runtime.ts",
|
489
|
-
"line": 17,
|
490
|
-
"character": 3
|
491
|
-
},
|
492
|
-
"signature": "constructor MoverMain(workspace: Workspace): MoverMain",
|
493
|
-
"name": "constructor",
|
494
|
-
"params": [
|
495
|
-
{
|
496
|
-
"__schema": "ParameterSchema",
|
497
|
-
"location": {
|
498
|
-
"filePath": "mover.main.runtime.ts",
|
499
|
-
"line": 17,
|
500
|
-
"character": 15
|
501
|
-
},
|
502
|
-
"name": "workspace",
|
503
|
-
"type": {
|
504
|
-
"__schema": "TypeRefSchema",
|
505
|
-
"location": {
|
506
|
-
"filePath": "mover.main.runtime.ts",
|
507
|
-
"line": 17,
|
508
|
-
"character": 34
|
509
|
-
},
|
510
|
-
"name": "Workspace"
|
511
|
-
},
|
512
|
-
"isOptional": false,
|
513
|
-
"isSpread": false
|
514
|
-
}
|
515
|
-
],
|
516
|
-
"returnType": {
|
517
|
-
"__schema": "ThisTypeSchema",
|
518
|
-
"location": {
|
519
|
-
"filePath": "mover.main.runtime.ts",
|
520
|
-
"line": 16,
|
521
|
-
"character": 1
|
522
|
-
},
|
523
|
-
"name": "MoverMain"
|
524
|
-
},
|
525
|
-
"modifiers": []
|
526
|
-
},
|
527
|
-
{
|
528
|
-
"__schema": "FunctionLikeSchema",
|
529
|
-
"location": {
|
530
|
-
"filePath": "mover.main.runtime.ts",
|
531
|
-
"line": 19,
|
532
|
-
"character": 3
|
533
|
-
},
|
534
|
-
"signature": "(method) MoverMain.movePaths({ from, to }: {\n from: PathOsBasedRelative;\n to: PathOsBasedRelative;\n}): Promise<PathChangeResult[]>",
|
535
|
-
"name": "movePaths",
|
536
|
-
"params": [
|
537
|
-
{
|
538
|
-
"__schema": "ParameterSchema",
|
539
|
-
"location": {
|
540
|
-
"filePath": "mover.main.runtime.ts",
|
541
|
-
"line": 19,
|
542
|
-
"character": 19
|
543
|
-
},
|
544
|
-
"name": "{ from, to }",
|
545
|
-
"type": {
|
546
|
-
"__schema": "TypeLiteralSchema",
|
547
|
-
"location": {
|
548
|
-
"filePath": "mover.main.runtime.ts",
|
549
|
-
"line": 19,
|
550
|
-
"character": 33
|
551
|
-
},
|
552
|
-
"members": [
|
553
|
-
{
|
554
|
-
"__schema": "VariableLikeSchema",
|
555
|
-
"location": {
|
556
|
-
"filePath": "mover.main.runtime.ts",
|
557
|
-
"line": 19,
|
558
|
-
"character": 35
|
559
|
-
},
|
560
|
-
"signature": "(property) from: string",
|
561
|
-
"name": "from",
|
562
|
-
"type": {
|
563
|
-
"__schema": "TypeRefSchema",
|
564
|
-
"location": {
|
565
|
-
"filePath": "mover.main.runtime.ts",
|
566
|
-
"line": 19,
|
567
|
-
"character": 41
|
568
|
-
},
|
569
|
-
"name": "PathOsBasedRelative"
|
570
|
-
},
|
571
|
-
"isOptional": false
|
572
|
-
},
|
573
|
-
{
|
574
|
-
"__schema": "VariableLikeSchema",
|
575
|
-
"location": {
|
576
|
-
"filePath": "mover.main.runtime.ts",
|
577
|
-
"line": 19,
|
578
|
-
"character": 62
|
579
|
-
},
|
580
|
-
"signature": "(property) to: string",
|
581
|
-
"name": "to",
|
582
|
-
"type": {
|
583
|
-
"__schema": "TypeRefSchema",
|
584
|
-
"location": {
|
585
|
-
"filePath": "mover.main.runtime.ts",
|
586
|
-
"line": 19,
|
587
|
-
"character": 66
|
588
|
-
},
|
589
|
-
"name": "PathOsBasedRelative"
|
590
|
-
},
|
591
|
-
"isOptional": false
|
592
|
-
}
|
593
|
-
]
|
594
|
-
},
|
595
|
-
"isOptional": false,
|
596
|
-
"objectBindingNodes": [
|
597
|
-
{
|
598
|
-
"__schema": "VariableLikeSchema",
|
599
|
-
"location": {
|
600
|
-
"filePath": "mover.main.runtime.ts",
|
601
|
-
"line": 19,
|
602
|
-
"character": 35
|
603
|
-
},
|
604
|
-
"signature": "(property) from: string",
|
605
|
-
"name": "from",
|
606
|
-
"type": {
|
607
|
-
"__schema": "TypeRefSchema",
|
608
|
-
"location": {
|
609
|
-
"filePath": "mover.main.runtime.ts",
|
610
|
-
"line": 19,
|
611
|
-
"character": 41
|
612
|
-
},
|
613
|
-
"name": "PathOsBasedRelative"
|
614
|
-
},
|
615
|
-
"isOptional": false
|
616
|
-
},
|
617
|
-
{
|
618
|
-
"__schema": "VariableLikeSchema",
|
619
|
-
"location": {
|
620
|
-
"filePath": "mover.main.runtime.ts",
|
621
|
-
"line": 19,
|
622
|
-
"character": 62
|
623
|
-
},
|
624
|
-
"signature": "(property) to: string",
|
625
|
-
"name": "to",
|
626
|
-
"type": {
|
627
|
-
"__schema": "TypeRefSchema",
|
628
|
-
"location": {
|
629
|
-
"filePath": "mover.main.runtime.ts",
|
630
|
-
"line": 19,
|
631
|
-
"character": 66
|
632
|
-
},
|
633
|
-
"name": "PathOsBasedRelative"
|
634
|
-
},
|
635
|
-
"isOptional": false
|
636
|
-
}
|
637
|
-
],
|
638
|
-
"isSpread": false
|
639
|
-
}
|
640
|
-
],
|
641
|
-
"returnType": {
|
642
|
-
"__schema": "TypeRefSchema",
|
643
|
-
"location": {
|
644
|
-
"filePath": "mover.main.runtime.ts",
|
645
|
-
"line": 19,
|
646
|
-
"character": 90
|
647
|
-
},
|
648
|
-
"name": "Promise",
|
649
|
-
"typeArgs": [
|
650
|
-
{
|
651
|
-
"__schema": "TypeArraySchema",
|
652
|
-
"location": {
|
653
|
-
"filePath": "mover.main.runtime.ts",
|
654
|
-
"line": 19,
|
655
|
-
"character": 98
|
656
|
-
},
|
657
|
-
"type": {
|
658
|
-
"__schema": "TypeRefSchema",
|
659
|
-
"location": {
|
660
|
-
"filePath": "mover.main.runtime.ts",
|
661
|
-
"line": 19,
|
662
|
-
"character": 98
|
663
|
-
},
|
664
|
-
"name": "PathChangeResult"
|
665
|
-
}
|
666
|
-
}
|
667
|
-
]
|
668
|
-
},
|
669
|
-
"modifiers": [
|
670
|
-
"async"
|
671
|
-
]
|
672
|
-
},
|
673
|
-
{
|
674
|
-
"__schema": "FunctionLikeSchema",
|
675
|
-
"location": {
|
676
|
-
"filePath": "mover.main.runtime.ts",
|
677
|
-
"line": 52,
|
678
|
-
"character": 3
|
679
|
-
},
|
680
|
-
"signature": "(method) MoverMain.moveExistingComponent(component: Component, oldPath: PathOsBasedAbsolute, newPath: PathOsBasedAbsolute): void",
|
681
|
-
"name": "moveExistingComponent",
|
682
|
-
"params": [
|
683
|
-
{
|
684
|
-
"__schema": "ParameterSchema",
|
685
|
-
"location": {
|
686
|
-
"filePath": "mover.main.runtime.ts",
|
687
|
-
"line": 52,
|
688
|
-
"character": 25
|
689
|
-
},
|
690
|
-
"name": "component",
|
691
|
-
"type": {
|
692
|
-
"__schema": "TypeRefSchema",
|
693
|
-
"location": {
|
694
|
-
"filePath": "mover.main.runtime.ts",
|
695
|
-
"line": 52,
|
696
|
-
"character": 36
|
697
|
-
},
|
698
|
-
"name": "Component"
|
699
|
-
},
|
700
|
-
"isOptional": false,
|
701
|
-
"isSpread": false
|
702
|
-
},
|
703
|
-
{
|
704
|
-
"__schema": "ParameterSchema",
|
705
|
-
"location": {
|
706
|
-
"filePath": "mover.main.runtime.ts",
|
707
|
-
"line": 52,
|
708
|
-
"character": 47
|
709
|
-
},
|
710
|
-
"name": "oldPath",
|
711
|
-
"type": {
|
712
|
-
"__schema": "TypeRefSchema",
|
713
|
-
"location": {
|
714
|
-
"filePath": "mover.main.runtime.ts",
|
715
|
-
"line": 52,
|
716
|
-
"character": 56
|
717
|
-
},
|
718
|
-
"name": "PathOsBasedAbsolute"
|
719
|
-
},
|
720
|
-
"isOptional": false,
|
721
|
-
"isSpread": false
|
722
|
-
},
|
723
|
-
{
|
724
|
-
"__schema": "ParameterSchema",
|
725
|
-
"location": {
|
726
|
-
"filePath": "mover.main.runtime.ts",
|
727
|
-
"line": 52,
|
728
|
-
"character": 77
|
729
|
-
},
|
730
|
-
"name": "newPath",
|
731
|
-
"type": {
|
732
|
-
"__schema": "TypeRefSchema",
|
733
|
-
"location": {
|
734
|
-
"filePath": "mover.main.runtime.ts",
|
735
|
-
"line": 52,
|
736
|
-
"character": 86
|
737
|
-
},
|
738
|
-
"name": "PathOsBasedAbsolute"
|
739
|
-
},
|
740
|
-
"isOptional": false,
|
741
|
-
"isSpread": false
|
742
|
-
}
|
743
|
-
],
|
744
|
-
"returnType": {
|
745
|
-
"__schema": "InferenceTypeSchema",
|
746
|
-
"location": {
|
747
|
-
"filePath": "mover.main.runtime.ts",
|
748
|
-
"line": 52,
|
749
|
-
"character": 3
|
750
|
-
},
|
751
|
-
"type": "void"
|
752
|
-
},
|
753
|
-
"modifiers": []
|
754
|
-
},
|
755
|
-
{
|
756
|
-
"__schema": "VariableLikeSchema",
|
757
|
-
"location": {
|
758
|
-
"filePath": "mover.main.runtime.ts",
|
759
|
-
"line": 73,
|
760
|
-
"character": 3
|
761
|
-
},
|
762
|
-
"signature": "(property) MoverMain.slots: never[]",
|
763
|
-
"name": "slots",
|
764
|
-
"type": {
|
765
|
-
"__schema": "InferenceTypeSchema",
|
766
|
-
"location": {
|
767
|
-
"filePath": "mover.main.runtime.ts",
|
768
|
-
"line": 73,
|
769
|
-
"character": 3
|
770
|
-
},
|
771
|
-
"type": "never[]"
|
772
|
-
},
|
773
|
-
"isOptional": true,
|
774
|
-
"defaultValue": "[]"
|
775
|
-
},
|
776
|
-
{
|
777
|
-
"__schema": "VariableLikeSchema",
|
778
|
-
"location": {
|
779
|
-
"filePath": "mover.main.runtime.ts",
|
780
|
-
"line": 74,
|
781
|
-
"character": 3
|
782
|
-
},
|
783
|
-
"signature": "(property) MoverMain.dependencies: Aspect[]",
|
784
|
-
"name": "dependencies",
|
785
|
-
"type": {
|
786
|
-
"__schema": "InferenceTypeSchema",
|
787
|
-
"location": {
|
788
|
-
"filePath": "mover.main.runtime.ts",
|
789
|
-
"line": 74,
|
790
|
-
"character": 3
|
791
|
-
},
|
792
|
-
"type": "Aspect[]"
|
793
|
-
},
|
794
|
-
"isOptional": true,
|
795
|
-
"defaultValue": "[CLIAspect, WorkspaceAspect]"
|
796
|
-
},
|
797
|
-
{
|
798
|
-
"__schema": "VariableLikeSchema",
|
799
|
-
"location": {
|
800
|
-
"filePath": "mover.main.runtime.ts",
|
801
|
-
"line": 75,
|
802
|
-
"character": 3
|
803
|
-
},
|
804
|
-
"signature": "(property) MoverMain.runtime: RuntimeDefinition",
|
805
|
-
"name": "runtime",
|
806
|
-
"type": {
|
807
|
-
"__schema": "InferenceTypeSchema",
|
808
|
-
"location": {
|
809
|
-
"filePath": "mover.main.runtime.ts",
|
810
|
-
"line": 75,
|
811
|
-
"character": 3
|
812
|
-
},
|
813
|
-
"type": "RuntimeDefinition"
|
814
|
-
},
|
815
|
-
"isOptional": true,
|
816
|
-
"defaultValue": "MainRuntime"
|
817
|
-
},
|
818
|
-
{
|
819
|
-
"__schema": "FunctionLikeSchema",
|
820
|
-
"location": {
|
821
|
-
"filePath": "mover.main.runtime.ts",
|
822
|
-
"line": 77,
|
823
|
-
"character": 3
|
824
|
-
},
|
825
|
-
"signature": "(method) MoverMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<MoverMain>",
|
826
|
-
"name": "provider",
|
827
|
-
"params": [
|
828
|
-
{
|
829
|
-
"__schema": "ParameterSchema",
|
830
|
-
"location": {
|
831
|
-
"filePath": "mover.main.runtime.ts",
|
832
|
-
"line": 77,
|
833
|
-
"character": 25
|
834
|
-
},
|
835
|
-
"name": "[ cli, workspace ]",
|
836
|
-
"type": {
|
837
|
-
"__schema": "TupleTypeSchema",
|
838
|
-
"location": {
|
839
|
-
"filePath": "mover.main.runtime.ts",
|
840
|
-
"line": 77,
|
841
|
-
"character": 43
|
842
|
-
},
|
843
|
-
"elements": [
|
844
|
-
{
|
845
|
-
"__schema": "TypeRefSchema",
|
846
|
-
"location": {
|
847
|
-
"filePath": "mover.main.runtime.ts",
|
848
|
-
"line": 77,
|
849
|
-
"character": 44
|
850
|
-
},
|
851
|
-
"name": "CLIMain"
|
852
|
-
},
|
853
|
-
{
|
854
|
-
"__schema": "TypeRefSchema",
|
855
|
-
"location": {
|
856
|
-
"filePath": "mover.main.runtime.ts",
|
857
|
-
"line": 77,
|
858
|
-
"character": 53
|
859
|
-
},
|
860
|
-
"name": "Workspace"
|
861
|
-
}
|
862
|
-
]
|
863
|
-
},
|
864
|
-
"isOptional": false,
|
865
|
-
"isSpread": false
|
866
|
-
}
|
867
|
-
],
|
868
|
-
"returnType": {
|
869
|
-
"__schema": "InferenceTypeSchema",
|
870
|
-
"location": {
|
871
|
-
"filePath": "mover.main.runtime.ts",
|
872
|
-
"line": 77,
|
873
|
-
"character": 3
|
874
|
-
},
|
875
|
-
"type": "Promise<MoverMain>"
|
876
|
-
},
|
877
|
-
"modifiers": [
|
878
|
-
"static",
|
879
|
-
"async"
|
880
|
-
]
|
881
|
-
}
|
882
|
-
],
|
883
|
-
"extendsNodes": [],
|
884
|
-
"implementNodes": []
|
885
|
-
},
|
886
|
-
{
|
887
|
-
"__schema": "UnImplementedSchema",
|
888
|
-
"location": {
|
889
|
-
"filePath": "mover.main.runtime.ts",
|
890
|
-
"line": 86,
|
891
|
-
"character": 16
|
892
|
-
},
|
893
|
-
"name": "MoverMain",
|
894
|
-
"type": "Identifier"
|
895
|
-
}
|
896
|
-
],
|
897
|
-
"internals": [
|
898
|
-
{
|
899
|
-
"__schema": "UnImplementedSchema",
|
900
|
-
"location": {
|
901
|
-
"filePath": "mover.main.runtime.ts",
|
902
|
-
"line": 84,
|
903
|
-
"character": 1
|
904
|
-
},
|
905
|
-
"name": "MoverAspect.addRuntime(MoverMain);",
|
906
|
-
"type": "ExpressionStatement"
|
907
|
-
}
|
908
|
-
]
|
909
|
-
},
|
910
|
-
{
|
911
|
-
"__schema": "ModuleSchema",
|
912
|
-
"location": {
|
913
|
-
"filePath": "mover.aspect.ts",
|
914
|
-
"line": 1,
|
915
|
-
"character": 1
|
916
|
-
},
|
917
|
-
"exports": [
|
918
|
-
{
|
919
|
-
"__schema": "VariableLikeSchema",
|
920
|
-
"location": {
|
921
|
-
"filePath": "mover.aspect.ts",
|
922
|
-
"line": 3,
|
923
|
-
"character": 14
|
924
|
-
},
|
925
|
-
"signature": "const MoverAspect: Aspect",
|
926
|
-
"name": "MoverAspect",
|
927
|
-
"type": {
|
928
|
-
"__schema": "TypeRefSchema",
|
929
|
-
"location": {
|
930
|
-
"filePath": "mover.aspect.ts",
|
931
|
-
"line": 3,
|
932
|
-
"character": 14
|
933
|
-
},
|
934
|
-
"name": "Aspect",
|
935
|
-
"componentId": {
|
936
|
-
"scope": "teambit.harmony",
|
937
|
-
"name": "harmony",
|
938
|
-
"version": "0.4.6"
|
939
|
-
}
|
940
|
-
},
|
941
|
-
"isOptional": false,
|
942
|
-
"defaultValue": "Aspect.create({\n id: 'teambit.component/mover',\n})"
|
943
|
-
}
|
944
|
-
],
|
945
|
-
"internals": []
|
946
|
-
}
|
947
|
-
],
|
948
|
-
"componentId": {
|
949
|
-
"scope": "teambit.component",
|
950
|
-
"name": "mover",
|
951
|
-
"version": "1.0.186"
|
952
|
-
},
|
953
|
-
"taggedModuleExports": []
|
954
|
-
}
|
File without changes
|