@dephub/package-install
Version:
Install packages with flexible scope support using your preferred package manager
14 lines (13 loc) • 584 B
TypeScript
import { InstallScope } from './builder.js';
/**
* Prompts the user for confirmation before installing a package.
* @param name - The name of the package to install
* @param scope - The installation scope (defaults to 'production')
* @returns A promise resolving to installation result with user confirmation
* @example
* const result = await askInstall('lodash', 'dev');
* if (result.skipped) {
* console.log('Installation cancelled by user');
* }
*/
export declare const askInstall: (name: string, scope?: InstallScope) => Promise<import('./builder.js').InstallResult>;