text: const basePath = process.cwd();
  const fs = require('fs');
  
  const {
  	baseUri,
  	description,
  	namePrefix,
  	suitingMouthNumbers,
  	collectionFolder,
  	extraMetadata,
  } = require(`${basePath}/src/config.js`);
  
  // read json data
  let rawdata = fs.readFileSync(`${basePath}/build/json/_metadata.json`);
  let data = JSON.parse(rawdata);
  
  data.forEach((item) => {
  	item.name = `${namePrefix} #${item.edition}`;
  	item.description = description;
  	item.image = `${baseUri}/${item.edition}.png`;
  	item.apes = suitingMouthNumbers;
  	item.folder = collectionFolder;
  
  	item = { ...item, ...extraMetadata };
  
  	fs.writeFileSync(
  		`${basePath}/build/json/${item.edition}.json`,
  		JSON.stringify(item, null, 2)
  	);
  });
  
  fs.writeFileSync(
  	`${basePath}/build/json/_metadata.json`,
  	JSON.stringify(data, null, 2)
  );
  