Skip to content
DocsTry Aspire
DocsTry

withBun

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

Signature

methodwithBunbuilder
Configures the JavaScript resource to use Bun as the package manager and optionally installs packages before the application starts.
withBun(
install?: boolean,
installArgs?: string[]): JavaScriptAppResource
installbooleanoptional= True
installArgsstring[]optional
JavaScriptAppResource

Applies to

This method applies to the following types: