You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can optionally define npm or pnpm overrides to enforce a specific dependency version
147
+
You can optionally define npm or pnpm overrides to enforce a specific dependency version
153
148
to be installed. This is useful if other libraries you depend on include different
154
-
versions of a package. This does nothing if `useYarn` is true;
149
+
versions of a package. This does nothing if `packageManager` is `yarn`;
155
150
*/
156
151
overrides: {
157
152
'lodash':'5.0.0'
158
153
}
159
154
/*
160
-
When `useYarn` is true, you can optionally define yarn resolutions to enforce a
155
+
When `packageManager` is `yarn`, you can optionally define yarn resolutions to enforce a
161
156
specific dependency version to be installed. This is useful if other libraries
162
157
you depend on include different versions of a package.
163
158
*/
@@ -209,11 +204,11 @@ The `name` can be used to try just one scenario using the `ember try:one` comman
209
204
210
205
##### Yarn
211
206
212
-
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.
207
+
If you include `packageManager: 'yarn'` 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.
213
208
214
209
##### Pnpm
215
210
216
-
If you include `usePnpm: true` in your `ember-try` config, all npm scenarios will use `pnpm` for install with the `--no-lockfile` options. At cleanup, your dependencies will be restored to their prior state.
211
+
If you include `packageManager: 'pnpm'` in your `ember-try` config, all npm scenarios will use `pnpm` for install with the `--no-lockfile` options. At cleanup, your dependencies will be restored to their prior state.
217
212
218
213
> ⚠ pnpm versions from 8.0.0 to 8.6.x have the default value of [resolution-mode](https://pnpm.io/npmrc#resolution-mode) setting changed to `lowest-direct`. This violates `ember-try` expectations as `resolution-mode` is expected to be `highest`, like in `npm` and `pnpm` versions < 8.0.0 and >= 8.7.0.
'Detected a yarn.lock file. Add `useYarn: true` to your `config/ember-try.js` configuration file if you want to use Yarn to install npm dependencies.',
71
+
"Detected a yarn.lock file. Add `packageManager: 'yarn'` to your `config/ember-try.js` configuration file if you want to use Yarn to install npm dependencies.",
expect(exitCode).to.equal(0,'exits 0 when all scenarios succeed');
99
99
expect(output).to.include(
100
-
'Detected a yarn.lock file. Add `useYarn: true` to your `config/ember-try.js` configuration file if you want to use Yarn to install npm dependencies.',
100
+
"Detected a yarn.lock file. Add `packageManager: 'yarn'` to your `config/ember-try.js` configuration file if you want to use Yarn to install npm dependencies.",
0 commit comments