UNPKG

805 BTypeScriptView Raw
1import { fileExists, directoryExists, isRelativePath, createDirectory } from 'nx/src/utils/fileutils';
2export { fileExists, directoryExists, isRelativePath, createDirectory };
3export declare function writeToFile(filePath: string, str: string): void;
4/**
5 * This method is specifically for updating a JSON file using the filesystem
6 *
7 * @remarks
8 * If you are looking to update a JSON file in a tree, look for ./ast-utils#updateJsonInTree
9 * @param path Path of the JSON file on the filesystem
10 * @param callback Manipulation of the JSON data
11 */
12export declare function updateJsonFile(path: string, callback: (a: any) => any): void;
13export declare function copyFile(file: string, target: string): void;
14export declare function renameSync(from: string, to: string, cb: (err: Error | null) => void): void;