Patch
A class representing operations to apply to a package.
Static Member Summary
Static Public Members | ||
public static get |
A symbol representing the |
|
public static get |
A symbol representing the |
|
public static get |
A symbol representing the |
|
public static get |
A symbol representing the |
Constructor Summary
Public Constructor | ||
public |
constructor(type: Symbol, config: object) Creates a new patch instance. |
Member Summary
Public Members | ||
public |
Whether or not this is a devDependency |
|
public |
Whether or not the patch is disabled |
|
public |
The files that necessitate the patch. |
|
public |
The name of the item being patched. |
|
public |
The dependency type being patched. |
|
public |
The type of patch this is. |
|
public |
The value of the item being patched. |
Static Public Members
Public Constructors
public constructor(type: Symbol, config: object) source
Creates a new patch instance.
Params:
Name | Type | Attribute | Description |
type | Symbol | The type of patch this is. |
|
config | object |
|
The configuration of the patch. |
config.name | string | The name of the item being patched. |
|
config.value | object | The value of the item being patched. |
|
config.source | string | The dependency type being patched. |
|
config.dev | boolean |
|
Whether or not this is a devDependency. |
config.disabled | boolean |
|
Whether or not the patch is disabled. |
config.files | string[] |
|
The files that necessitate the patch. |