This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Npm.
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
- Npm
Prune Settings Extensions
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 . |