import { replaceDemoTabTemplateContent } from './01-replaceDemoTabTemplateContent/replaceDemoTabTemplateContent' ; import { DemoTabFileMeta } from '../../types' ; export const replaceDemoTabTemplatesContent = async ( demoTabFilesMeta ) : Promise < number > => { let numOfReplacedDemoTabTemplatesContent = 0 ; await Promise . all ( demoTabFilesMeta . map ( async ( DemoTabFileMeta ) => { await replaceDemoTabTemplateContent ( DemoTabFileMeta ) ; numOfReplacedDemoTabTemplatesContent ++ ; } ) ) ; return numOfReplacedDemoTabTemplatesContent ; } ;