function processDirectories() {
  const directories = fs.readdirSync(".");
  const nonHiddenDirectories = directories.filter((directory) => !directory.startsWith("."));

  for (const directory of nonHiddenDirectories) {
    if (fs.statSync(directory).isDirectory() && !rootExclude.includes(directory)) {
      const dirPath = path.join("dist", directory);
      console.log(dirPath);
      fs.mkdirSync(dirPath);
      copyFolderRecursiveSync(directory, path.join("dist", directory));
    }
  }
}
Reads the contents of the root directory and recursively copies the contents of each folder, unless they are excluded.