docs: function cleanPkgDistDirs() {
    const statuses = globSync('packages/*/dist').map(
      (distPath) => spawnSync('rm', ['-r', distPath], {stdio: 'inherit'}).status);
  
    if (statuses.find((status) => status > 0)) {
      console.error('Failed to clean package dist folders prior to copying');
      process.exit(1);
    }
  }