add hw2
This commit is contained in:
27
node_modules/@antfu/install-pkg/dist/index.d.ts
generated
vendored
Normal file
27
node_modules/@antfu/install-pkg/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Agent } from 'package-manager-detector';
|
||||
export { Agent } from 'package-manager-detector';
|
||||
import * as tinyexec from 'tinyexec';
|
||||
|
||||
type PackageManager = 'pnpm' | 'yarn' | 'npm' | 'bun';
|
||||
declare function detectPackageManager(cwd?: string): Promise<Agent | null>;
|
||||
|
||||
interface InstallPackageOptions {
|
||||
cwd?: string;
|
||||
dev?: boolean;
|
||||
silent?: boolean;
|
||||
packageManager?: string;
|
||||
preferOffline?: boolean;
|
||||
additionalArgs?: string[] | ((agent: string, detectedAgent: string) => string[] | undefined);
|
||||
}
|
||||
declare function installPackage(names: string | string[], options?: InstallPackageOptions): Promise<tinyexec.Output>;
|
||||
|
||||
interface UninstallPackageOptions {
|
||||
cwd?: string;
|
||||
dev?: boolean;
|
||||
silent?: boolean;
|
||||
packageManager?: string;
|
||||
additionalArgs?: string[];
|
||||
}
|
||||
declare function uninstallPackage(names: string | string[], options?: UninstallPackageOptions): Promise<tinyexec.Output>;
|
||||
|
||||
export { type InstallPackageOptions, type PackageManager, type UninstallPackageOptions, detectPackageManager, installPackage, uninstallPackage };
|
||||
Reference in New Issue
Block a user