@enspirit/emb
Version:
A replacement for our Makefile-for-monorepos
22 lines (21 loc) • 863 B
TypeScript
import { Monorepo } from '../index.js';
/**
* A first implementation of a "store" where
* everyone can create things (logs, sentinel files, ...)
*
* For now it's a hidden folder on the root of the monorepo
*/
export declare class EMBStore {
private monorepo;
private path;
constructor(monorepo: Monorepo, dirname?: string);
createReadStream(path: string): Promise<import("fs").ReadStream>;
createWriteStream(path: string, flags?: string | undefined): Promise<import("fs").WriteStream>;
init(): Promise<void>;
join(path: string): string;
mkdirp(path: string): Promise<void>;
stat(path: string, mustExist?: boolean): Promise<import("fs").Stats | undefined>;
readFile(path: string, mustExist?: boolean): Promise<string | undefined>;
trash(): Promise<void>;
writeFile(path: string, data: string): Promise<void>;
}