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) 256 B
import rimraf from 'rimraf' import debug from './debug' function cleanupTmpDir(tmpDir: string): void { rimraf(tmpDir, (err) => { if (err) { debug(`Error cleaning up temporary files: ${err.message}`) } }) } export default cleanupTmpDir