fix(config): migrate configuration handling from npmextra to smartconfig

This commit is contained in:
2026-03-24 15:05:07 +00:00
parent 3358a0eacc
commit 470e87eb79
20 changed files with 58 additions and 26 deletions

View File

@@ -42,7 +42,7 @@ export class ServiceManager {
* Load service configuration from npmextra.json
*/
private async loadServiceConfiguration(): Promise<void> {
const npmextraConfig = new plugins.npmextra.Npmextra(process.cwd());
const npmextraConfig = new plugins.npmextra.Smartconfig(process.cwd());
const gitzoneConfig = npmextraConfig.dataFor<any>('@git.zone/cli', {});
// Check if services array exists
@@ -75,7 +75,7 @@ export class ServiceManager {
* Save service configuration to npmextra.json
*/
private async saveServiceConfiguration(services: string[]): Promise<void> {
const npmextraPath = plugins.path.join(process.cwd(), 'npmextra.json');
const npmextraPath = plugins.path.join(process.cwd(), 'smartconfig.json');
let npmextraData: any = {};
// Read existing npmextra.json if it exists