UNPKG

@git.zone/cli

Version:

A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.

61 lines (60 loc) 1.48 kB
export type TAccessLevel = 'public' | 'private'; export interface IReleaseConfig { registries: string[]; accessLevel: TAccessLevel; } /** * Manages release configuration stored in npmextra.json * under @git.zone/cli.release namespace */ export declare class ReleaseConfig { private cwd; private config; constructor(cwd?: string); /** * Create a ReleaseConfig instance from current working directory */ static fromCwd(cwd?: string): Promise<ReleaseConfig>; /** * Load configuration from npmextra.json */ load(): Promise<void>; /** * Save configuration to npmextra.json */ save(): Promise<void>; /** * Get all configured registries */ getRegistries(): string[]; /** * Check if any registries are configured */ hasRegistries(): boolean; /** * Add a registry URL * @returns true if added, false if already exists */ addRegistry(url: string): boolean; /** * Remove a registry URL * @returns true if removed, false if not found */ removeRegistry(url: string): boolean; /** * Clear all registries */ clearRegistries(): void; /** * Get the npm access level */ getAccessLevel(): TAccessLevel; /** * Set the npm access level */ setAccessLevel(level: TAccessLevel): void; /** * Normalize a registry URL (ensure it has https:// prefix) */ private normalizeUrl; }