UNPKG

@nrwl/workspace

Version:

The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.

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