@coat/cli
Version:
TODO: See #3
16 lines (15 loc) • 999 B
TypeScript
import { CoatGlobalLockfileStrict, CoatLocalLockfileStrict, CoatLockfileContinuousFileEntryStrict, CoatLockfileFileEntryStrict } from "../types/coat-lockfiles";
/**
* Returns files that are no longer managed by the current coat project.
*
* This can happen in cases where the coat project configuration changes and
* a file that has been generated previously is no longer generated by coat.
*
* Example: When switching the build tool configuration from tool A to tool B,
* the configuration file for tool A "tool-a.config" is no longer a part of the
* generated files and should be removed from the current project.
*
* @param newFiles The files that will be generated from the current context
* @param currentLockfile The current lockfile that has been generated from a previous execution
*/
export declare function getUnmanagedFiles(newFiles: CoatLockfileFileEntryStrict[], currentLockfile: CoatGlobalLockfileStrict | CoatLocalLockfileStrict): CoatLockfileContinuousFileEntryStrict[];