Optional
dirthe path to the folder where you wish to create your distribution release.
if a relative path is provided, then it will be resolved as a path relative to Deno's current working directory. (which is generally where deno.json
resides.)
the directory provided here will serve as esbuild configuration's ["outdir"] | outdir
option.
Optional
denothe path to your deno.json
file for this project.
if a relative path is provided, then it will be resolved as a path relative to Deno's current working directory. (which is also where deno.json
generally resides.)
Optional
logselect logging level:
false
or "none"
: skip logging (dnt
itself will still log).true
or "basic"
: log what is being carried out at the top level."verbose"
: in addition to basic logging, it also logs which files/folders are being copied or generated.undefined
: unchange logging from previous state (which is "basic"
by default).Optional
dryrunenable dryrun
if you wish for nothing to be written onto the the filesystem.
Optional
passesspecify the number of compilation passes to perform:
"1"
implies a single-pass compilation, and only uses the buildDist function under the hood."2"
implies a double-pass compilation, which consists of two compilations, and is performed in the following set of steps:
Optional
splitenable esbuild's code splitting option.
you will probably want this turned on if you are transpiling multiple entry-points, so that the distribution files are overall shared and smaller in size.
Optional
minifyminify the output code, or apply minification of only one type ("syntax"
, "whitespace"
, or "identifiers"
).
note that when minify
is true
, EsBuildOptions.treeShaking also occurs by default.
Optional
format{@inheritDoc dist!EsBuildOptions.format}
Optional
configa path to an dist-build configuration json file that provides additional modifiable parameters. see CliConfigJson for more details on the available extended configurations. in case there is a contradiction between the CliConfigJson setting and the current cli args, the cli arg will take precedence.
the cli args for generating the documentation of your deno project to via the buildDist function.