Skip to content
DocsTry Aspire
DocsTry

withRunScript

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

Signature

methodwithRunScriptbuilder
Adds a run script annotation to the specified JavaScript application resource builder, specifying the script to execute and its arguments during run mode.
withRunScript(
scriptName: string,
args?: string[]): JavaScriptAppResource
scriptNamestring
argsstring[]optional
JavaScriptAppResource

Applies to

This method applies to the following types: