JavaScriptInstallCommandAnnotation
Classsealednet10.0
Represents the annotation for the JavaScript package manager's install command.
namespace Aspire.Hosting.JavaScript;
public sealed class JavaScriptInstallCommandAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}IResourceAnnotation
Constructors1
Section titled Constructors Represents the annotation for the JavaScript package manager's install command.
Properties2
Section titled PropertiesProductionInstallArgs get; initstring? Gets or sets the additional arguments for installing production-only dependencies (excluding devDependencies). This flag is appended to the base install command (from
JavaScriptInstallCommandAnnotation.Args ) when generating the production dependencies stage in the Dockerfile. Each package manager sets its own flag (e.g. npm uses --omit=dev , yarn uses --production , pnpm uses --prod ).