Skip to content

Commit

Permalink
removed unused code block
Browse files Browse the repository at this point in the history
  • Loading branch information
shafeeqd959 committed Dec 4, 2023
1 parent ba40fd2 commit 2386d01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/contentstack-import/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-cm-import",
"description": "Contentstack CLI plugin to import content into stack",
"version": "1.12.1",
"version": "1.12.2",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
Expand Down Expand Up @@ -99,4 +99,4 @@
}
},
"repository": "https://github.com/contentstack/cli"
}
}
7 changes: 0 additions & 7 deletions packages/contentstack-import/src/import/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ import { ModuleClassParams } from '../../types';
import startJSModuleImport from '../modules-js';

export default async function startModuleImport(modulePayload: ModuleClassParams) {
// Todo: Remove below code when auto detect mechanism implemented for old and new module
if (
modulePayload.moduleName === 'assets' &&
!new FsUtility({ basePath: join(modulePayload.importConfig?.backupDir, 'assets') }).isNewFsStructure
) {
return startJSModuleImport(modulePayload);
}
const { default: ModuleRunner } = await import(`./${modulePayload.moduleName}`);
const moduleRunner = new ModuleRunner(modulePayload);
return moduleRunner.start();
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@contentstack/cli-cm-clone": "~1.8.0",
"@contentstack/cli-cm-export": "~1.10.2",
"@contentstack/cli-cm-export-to-csv": "~1.6.2",
"@contentstack/cli-cm-import": "~1.12.1",
"@contentstack/cli-cm-import": "~1.12.2",
"@contentstack/cli-cm-migrate-rte": "~1.4.15",
"@contentstack/cli-cm-seed": "~1.7.0",
"@contentstack/cli-command": "~1.2.16",
Expand Down

0 comments on commit 2386d01

Please sign in to comment.