JavaScriptAppResource.withRunScript

Method
📦 Aspire.Hosting.JavaScript v17.0.0
interface JavaScriptAppResource {
// ... 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
scriptNamestringThe name of the script to be executed when the resource is run.
argsstring[]optionalAn array of arguments to pass to the script.
JavaScriptAppResource

Defined on

This method is defined on the following type: