fix(paths): use the system temp directory for nogit storage and add release metadata

This commit is contained in:
2026-03-16 00:49:37 +00:00
parent e28a35791a
commit 97b89efd84
4 changed files with 26 additions and 3 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/docker',
version: '5.1.0',
version: '5.1.1',
description: 'Provides easy communication with Docker remote API from Node.js, with TypeScript support.'
}

View File

@@ -1,9 +1,9 @@
import * as plugins from './plugins.js';
import { tmpdir } from 'node:os';
export const packageDir = plugins.path.resolve(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'../',
);
export const nogitDir = plugins.path.resolve(packageDir, '.nogit/');
plugins.smartfile.fs.ensureDir(nogitDir);
export const nogitDir = plugins.path.resolve(tmpdir(), 'apiclient-docker');