All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.utilities.package-manager.d.ts Maven / Gradle / Ivy

There is a newer version: 19.0.0
Show newest version
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.dev/license
 */
import { PackageManager } from '../../lib/config/workspace-schema';
import { AngularWorkspace } from './config';
export interface PackageManagerUtilsContext {
    globalConfiguration: AngularWorkspace;
    workspace?: AngularWorkspace;
    root: string;
}
export declare class PackageManagerUtils {
    private readonly context;
    constructor(context: PackageManagerUtilsContext);
    /** Get the package manager name. */
    get name(): PackageManager;
    /** Get the package manager version. */
    get version(): string | undefined;
    /** Install a single package. */
    install(packageName: string, save?: 'dependencies' | 'devDependencies' | true, extraArgs?: string[], cwd?: string): Promise;
    /** Install all packages. */
    installAll(extraArgs?: string[], cwd?: string): Promise;
    /** Install a single package temporary. */
    installTemp(packageName: string, extraArgs?: string[]): Promise<{
        success: boolean;
        tempNodeModules: string;
    }>;
    private getArguments;
    private run;
    private getVersion;
    private getName;
    private hasLockfile;
    private getConfiguredPackageManager;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy