Skip to content
Docs Try Aspire
Docs Try

withBuildScript

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

Signature

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

Applies to

This method applies to the following types: