JavaScriptAppResource.WithPnpm
Method
type JavaScriptAppResource interface { // ... omitted for brevity WithPnpm(options ...*WithPnpmOptions) 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(options ...*WithPnpmOptions) JavaScriptAppResourceParameters
options...*WithPnpmOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithPnpmOptions argument.
Install*boolWhen true (default), automatically installs packages before the application starts. When false, only sets the package manager annotation without creating an installer resource.InstallArgs []string The command-line arguments passed to "pnpm install".Returns
JavaScriptAppResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: