Skip to content

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

Description

@rotu

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,
  })),
  //...
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions