@coat/cli
Version:
TODO: See #3
21 lines (20 loc) • 988 B
TypeScript
import { CoatContext } from "../types/coat-context";
import { CoatGlobalLockfileStrict, CoatLocalLockfileStrict } from "../types/coat-lockfiles";
/**
* Strips all unnecessary properties from the provided lockfile and
* writes the result to the global lockfile location:
* project-dir/coat.lock
*
* @param coatLockfile The new global lockfile that should be written to the disk
* @param context The context of the current coat project
*/
export declare function writeGlobalLockfile(coatLockfile: CoatGlobalLockfileStrict, context: CoatContext): Promise<void>;
/**
* Strips all unnecessary properties from the provided lockfile and
* writes the result to the local lockfile location:
* project-dir/.coat/coat.lock
*
* @param coatLockfile The new local lockfile that should be written to the disk
* @param context The context of the current coat project
*/
export declare function writeLocalLockfile(coatLockfile: CoatLocalLockfileStrict, context: CoatContext): Promise<void>;