-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: 使用 Zod 时声明文件没有根据依赖及时生成 #733
Comments
father 的 bundless 不会记录模块间的关系,看来 d.ts 的 watch 还是得交给 ts program 来做 |
我浏览了 dts 的代码 father/src/builder/bundless/dts/index.ts Lines 146 to 158 in b1b2ec3
father/src/builder/bundless/dts/index.ts Lines 175 to 181 in b1b2ec3
所以其实 ts program 有正确的得出 |
在 cjs/esm 同时存在的情况下,会因为 ts 的增量编译而跳过 如果仅用 inputFiles 作为缓存初始值 可能存在某个 bundless 输出不全的问题
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
进行更新的The text was updated successfully, but these errors were encountered: