renovate/tools/clean-cache.mjs
Gabriel-Ladzaretti aa8fa2d436
build(tools/clean-cache): fix upath import (#16245)
* fix(tools/clean-cache): fix upath import

* fix(tools/clean-cache): fix upath import
2022-06-26 09:42:02 +00:00

12 lines
405 B
JavaScript

import { tmpdir } from 'os';
import { remove } from 'fs-extra';
import upath from 'upath';
// eslint-disable-next-line @typescript-eslint/no-floating-promises
(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);
})();