Skip to content
Docs Try Aspire

JavaScriptPackageManagerAnnotation Properties

Class Properties 6 members
Represents the annotation for the JavaScript package manager used in a resource.
CacheMount Section titled CacheMount nullable string?
Gets the BuildKit cache mount path for the package manager, or null if not supported.
public string? CacheMount { get; }
CommandSeparator Section titled CommandSeparator nullable string?
Gets the string used to separate individual commands in a command sequence, or null if one shouldn't be used. Defaults to "--".
public string? CommandSeparator { get; init; }
ExecutableName Section titled ExecutableName string
Gets the executable used to run the JavaScript package manager.
public string ExecutableName { get; }
InitializeDockerBuildStage Section titled InitializeDockerBuildStage nullable Action<DockerfileStage>
Gets or sets a callback to initialize the Docker build stage before installing packages.
public Action<DockerfileStage>? InitializeDockerBuildStage { get; init; }
Gets the file patterns for package dependency files.
public List<CopyFilePattern> PackageFilesPatterns { get; }
ScriptCommand Section titled ScriptCommand nullable string?
Gets the command used to run a script with the JavaScript package manager.
public string? ScriptCommand { get; }