withBun
Method
interface BunAppResource { // ... omitted for brevity withBun( install?: boolean, installArgs?: string[]): JavaScriptAppResource;}Signature
method
withBun builderConfigures the JavaScript resource to use Bun as the package manager and optionally installs packages before the application starts.
withBun( 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[]optionalAdditional command-line arguments passed to "bun install". When null, defaults are applied based on publish mode and lockfile presence.Returns
JavaScriptAppResource Applies to
This method applies to the following types: