unjs / unbuild

📦 A unified JavaScript build system
MIT License
2.31k stars 90 forks source link

`declaration` option is not respected if `entries` is undefined / auto #339

Open NamesMT opened 10 months ago

NamesMT commented 10 months ago

Environment

unbuild@2.0.0

Reproduction

https://github.com/NamesMT/starter-ts Stackblitz/codespace/clone the repo, set declaration to false, and comment out entries prop

Describe the bug

When entries are undefined (Automated configurated), the declaration option is not respected and will just rely on the auto script mechanic.

https://github.com/unjs/unbuild/pull/314 should fix this

Additional context

No response

Logs

No response