Reputation: 48406
As we know, the resolutions is used to solve Dependency versions to automatically resolve with if conflicts occur between packages.
in bower.json
.
After searching this package.json page, I did not find the resolutions
is supported in it. Is there any reason why resolutions
should not be here or am I missing something?
Upvotes: 3
Views: 9032
Reputation: 2313
Yarn does have the resolutions
feature though, see doc here
yarn install --flat
Only allow one version of a package. On the first run this will prompt you to choose a single version for each package that is depended on at multiple version ranges. These will be added to your package.json under a resolutions field.
Upvotes: 2
Reputation: 13869
It's not in the package.json specification because it's part of the bower.json specification, which is different. bower.json files are included in packages you install with bower, not npm. So if I say:
bower install jquery
Then bower.json
will be in ./bower_components/jquery directory.
Upvotes: 2