Skip to main content


Deno to npm package build tool.
Go to Latest
import * as dnt from "";


Builds the specified Deno module to an npm package using the TypeScript compiler.

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. Requires the --allow-read and --allow-write flag.


Provide true to use the shim in both the distributed code and test code, "dev" to only use it in the test code, or false to not use the shim at all.