renovate/tools/clean-cache.mjs
Michael Kriese 8270d5512d
refactor: fix lint issues (#16779)
* refactor: fix lint issues

* Update lib/renovate.ts

* chore: revert toplevel await for ts
2022-07-26 08:32:12 +00:00

11 lines
343 B
JavaScript

import { tmpdir } from '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);
})();