Open ninesunsabiu opened 9 months ago
father 的 bundless 不会记录模块间的关系,看来 d.ts 的 watch 还是得交给 ts program 来做
我浏览了 dts 的代码
是否因为 这里的输出 output
被限制成了只跟输入 inputFiles
有关
所以其实 ts program 有正确的得出 A.d.ts
和 B.d.ts
(没有运行调试过不太确定)
注释中指向了一个 https://github.com/umijs/father-next/issues/43 ,如果放开对于 inputFiles
的限制,会不会对它有影响?
Version
4.3.7
OS Version
macOS 14.1.1 (23B81)
Node.js Version
v18.12.1
Link to minimal reproduction
https://github.com/ninesunsabiu/father-with-zod
Steps to reproduce
A.ts
What is expected?
A.d.ts
和B.d.ts
都可以得到正确的更新What is actually happening?
只有
A.d.ts
按照A.ts
进行了重新的生成,但是B.d.ts
没有任何的更新 造成了不正确Any additional comments? (optional)
使用了 tsc --watch 进行了对比, tsc 的 watch 是能根据
B => A
的关系,也把B.d.ts
进行更新的