withDeno
Method
interface BunAppResource { // ... omitted for brevity withDeno( install?: boolean, installArgs?: string[]): JavaScriptAppResource;}Signature
method
withDeno builderConfigures the JavaScript resource to use Deno as the package manager.
withDeno( install?: boolean, installArgs?: string[]): JavaScriptAppResourceParameters
installbooleanoptional= FalseWhen `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 string[]optionalAdditional command-line arguments passed to `deno install`.Returns
JavaScriptAppResource Applies to
This method applies to the following types: