Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDeno

Method
📦 Aspire.Hosting.JavaScript v17.0.0
func (JavaScriptAppResource) WithDeno(options ...*WithDenoOptions) JavaScriptAppResource

Signature

methodWithDenobuilder
Configures the JavaScript resource to use Deno as the package manager.
WithDeno(options ...*WithDenoOptions) JavaScriptAppResource
options...*WithDenoOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDenoOptions argument.

Install*boolWhen true, creates an installer resource that runs deno install before the application starts. Defaults to false: unlike npm/Bun, Deno does not require a separate install step — deno run fetches and caches dependencies under DENO_DIR on first use — so no installer is wired by default. Set to true to pre-cache dependencies or to materialize a node_modules folder for Node compatibility.
InstallArgs[]stringAdditional command-line arguments passed to deno install.
JavaScriptAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: