Skip to content
Snippets Groups Projects
Unverified Commit aa8fa2d4 authored by Gabriel-Ladzaretti's avatar Gabriel-Ladzaretti Committed by GitHub
Browse files

build(tools/clean-cache): fix upath import (#16245)

* fix(tools/clean-cache): fix upath import

* fix(tools/clean-cache): fix upath import
parent 3b0c2afe
No related branches found
No related tags found
No related merge requests found
import { tmpdir } from 'os'; import { tmpdir } from 'os';
import { remove } from 'fs-extra'; import { remove } from 'fs-extra';
import { join } from 'upath'; import upath from 'upath';
// eslint-disable-next-line @typescript-eslint/no-floating-promises // eslint-disable-next-line @typescript-eslint/no-floating-promises
(async () => { (async () => {
const tmpDir = process.env.RENOVATE_TMPDIR ?? tmpdir(); const tmpDir = process.env.RENOVATE_TMPDIR ?? tmpdir();
const renovateDir = join(tmpDir, 'renovate'); const renovateDir = upath.join(tmpDir, 'renovate');
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log('Removing ' + renovateDir); console.log('Removing ' + renovateDir);
await remove(renovateDir); await remove(renovateDir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment