renovate/bin/clean-cache.js
2021-02-04 14:41:36 +01:00

10 lines
298 B
JavaScript

const fs = require('fs-extra');
const os = require('os');
const path = require('path');
(async () => {
const tmpDir = process.env.RENOVATE_TMPDIR || os.tmpdir();
const renovateDir = path.join(tmpDir, 'renovate');
console.log('Removing ' + renovateDir);
await fs.remove(renovateDir);
})();