import { type BuildOptions } from "https://deno.land/x/dnt@0.38.1/mod.ts";
Properties
entryPoints: (string | EntryPoint)[]
Entrypoint(s) to the Deno module. Ex. ./mod.ts
shims: ShimOptions
Shims to use.
Type check the output.
"both"
- Type checks both the ESM and script modules separately. This is the recommended option when publishing a dual ESM and script package, but it runs slower so it's not the default."single"
- Type checks the ESM module only or the script module if not emitting ESM.false
- Do not type check the output.
Create declaration files.
"inline"
- Emit declaration files beside the .js files in both the esm and script folders. This is the recommended option when publishing a dual ESM and script package to npm."separate"
- Emits declaration files to thetypes
folder where both the ESM and script code share the same type declarations.false
- Do not emit declaration files.
Skip outputting the canonical TypeScript in the output directory before emitting.
Glob pattern to use to find tests files. Defaults to deno test
's pattern.
optional
mappings: SpecifierMappingsSpecifiers to map from and to.
This can be used to create a node specific file:
mappings: {
"./file.deno.ts": "./file.node.ts",
}
Or map a specifier to an npm package:
mappings: {
"https://deno.land/x/code_block_writer@11.0.0/mod.ts": {
name: "code-block-writer",
version: "^11.0.0",
}
package: PackageJson
Package.json output. You may override dependencies and dev dependencies in here.
Package manager used to install dependencies and run npm scripts. This also can be an absolute path to the executable file of package manager.
optional
compilerOptions: { importHelpers?: boolean; strictBindCallApply?: boolean; strictFunctionTypes?: boolean; strictNullChecks?: boolean; strictPropertyInitialization?: boolean; noImplicitAny?: boolean; noImplicitReturns?: boolean; noImplicitThis?: boolean; noStrictGenericChecks?: boolean; noUncheckedIndexedAccess?: boolean; target?: ScriptTarget; sourceMap?: SourceMapOptions; inlineSources?: boolean; lib?: LibName[]; skipLibCheck?: boolean; emitDecoratorMetadata?: boolean; useUnknownInCatchVariables?: boolean; }Optional TypeScript compiler options.
Filter out diagnostics that you want to ignore during type checking and emitting.