renovate/tools/clean-cache.mjs
2023-03-28 21:05:36 +00:00

11 lines
348 B
JavaScript

import { tmpdir } from 'node:os';
import { remove } from 'fs-extra';
import upath from 'upath';
await (async () => {
const tmpDir = process.env.RENOVATE_TMPDIR ?? tmpdir();
const renovateDir = upath.join(tmpDir, 'renovate');
// eslint-disable-next-line no-console
console.log('Removing ' + renovateDir);
await remove(renovateDir);
})();