UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

10 lines (9 loc) 520 B
import nodeFs from 'node:fs'; export { KNOWN_LOCKFILES, LockfileFinder, type LockfileFinderFs } from './finder.js'; export { LockfileHasher, type LockfileHasherFs } from './hasher.js'; /** * Find the nearest lockfiles at or above `startDir` and hash them into a single * digest used to globally invalidate the incremental build cache when * dependencies change. Returns an empty string when no lockfile is found. */ export declare function computeLockfileHash(startDir: string, fs?: typeof nodeFs): Promise<string>;