withPnpm
Method
interface BunAppResource { // ... omitted for brevity withPnpm( install?: boolean, installArgs?: string[]): JavaScriptAppResource;}Signature
method
withPnpm builderConfigures the Node.js resource to use pnpm as the package manager and optionally installs packages before the application starts.
withPnpm( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
installbooleanoptional= TrueWhen true (default), automatically installs packages before the application starts. When false, only sets the package manager annotation without creating an installer resource.installArgs string[]optionalThe command-line arguments passed to "pnpm install".Returns
JavaScriptAppResource Applies to
This method applies to the following types: