11import * as path from 'path' ;
2- import { ContentstackClient , handleAndLogError , messageHandler , v2Logger } from '@contentstack/cli-utilities' ;
3- import { setupBranches , setupExportDir , log , formatError , writeExportMetaFile } from '../utils' ;
2+ import { ContentstackClient , handleAndLogError , messageHandler , log } from '@contentstack/cli-utilities' ;
3+ import { setupBranches , setupExportDir , writeExportMetaFile } from '../utils' ;
44import startModuleExport from './modules' ;
55import startJSModuleExport from './modules-js' ;
66import { ExportConfig , Modules } from '../types' ;
@@ -38,10 +38,10 @@ class ModuleExporter {
3838 this . exportConfig . branchName = branch . uid ;
3939 this . stackAPIClient . stackHeaders . branch = branch . uid ;
4040 this . exportConfig . branchDir = path . join ( this . exportConfig . exportDir , branch . uid ) ;
41- v2Logger . info ( `Exporting content from branch ${ branch . uid } ` , this . exportConfig . context ) ;
41+ log . info ( `Exporting content from branch ${ branch . uid } ` , this . exportConfig . context ) ;
4242 writeExportMetaFile ( this . exportConfig , this . exportConfig . branchDir ) ;
4343 await this . export ( ) ;
44- v2Logger . success (
44+ log . success (
4545 `The content of branch ${ branch . uid } has been exported successfully!` ,
4646 this . exportConfig . context ,
4747 ) ;
@@ -57,7 +57,7 @@ class ModuleExporter {
5757 }
5858
5959 async export ( ) {
60- v2Logger . info (
60+ log . info (
6161 `Started to export content, version is ${ this . exportConfig . contentVersion } ` ,
6262 this . exportConfig . context ,
6363 ) ;
@@ -69,7 +69,7 @@ class ModuleExporter {
6969 }
7070
7171 async exportByModuleByName ( moduleName : Modules ) {
72- v2Logger . info ( `Exporting module: ${ moduleName } ` , this . exportConfig . context ) ;
72+ log . info ( `Exporting module: ${ moduleName } ` , this . exportConfig . context ) ;
7373 // export the modules by name
7474 // calls the module runner which inturn calls the module itself
7575 let exportedModuleResponse ;
0 commit comments