@teambit/mover 0.0.145 → 0.0.147
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/.bit-capsule-ready +0 -0
- package/dist/index.js.map +1 -1
- package/dist/move-cmd.js.map +1 -1
- package/dist/mover.aspect.js.map +1 -1
- package/dist/mover.main.runtime.js.map +1 -1
- package/package-tar/teambit-mover-0.0.147.tgz +0 -0
- package/package.json +6 -6
- package/package-tar/teambit-mover-0.0.145.tgz +0 -0
- /package/dist/{preview-1690168610397.js → preview-1690296596827.js} +0 -0
|
File without changes
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MoverAspect"],"sources":["index.ts"],"sourcesContent":["import { MoverAspect } from './mover.aspect';\n\nexport type { MoverMain } from './mover.main.runtime';\nexport default MoverAspect;\nexport { MoverAspect };\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;
|
|
1
|
+
{"version":3,"names":["_mover","data","require","_default","MoverAspect","exports","default"],"sources":["index.ts"],"sourcesContent":["import { MoverAspect } from './mover.aspect';\n\nexport type { MoverMain } from './mover.main.runtime';\nexport default MoverAspect;\nexport { MoverAspect };\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA6C,IAAAE,QAAA,GAG9BC,oBAAW;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
package/dist/move-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MoveCmd","constructor","mover","name","description","BASE_DOCS_DOMAIN","report","from","to","componentsChanged","movePaths","output","map","component","title","chalk","green","id","toString","files","changes","file","bold","join"],"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;EAAA;
|
|
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,OAAA,gBAnB7B,kDAAkD;IAAA,IAAAD,gBAAA,GAAAC,OAAA,uBAC3C,iDAAiD;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACrD,kCAAkC;IAAA,IAAAD,gBAAA,GAAAC,OAAA,qBAChC,CACV;MACEC,IAAI,EAAE,uBAAuB;MAC7BC,WAAW,EAAE;IACf,CAAC,EACD;MACED,IAAI,EAAE,mBAAmB;MACzBC,WAAW,EAAE;IACf,CAAC,CACF;IAAA,IAAAH,gBAAA,GAAAC,OAAA,iBACO,aAAa;IAAA,IAAAD,gBAAA,GAAAC,OAAA,+BACE,wDAAuDG,6BAAiB,8BAA6B;IAAA,IAAAJ,gBAAA,GAAAC,OAAA,iBACpH,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,kBACH,IAAI;IAAA,IAAAD,gBAAA,GAAAC,OAAA,mBACH,EAAE;EAE2B;EAEvC,MAAMI,MAAMA,CAAC,CAACC,IAAI,EAAEC,EAAE,CAAmB,EAAE;IACzC,MAAMC,iBAAqC,GAAG,MAAM,IAAI,CAACT,KAAK,CAACU,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,CAAA1B,OAAA,GAAAA,OAAA"}
|
package/dist/mover.aspect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MoverAspect","Aspect","create","id"],"sources":["mover.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const MoverAspect = Aspect.create({\n id: 'teambit.component/mover',\n});\n"],"mappings":";;;;;;AAAA;EAAA;
|
|
1
|
+
{"version":3,"names":["_harmony","data","require","MoverAspect","Aspect","create","id","exports"],"sources":["mover.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const MoverAspect = Aspect.create({\n id: 'teambit.component/mover',\n});\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,WAAW,GAAGC,iBAAM,CAACC,MAAM,CAAC;EACvCC,EAAE,EAAE;AACN,CAAC,CAAC;AAACC,OAAA,CAAAJ,WAAA,GAAAA,WAAA"}
|
|
@@ -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","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","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 { 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 = 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 linkToNodeModulesByIds(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, 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;EAAA;
|
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_bitError","_cli","_workspace","_ramda","_generalError","_utils","_moveSync","_workspaceModules","_removePath","_mover","_moveCmd","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","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","_defineProperty2","default","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 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 { 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 = 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 linkToNodeModulesByIds(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, 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;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e,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,EAAExD,SAAS,CAAuB,EAAE;IAC5D,MAAMyD,SAAS,GAAG,IAAI3D,SAAS,CAACE,SAAS,CAAC;IAC1CwD,GAAG,CAACE,QAAQ,CAAC,KAAIC,kBAAO,EAACF,SAAS,CAAC,CAAC;IACpC,OAAOA,SAAS;EAClB;AACF;AAACG,OAAA,CAAA9D,SAAA,GAAAA,SAAA;AAAA,IAAA+D,gBAAA,GAAAC,OAAA,EAhEYhE,SAAS,WAuDL,EAAE;AAAA,IAAA+D,gBAAA,GAAAC,OAAA,EAvDNhE,SAAS,kBAwDE,CAACiE,gBAAS,EAAEC,oBAAe,CAAC;AAAA,IAAAH,gBAAA,GAAAC,OAAA,EAxDvChE,SAAS,aAyDHmE,kBAAW;AAS9BC,oBAAW,CAACC,UAAU,CAACrE,SAAS,CAAC;AAAC,IAAAsE,QAAA,GAEnBtE,SAAS;AAAA8D,OAAA,CAAAE,OAAA,GAAAM,QAAA"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/mover",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.147",
|
|
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.
|
|
9
|
+
"version": "0.0.147"
|
|
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.
|
|
18
|
+
"@teambit/cli": "0.0.748",
|
|
19
19
|
"@teambit/bit-error": "0.0.402",
|
|
20
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
21
|
-
"@teambit/workspace": "0.0.
|
|
20
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.90",
|
|
21
|
+
"@teambit/workspace": "0.0.1116"
|
|
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.
|
|
33
|
+
"@teambit/legacy": "1.0.527",
|
|
34
34
|
"react": "^16.8.0 || ^17.0.0",
|
|
35
35
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
36
36
|
},
|
|
Binary file
|
|
File without changes
|