denoland / denoland/dnt

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

Open
#483 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.3k
Forks
49
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.