Skip to content
DocsTry Aspire
DocsTry

JavaScriptAppResource.withYarn

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface JavaScriptAppResource {
// ... omitted for brevity
withYarn(
install?: boolean,
installArgs?: string[]): JavaScriptAppResource;
}

Signature

methodwithYarnbuilder
Configures the Node.js resource to use yarn as the package manager and optionally installs packages before the application starts.
withYarn(
install?: boolean,
installArgs?: string[]): JavaScriptAppResource
installbooleanoptional= True
installArgsstring[]optional
JavaScriptAppResource

Defined on

This method is defined on the following type: