Skip to content

Commit

Permalink
Merge pull request #318 from ryanto/document-resolutions
Browse files Browse the repository at this point in the history
Include resolutions example in README
  • Loading branch information
rwjblue authored Apr 8, 2019
2 parents 879ab2b + c5283c4 commit e85947e
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 e85947e

Please sign in to comment.