JavaScriptInstallCommandAnnotation
Class sealed net8.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 ConstructorsProperties2
Section titled PropertiesArgsgetstring[] Gets the command-line arguments supplied to the JavaScript package manager.
ProductionInstallArgsget; 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).