umijs / father

NPM package development tool
MIT License
2.14k stars 274 forks source link

feat: 配置增加declaration配置,支持自定义导出路径,不依赖tsconfig的declaration配置 #724

Open huxuezhi opened 1 year ago

huxuezhi commented 1 year ago

What problem does this feature solve?

因为在使用typescript v5中,启用allowImportingTsExtensions,要求"noEmit": true,然后导致无法发出类型文件warn - tsconfig.jsonnoEmitis true, will not emit declaration files! 同时有需求共用一份类型文件,无需为esm/cjs各生产一份类型文件,所以希望能支持类型自定义产出路径

Possible Solution (optional)

No response