text: import { existsSync, readFileSync, writeFileSync } from 'fs';
  import path from 'path';
  
  const __dirname = path.dirname(process.argv[1]);
  
  const filename = '../pages/_includes/manifest-wc.json';
  const outputFilename = path.join(__dirname, '../pages/_helpers/manifest-wc.js');
  
  const filePlace = path.join(__dirname, filename);
  let json = '{}';
  if (existsSync(filePlace)) {
  	const originalContent = readFileSync(filePlace).toString();
  	const parsed = JSON.parse(originalContent);
  	json = JSON.stringify(parsed, null, '\t');
  }
  
  const fileContent = `/* eslint quotes: 0 */
  
  export default ${json};
  `;
  writeFileSync(outputFilename, fileContent, 'utf8');
  console.log('BUILD: Finished copying manifest file');
  