@randy.tarampi/install-dependencies
Version:
Builds node modules to a spectified path 📦
25 lines (24 loc) • 721 B
TypeScript
/**
* installDependencies
* @description the function that installs dependencies
* --------------------------------
* @summary function
* This function works on it's own to install dependencies asynchonously
*/
declare type Process = {
exit: (code: number) => void;
cwd: () => string;
};
export declare type InstallDependenciesOptions = {
config: string;
debug?: boolean;
dest: string;
process?: Process | null;
};
export declare type InstalledDependencies = {
deependenciesInstalled: string[];
config: string;
dest: string;
};
export declare function installDependencies({ config, dest, debug, process, }: InstallDependenciesOptions): Promise<InstalledDependencies>;
export {};