text: const fs = require("fs-extra");
  const path = require("path");
  const { logger } = require("@nicolascava/castile/core");
  
  const articlesPath = path.join(process.cwd(), "./src/pages/blog");
  const secondBrainPath = path.join(
    process.cwd(),
    "../second-brain/blog/articles"
  );
  
  fs.readdir(secondBrainPath, (_err, dir) => {
    dir
      .filter((v) => v.indexOf(".jsx") === -1)
      .forEach((d) => {
        const dest = path.join(articlesPath, d);
  
        fs.rmSync(dest, { recursive: true });
        fs.copySync(path.join(secondBrainPath, d), dest);
        logger.info(d);
      });
  });
  