UNPKG

xnr

Version:

Easily, quickly and reliably run a Node.js script from the CLI.

19 lines (18 loc) 658 B
import { SourceFileNode } from "./utils"; export type OutputFile = { path: string; contents: string; sourcePath: string; }; /** * Represents the result of the build process, including the entry point and processed files. * @property {string} entry - The entry point file for the build. * @property {OutputFile[]} files - An array of file paths and their contents from the build process. */ export type Output = { entry: string; files: OutputFile[]; packages: Set<string>; }; export declare const calcOutput: (sourceFileTree: SourceFileNode) => Output; export declare const getAbsoluteOutputPath: (absInputPath: string) => string;