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

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2026-03-16 - 5.1.1 - fix(paths)
use the system temp directory for nogit storage and add release metadata
- Changes nogitDir to resolve under the OS temporary directory instead of a local .nogit folder
- Adds @git.zone/cli release and module metadata to npmextra.json for npm publishing configuration
## 2025-11-25 - 5.1.0 - feat(host) ## 2025-11-25 - 5.1.0 - feat(host)
Add DockerHost version & image-prune APIs, extend network creation options, return exec inspect info, and improve image import/store and streaming Add DockerHost version & image-prune APIs, extend network creation options, return exec inspect info, and improve image import/store and streaming

View File

@@ -9,6 +9,23 @@
"npmAccessLevel": "public", "npmAccessLevel": "public",
"npmRegistryUrl": "registry.npmjs.org" "npmRegistryUrl": "registry.npmjs.org"
}, },
"@git.zone/cli": {
"release": {
"registries": [
"https://registry.npmjs.org"
],
"accessLevel": "public"
},
"projectType": "npm",
"module": {
"githost": "code.foss.global",
"gitscope": "apiclient.xyz",
"gitrepo": "docker",
"description": "Provides easy communication with Docker remote API from Node.js, with TypeScript support.",
"npmPackagename": "@apiclient.xyz/docker",
"license": "MIT"
}
},
"gitzone": { "gitzone": {
"projectType": "npm", "projectType": "npm",
"module": { "module": {

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@apiclient.xyz/docker', 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.' 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 * as plugins from './plugins.js';
import { tmpdir } from 'node:os';
export const packageDir = plugins.path.resolve( export const packageDir = plugins.path.resolve(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
'../', '../',
); );
export const nogitDir = plugins.path.resolve(packageDir, '.nogit/'); export const nogitDir = plugins.path.resolve(tmpdir(), 'apiclient-docker');
plugins.smartfile.fs.ensureDir(nogitDir);