NpmPruneSettingsExtensions.

AddPackage(NpmPruneSettings, string, string) Method

Summary

If a package name is added, then only packages matching one of the supplied names are removed.
Assembly
Cake.Npm.dll
Namespace
Cake.Npm.Prune
Containing Type
NpmPruneSettingsExtensions

Syntax

public static NpmPruneSettings AddPackage(this NpmPruneSettings settings, string packageName, string scope)

Parameters

Name Type Description
settings NpmPruneSettings The settings.
packageName string The package name to add.
scope string The package scope.

Return Value

Type Description
NpmPruneSettings The settings instance with the package added to Packages.