-
Notifications
You must be signed in to change notification settings - Fork 26
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
增加 @ant-design/pro-layout 的提示 #61
Comments
API 是兼容的,提示升级即可。 |
只有 pro-layout 一个包需要提示吗? |
@ant-design/icons 也额外检查一下吧,发现有的用户项目里有 @ant-design/icons@2.x 的依赖。 |
@alipay/tech-ui 也可以检测一下,具体版本咨询一下兼续。 |
这里有个问题,就是可能用户当前的 cwd 不一定有 package.json,或者传入的目标 cwd 不一定有 package.json 目前只能去嗅探这两个目录,及之间的目录是否存在 package.json,并进行检测和提示 看到有个社区包可以找到最近位置的 package.json,打算通过这个来实现 https://github.com/sindresorhus/pkg-up |
个人感觉根目录检测 package.json 应该是够了。再多想不到什么场景了。 |
最终方案:通过 read-pkg-up 读取 process.cwd() + targetPath 后的 path string 下最近的 package.json 进行检测 |
@alipay/tech-ui@1.14.0 |
所以 tech-ui 就是提示升级到 ^1.14.0 即可? |
|
提示用户升级到 5.0。
The text was updated successfully, but these errors were encountered: