UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev (v3) projects

17 lines (16 loc) 720 B
/** * A short-lived directory. Automatically removed when the process exits, but * can be removed earlier by calling `remove()`. */ export interface EphemeralDirectory { path: string; remove(): void; } /** * Gets a temporary directory in the project's `.trigger` folder with the * specified prefix. We create temporary directories in `.trigger` as opposed * to the OS's temporary directory to avoid issues with different drive letters * on Windows. For example, when `esbuild` outputs a file to a different drive * than the input sources, the generated source maps are incorrect. */ export declare function getTmpDir(projectRoot: string | undefined, prefix: string, keep?: boolean): EphemeralDirectory;