From 0f90063877436f407cc965bfab93fc5735ea7038 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Fri, 29 Nov 2024 11:04:24 -0600 Subject: [PATCH] Moved the cache directory --- src/cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 76463db..cc9d4a4 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -6,6 +6,7 @@ import { parseArgs } from 'node:util'; import { inject } from 'postject'; import { extract } from 'tar'; import AdmZip from 'adm-zip'; +import { homedir } from 'node:os'; const { values: options, positionals } = parseArgs({ options: { @@ -20,7 +21,7 @@ const { values: options, positionals } = parseArgs({ allowPositionals: true, }); -const tempDir = '/tmp/xsea'; +const tempDir = join(homedir(), '.cache/xsea'); const _log = (...text: any[]) => options.verbose && console.log('[debug]', ...text);