0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 05:39:10 +00:00
renovatebot_renovate/tools/clean-cache.mjs
2023-04-28 12:17:48 +00:00

10 lines
307 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');
console.log('Removing ' + renovateDir);
await remove(renovateDir);
})();