We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前 monorepoRedirect 功能只会做 alias 重定位源码位置到对应子包的 src/* (根据用户更改可能不同),但是类型会默认指到对应子包的 package.json#types 去,这往往在 dist 中,而开发时,对应子包如果修改了内容,往往不会更新 dist 的内容,所以就需要将 tsconfig 的 paths 指到对应的 src/* 去,确保类型总是最新的。
monorepoRedirect
src/*
package.json#types
dist
做法:使用 modifyTSConfig api 添加对应子包的 paths ,参考:
modifyTSConfig
paths
"@example/lib": ["/path/to/lib/src"], "@example/lib/*": ["/path/to/lib/src/*"],
The text was updated successfully, but these errors were encountered:
No branches or pull requests
说明
目前
monorepoRedirect
功能只会做 alias 重定位源码位置到对应子包的src/*
(根据用户更改可能不同),但是类型会默认指到对应子包的package.json#types
去,这往往在dist
中,而开发时,对应子包如果修改了内容,往往不会更新dist
的内容,所以就需要将 tsconfig 的 paths 指到对应的src/*
去,确保类型总是最新的。做法:使用
modifyTSConfig
api 添加对应子包的paths
,参考:The text was updated successfully, but these errors were encountered: