Skip to main content
Module

x/denon/src/scripts.ts>ScriptOptions

👀 Monitor any changes in your Deno application and automatically restart.
Very Popular
Latest
interface ScriptOptions
import { type ScriptOptions } from "https://deno.land/x/denon@2.5.0/src/scripts.ts";

Additional script options.

These can be applied both in ScriptObjects and at top-level in which case they're applied to all the scripts defined in the file

Properties

A map of environment variables to be passed to the script

optional
allow: string[] | FlagsObject | "all"

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

optional
importMap: string

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

Note This currently requires the --unstable flag

optional
tsconfig: string

The path to a tsconfig json file, passed to deno cli's --tsconfig option.

optional
unstable: boolean

If the code that has to be run is using unstable features from deno standard library this option should be set to true so that --unstable option is passed to deno cli's.

optional
noCheck: boolean

Skip Typescript type checking module

optional
inspect: string

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

optional
inspectBrk: string

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
cert: string

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

optional
log: string

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

optional
watch: boolean

Should watch. Enabled by default. Toggle file watching for particular script.

optional
stdin:
| "inherit"
| "piped"
| "null"
| number

Standard i/o/err, to be passed directly to Deno.run.

optional
stdout:
| "inherit"
| "piped"
| "null"
| number
optional
stderr:
| "inherit"
| "piped"
| "null"
| number