yarnpkg/yarn
在 GitHub 查看yarn should warn if a resolution appears to attempt to change a top level dependency
Open
#7,320 创建于 2019年6月5日
cat-featuregood first issue
描述
Do you want to request a feature or report a bug? feature request
What is the current behavior?
Currently yarn why won't indicate any package info in the resolutions field
If the current behavior is a bug, please provide the steps to reproduce.
- install a package with any version, e.g
"pkg": "^1.0.0" - add
resolutionsfield in package.json,pkg: "1.0.0" - update
"pkg": "^1.0.0"to"pkg": "^2.0.0"in deps - run
yarn why pkg
It only displays "pkg": "^2.0.0" being used, but no info about pkg: "1.0.0", while in yarn.lock, can find pkg: "1.0.0" related info
What is the expected behavior? expect to display resolutions package info as well
Please mention your node.js, yarn and operating system version. yarn: 1.16.0 macOS node: 8.16.0