Skip to content

Commit

Permalink
include resolutions example
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanto committed Apr 5, 2019
1 parent ec74d81 commit c5283c4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = function() {
*/
useVersionCompatibility: true,
/*
If set to true, all npm scenarios will use `yarn` for install with the `--no-lockfile` option. At cleanup, your
If set to true, all npm scenarios will use `yarn` for install with the `--no-lockfile` option. At cleanup, your
dependencies will be restored to their prior state.
*/
useYarn: true,
Expand All @@ -141,7 +141,7 @@ module.exports = function() {
}
},
/*
When writing scenarios that depend upon ember versions supplied by bower, you must explictly remove the
When writing scenarios that depend upon ember versions supplied by bower, you must explictly remove the
npm ember-source dependency if your addon defines an ember-source in its own package.json devDependencies
*/
npm: {
Expand All @@ -162,6 +162,14 @@ module.exports = function() {
npm: {
devDependencies: {
'ember-source': '2.11.0'
},
/*
When `useYarn` is true, you can optionally define yarn resolutions to enforce a
specific dependency version to be installed. This is useful if other libraries
you depend on include different versions of a package.
*/
resolutions: {
'lodash': '5.0.0'
}
}
},
Expand Down

0 comments on commit c5283c4

Please sign in to comment.