Skip to content
DocsTry Aspire
DocsTry

JavaScriptPackageManagerAnnotation Constructors

ClassConstructors1 member
Represents the annotation for the JavaScript package manager used in a resource.
Constructor(string, string?, string?)Section titled Constructor(string, string?, string?)
Represents the annotation for the JavaScript package manager used in a resource.
public sealed class JavaScriptPackageManagerAnnotation
{
public JavaScriptPackageManagerAnnotation(
string executableName,
string? runScriptCommand,
string? cacheMount = null)
{
// ...
}
}
executableNamestringThe name of the executable used to run the package manager.
runScriptCommandstring?The command used to run a script with the JavaScript package manager.
cacheMountstring?optionalThe BuildKit cache mount path for the package manager, or null if not supported.