UNPKG

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