Skip to content
DocsTry Aspire
DocsTry

JavaScriptPackageManagerAnnotation Properties

ClassProperties6 members
Represents the annotation for the JavaScript package manager used in a resource.
CacheMountSection titled CacheMountnullablestring?
Gets the BuildKit cache mount path for the package manager, or null if not supported.
public string? CacheMount { get; }
CommandSeparatorSection titled CommandSeparatornullablestring?
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; }
ExecutableNameSection titled ExecutableNamestring
Gets the executable used to run the JavaScript package manager.
public string ExecutableName { get; }
InitializeDockerBuildStageSection titled InitializeDockerBuildStagenullableAction<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; }
ScriptCommandSection titled ScriptCommandnullablestring?
Gets the command used to run a script with the JavaScript package manager.
public string? ScriptCommand { get; }