import { PackageJson } from '@ionic/cli-framework'; import { NpmClient } from '../../definitions'; export declare type PkgManagerCommand = 'dedupe' | 'rebuild' | 'install' | 'uninstall' | 'run' | 'info'; export interface PkgManagerOptions { command: PkgManagerCommand; pkg?: string; script?: string; scriptArgs?: string[]; global?: boolean; save?: boolean; saveDev?: boolean; saveExact?: boolean; json?: boolean; } /** * Resolves pkg manager intent with command args. * * TODO: this is a weird function and should be split up * * @return Promise<args> If the args is an empty array, it means the pkg manager doesn't have that command. */ export declare function pkgManagerArgs(npmClient: NpmClient, options: PkgManagerOptions): Promise<string[]>; /** * @return Promise<package.json on registry or `undefined`> */ export declare function pkgFromRegistry(npmClient: NpmClient, options: Partial<PkgManagerOptions>): Promise<PackageJson | undefined>;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
archive.d.ts | File | 44 B | 0644 |
|
archive.js | File | 146 B | 0644 |
|
color.d.ts | File | 572 B | 0644 |
|
color.js | File | 5.18 KB | 0644 |
|
emoji.d.ts | File | 68 B | 0644 |
|
emoji.js | File | 310 B | 0644 |
|
file.d.ts | File | 204 B | 0644 |
|
file.js | File | 708 B | 0644 |
|
http.d.ts | File | 810 B | 0644 |
|
http.js | File | 3.33 KB | 0644 |
|
logger.d.ts | File | 707 B | 0644 |
|
logger.js | File | 1.64 KB | 0644 |
|
npm.d.ts | File | 991 B | 0644 |
|
npm.js | File | 4.86 KB | 0644 |
|
uuid.d.ts | File | 91 B | 0644 |
|
uuid.js | File | 490 B | 0644 |
|