JavaScriptAppResource.withPnpm

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

Signature

methodwithPnpmbuilder
Configures the Node.js resource to use pnpm as the package manager and optionally installs packages before the application starts.
withPnpm(
install?: boolean,
installArgs?: string[]): JavaScriptAppResource
installbooleanoptional= TrueWhen true (default), automatically installs packages before the application starts. When false, only sets the package manager annotation without creating an installer resource.
installArgsstring[]optionalThe command-line arguments passed to "pnpm install".
JavaScriptAppResource

Defined on

This method is defined on the following type: