UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

14 lines (10 loc) 272 B
import {rimraf} from 'rimraf' import debug from './debug' async function cleanupTmpDir(tmpDir: string): Promise<void> { try { await rimraf(tmpDir) } catch (err) { debug(`Error cleaning up temporary files: ${err.message}`) } } export default cleanupTmpDir