UNPKG

worktree-tool

Version:

A command-line tool for managing Git worktrees with integrated tmux/shell session management

20 lines 796 B
/** * Detect the project name from the current directory * Tries package.json first, then falls back to directory name * @param dir The directory to check (defaults to current directory) * @returns The detected project name */ export declare function detectProjectName(dir?: string): Promise<string>; /** * Find package.json in the given directory or its parents * @param dir The directory to start searching from * @returns The path to package.json or null if not found */ export declare function findPackageJson(dir: string): Promise<string | null>; /** * Check if a name is valid for git branches * @param name The name to check * @returns True if valid, false otherwise */ export declare function isValidGitBranchName(name: string): boolean; //# sourceMappingURL=project.d.ts.map