renovate/bin/clean-cache.js
Rhys Arkins a599eab231
feat: unify file locations (#3507)
feat: unify file locations
2019-04-09 17:14:08 +02:00

10 lines
286 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 baseDir = path.join(tmpDir, 'renovate');
console.log('Removing ' + baseDir);
await fs.remove(baseDir);
})();