Skip to main content
Module

x/velociraptor/src/scripts_config.ts>DenoCliOptions

The npm-style script runner for Deno
Latest
interface DenoCliOptions
import { type DenoCliOptions } from "https://deno.land/x/velociraptor@1.5.0/src/scripts_config.ts";

Properties

optional
allow: Array<keyof AllowFlags> | AllowFlags

A list of boolean --allow-* deno cli options or a map of option names to values

# scripts.yaml
scripts:
 start: deno run server.ts
 allow:
   - net
   - read
optional
cachedOnly: boolean

Require that remote dependencies are already cached

optional
cert: string

The path to a PEM certificate file, passed to deno cli's --cert option.

optional
config: string

The path to a deno/TypeScript configuration file, passed to deno cli's --config option.

optional
importMap: string

The path to an import map json file, passed to deno cli's --import-map option.

optional
inspect: string | true

The hostname and port where to start the inspector, passed to deno cli's --inspect option.

optional
inspectBrk: string | true

Same as inspect, but breaks at start of user script.

optional
lock: string

The path to an existing lockfile, passed to deno cli's --lock option.

Note This doesn't create the lockfile, use --lock-write manually when appropriate

optional
log: string

The log level, passed to deno cli's --log-level option.

optional
noCheck: boolean

Skip type checking modules

optional
noRemote: boolean

Do not resolve remote modules

optional
quiet: boolean

Suppress diagnostic output

optional
reload: boolean | string | string[]

Reload source code cache (recompile TypeScript)

optional
unstable: boolean

Enable unstable APIs

optional
v8Flags: string[] | FlagsObject

A list of boolean V8 flags or a map of V8 option names to values

# scripts.yaml
scripts:
 start: deno run server.ts
 v8Flags:
   - expose-gc
   - async-stack-trace
optional
watch: boolean | string | string[]

Watch for file changes and restart process automatically. Local files from entry point module graph are watched by default. Additional paths might be watched by passing them as arguments to this option.

🧪 Unstable