@coat/cli
Version:
TODO: See #3
15 lines (14 loc) • 495 B
TypeScript
import { CoatContext } from "../types/coat-context";
/**
* Returns the normalized absolute file path for a given path.
* Results will always use unix style "/" path separators.
*
* Example:
* folder-1\..\folder-2\file.json
* ->
* /absolute-path-to-project/folder-2/file.json
*
* @param filePath The path that shall be normalized
* @param context The context of the current coat project
*/
export declare function getNormalizedFilePath(filePath: string, context: CoatContext): string;