Skip to content
DocsTry Aspire
DocsTry

withBuildScript

Method
📦 Aspire.Hosting.JavaScript v13.4.0
interface BunAppResource {
// ... omitted for brevity
withBuildScript(
scriptName: string,
args?: string[]): JavaScriptAppResource;
}

Signature

methodwithBuildScriptbuilder
Adds a build script annotation to the resource builder using the specified command-line arguments.
withBuildScript(
scriptName: string,
args?: string[]): JavaScriptAppResource
scriptNamestring
argsstring[]optional
JavaScriptAppResource

Applies to

This method applies to the following types: