Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPackageManagerLaunch

Method
📦 CommunityToolkit.Aspire.Hosting.JavaScript.Extensions v13.6.1
func (TurborepoResource) WithPackageManagerLaunch(options ...*WithPackageManagerLaunchOptions) TurborepoResource

Signature

methodWithPackageManagerLaunchbuilder
Configures the Turborepo workspace to use the specified JavaScript package manager when starting apps.
WithPackageManagerLaunch(options ...*WithPackageManagerLaunchOptions) TurborepoResource
options...*WithPackageManagerLaunchOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPackageManagerLaunchOptions argument.

PackageManager*stringThe package manager to use. If none is provided it will attempt to use the installer annotation's resource command.
TurborepoResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: