clean-shadow-test-builds.js 441 B

123456789101112131415
  1. const fs = require("fs");
  2. const path = require("path");
  3. const repoRoot = path.resolve(__dirname, "..");
  4. const targets = [
  5. path.join(repoRoot, ".shadow-cljs", "builds", "test"),
  6. path.join(repoRoot, ".shadow-cljs", "builds", "test-no-worker"),
  7. path.join(repoRoot, "static", "tests.js"),
  8. path.join(repoRoot, "static", "tests-no-worker.js"),
  9. ];
  10. for (const target of targets) {
  11. fs.rmSync(target, { recursive: true, force: true });
  12. }