dnt icon indicating copy to clipboard operation
dnt copied to clipboard

Populate `entryPoints` from `deno.json#exports` or `jsr.json#exports`

Open rotu opened this issue 2 months ago • 0 comments

Exports are already declared in deno.json and/or jsr.json, but are required in BuildOptions. It would be nice if build() generated the entry points list.

This is what I have in my build script to do the same:

import { build } from "@deno/dnt"
import denojson from "../deno.json" with { type: "json" }

await build({
  //...
  entryPoints: Object.entries(denojson.exports).map(([name, path]) => ({
    name,
    path,
  })),
  //...
})

rotu avatar Oct 20 '25 20:10 rotu