Skip to content
Docs Try Aspire

JavaScriptAppResource.withRunScript

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

Signature

method withRunScript builder
Specifies an npm script to run during development
withRunScript(
scriptName: string,
args?: string[]): JavaScriptAppResource
scriptName string
args string[] optional
JavaScriptAppResource

Defined on

This method is defined on the following type: