UNPKG

@liara/cli

Version:

The command line interface for Liara

10 lines (9 loc) 284 B
import os from 'node:os'; import path from 'node:path'; import fs from 'fs-extra'; export default () => { const tmpDir = path.join(os.tmpdir(), '/liara-cli'); const sourcePath = path.join(tmpDir, `${Date.now()}.tar.gz`); fs.emptyDirSync(tmpDir); return sourcePath; };