Skip to content
Docs Try Aspire
Docs Try

JavaScriptInstallCommandAnnotation Properties

Class Properties 2 members
Represents the annotation for the JavaScript package manager's install command.
Args Section titled Args string[]
Gets the command-line arguments supplied to the JavaScript package manager.
public string[] Args { get; }
ProductionInstallArgs Section titled ProductionInstallArgs nullable string?
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).
public string? ProductionInstallArgs { get; init; }