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.

23 lines (22 loc) 1.03 kB
export type ProjectType = 'npm' | 'deno' | 'both' | 'none'; export type VersionType = 'patch' | 'minor' | 'major'; /** * Detects the current git branch * @returns The current branch name, defaults to 'master' if detection fails */ export declare function detectCurrentBranch(): Promise<string>; /** * Detects the project type based on presence of package.json and/or deno.json * @returns The project type */ export declare function detectProjectType(): Promise<ProjectType>; /** * Bumps the project version based on project type * Handles npm-only, deno-only, and dual projects with unified logic * @param projectType The detected project type * @param versionType The type of version bump * @param currentStep The current step number for progress display * @param totalSteps The total number of steps for progress display * @returns The new version string */ export declare function bumpProjectVersion(projectType: ProjectType, versionType: VersionType, currentStep?: number, totalSteps?: number): Promise<string>;