{"size": 660, "ext": "js", "max_stars_repo_path": "scripts/clean.js", "max_stars_repo_name": "forkkit/campkit", "max_stars_repo_stars_event_min_datetime": "2019-10-11T13:30:40.000Z", "max_stars_repo_stars_event_max_datetime": "2020-09-05T00:53:26.000Z", "max_issues_repo_path": "scripts/clean.js", "max_issues_repo_name": "forkkit/campkit", "max_issues_repo_issues_event_min_datetime": "2019-10-21T05:16:52.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T09:23:11.000Z", "max_forks_repo_path": "scripts/clean.js", "max_forks_repo_name": "forkkit/campkit", "max_forks_repo_forks_event_min_datetime": "2019-10-11T15:43:47.000Z", "max_forks_repo_forks_event_max_datetime": "2019-11-14T19:15:28.000Z"}
{"max_stars_count": 127, "max_issues_count": 7, "max_forks_count": 6, "avg_line_length": 24.4444444444, "max_line_length": 74, "alphanum_fraction": 0.6681818182}
const path = require('path');
const rimraf = require('rimraf');

// del root node_modules
rimraf.sync(path.resolve(__dirname, `../node_modules`));

// del dirs of interest in all packages
[
  'authentication',
  'cli',
  'common',
  'core',
  'rest',
  'serverless-campkit',
].forEach(packageName => {
  rimraf.sync(path.resolve(__dirname, `../packages/${packageName}/dist`));
  rimraf.sync(
    path.resolve(__dirname, `../packages/${packageName}/.rts2_cache_cjs`)
  );
  rimraf.sync(
    path.resolve(__dirname, `../packages/${packageName}/.rts2_cache_esm`)
  );
  rimraf.sync(
    path.resolve(__dirname, `../packages/${packageName}/node_modules`)
  );
});
