withBuildScript
Method
interface BunAppResource { // ... omitted for brevity withBuildScript( scriptName: string, args?: string[]): JavaScriptAppResource;}Signature
method
withBuildScript builderAdds a build script annotation to the resource builder using the specified command-line arguments.
withBuildScript( scriptName: string, args?: string[]): JavaScriptAppResourceParameters
scriptName stringThe name of the script to be executed when the resource is built.argsstring[]optionalAn array of command-line arguments to use for the build script.Returns
JavaScriptAppResource Applies to
This method applies to the following types: