fix(config): replace npmextra with smartconfig for daemon key-value storage and release settings

This commit is contained in:
2026-03-24 15:06:39 +00:00
parent f1d685b819
commit ec57cc7c42
7 changed files with 47 additions and 31 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tspm',
version: '5.10.2',
version: '5.10.3',
description: 'a no fuzz process manager'
}

View File

@@ -1,20 +1,20 @@
import * as plugins from '../plugins.js';
export class TspmConfig {
public npmextraInstance = new plugins.npmextra.KeyValueStore({
public smartconfigInstance = new plugins.smartconfig.KeyValueStore({
identityArg: '@git.zone__tspm',
typeArg: 'userHomeDir',
});
public async readKey(keyArg: string): Promise<string> {
return await this.npmextraInstance.readKey(keyArg);
return await this.smartconfigInstance.readKey(keyArg);
}
public async writeKey(keyArg: string, value: string): Promise<void> {
return await this.npmextraInstance.writeKey(keyArg, value);
return await this.smartconfigInstance.writeKey(keyArg, value);
}
public async deleteKey(keyArg: string): Promise<void> {
return await this.npmextraInstance.deleteKey(keyArg);
return await this.smartconfigInstance.deleteKey(keyArg);
}
}

View File

@@ -6,7 +6,7 @@ import * as path from 'node:path';
export { childProcess, path };
// @push.rocks scope
import * as npmextra from '@push.rocks/npmextra';
import * as smartconfig from '@push.rocks/smartconfig';
import * as projectinfo from '@push.rocks/projectinfo';
import * as smartcli from '@push.rocks/smartcli';
import * as smartdaemon from '@push.rocks/smartdaemon';
@@ -16,7 +16,7 @@ import * as smartpath from '@push.rocks/smartpath';
import * as smartinteract from '@push.rocks/smartinteract';
// Export with explicit module types
export { npmextra, projectinfo, smartcli, smartdaemon, smartfile, smartipc, smartpath, smartinteract };
export { smartconfig, projectinfo, smartcli, smartdaemon, smartfile, smartipc, smartpath, smartinteract };
// third-party scope
import psTree from 'ps-tree';