UNPKG

@atomist/automation-client

Version:

Atomist API for software low-level client

26 lines (19 loc) 524 B
import { Project } from "../Project"; /** * Implementation of LocalProject based on node file system. * Uses fs-extra vs raw fs. */ export type ReleaseFunction = () => Promise<void>; export function isLocalProject(p: Project): p is LocalProject { return (p as any).baseDir !== undefined; } /** * Implementation of Project backed by local file system */ export interface LocalProject extends Project { readonly baseDir: string; /** * Release any locks held */ release: ReleaseFunction; }