fix(paths): use the system temp directory for nogit storage and add release metadata
This commit is contained in:
@@ -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.'
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user