Skip to content

Commit

Permalink
Merge pull request #153 from ember-cli/kg-update-readme
Browse files Browse the repository at this point in the history
Update README to indicate lockfiles are ignored for npm as well as yarn
  • Loading branch information
kategengler authored Oct 30, 2017
2 parents 23bc1e6 + 57b3233 commit 8335502
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ If no `config/ember-try.js` file is present, the default config will be used. Th
}
```

##### A note on npm scenarios / "What about yarn?"
##### Yarn

If you include `useYarn: true` in your `ember-try` config, all npm scenarios will use `yarn` for install with the `--no-lockfile` option.
If the project has a `yarn.lock`, it will be used *only* on cleanup to restore the project to a clean state.
If you include `useYarn: true` in your `ember-try` config, all npm scenarios will use `yarn` for install with the `--no-lockfile` option. At cleanup, your dependencies will be restored to their prior state.

###### But I use yarn, why `--no-lockfile`?
##### A note on npm scenarios with lockfiles

Lockfiles are ignored by `ember-try`. (`yarn` will run with `--no-lockfile` and `npm` will be run with `--no-shrinkwrap`).
When testing various scenarios, it's important to "float" dependencies so that the scenarios are run with the latest satisfying versions of dependencies a user of the project would get.

### Video
Expand Down

0 comments on commit 8335502

Please sign in to comment.