mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 03:19:31 +08:00
16 lines
575 B
Text
16 lines
575 B
Text
import execa from 'execa';
|
|
|
|
declare type PackageManager = 'pnpm' | 'yarn' | 'npm';
|
|
declare function detectPackageManager(cwd?: string): Promise<PackageManager | null>;
|
|
|
|
interface InstallPackageOptions {
|
|
cwd?: string;
|
|
dev?: boolean;
|
|
silent?: boolean;
|
|
packageManager?: string;
|
|
preferOffline?: boolean;
|
|
additionalArgs?: string[];
|
|
}
|
|
declare function installPackage(names: string | string[], options?: InstallPackageOptions): Promise<execa.ExecaReturnValue<string>>;
|
|
|
|
export { InstallPackageOptions, PackageManager, detectPackageManager, installPackage };
|