UNPKG

lockfile-guardian

Version:

Never forget to install dependencies again! Automatically detect when your lock files change after git operations and warn you (or auto-install) when your dependencies are out of sync.

15 lines 806 B
export declare function storeCurrentHash(cwd?: string): void; export declare function getStoredHash(cwd?: string): string | null; export declare function clearStoredHash(cwd?: string): void; /** * Check if lockfile has changed compared to stored hash. * This function only checks and warns - it doesn't update the stored hash. * Hash updates should happen via post-install scripts when packages are actually installed. */ export declare function checkLockfile(isHook?: boolean, cwd?: string): Promise<void>; /** * Called by post-install scripts to update the stored hash after successful package installation. * This ensures we only track hash changes when packages are actually installed. */ export declare function updateHashAfterInstall(cwd?: string): void; //# sourceMappingURL=guardian.d.ts.map