prebundle
Version:
Prebundle Node.js dependencies, output a single js file, a package.json file and the dts files.
13 lines (12 loc) • 750 B
TypeScript
import type { Config, DependencyConfig, ParsedTask } from './types.js';
export declare function findDepPath(name: string): string | null;
export declare const resolveConfig: () => Promise<Config>;
export declare function parseTasks(dependencies: Array<string | DependencyConfig>, globalPrettier?: boolean): ParsedTask[];
export declare function pick<T, U extends keyof T>(obj: T, keys: ReadonlyArray<U>): Pick<T, U>;
export declare function replaceFileContent(filePath: string, replaceFn: (content: string) => string): void;
export declare function pkgNameToAtTypes(name: string): string;
/**
* Find the direct type file for a given file path.
* @param filepath
*/
export declare function findDirectTypeFile(filepath: string): string | undefined;