We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
install
1 parent 2d6cfbf commit 8ec61f3Copy full SHA for 8ec61f3
src/api.ts
@@ -257,10 +257,19 @@ export async function dedupeDependencies(
257
return;
258
}
259
if (isSupported) {
260
- await executeCommand(resolvedOptions.packageManager.command, ["dedupe"], {
261
- cwd: resolvedOptions.cwd,
262
- silent: resolvedOptions.silent,
263
- });
+ // https://classic.yarnpkg.com/en/docs/cli/dedupe
+ const isyarnv1 =
+ resolvedOptions.packageManager.name === "yarn" &&
+ resolvedOptions.packageManager.majorVersion === "1";
264
+
265
+ await executeCommand(
266
+ resolvedOptions.packageManager.command,
267
+ [isyarnv1 ? "install" : "dedupe"],
268
+ {
269
+ cwd: resolvedOptions.cwd,
270
+ silent: resolvedOptions.silent,
271
+ },
272
+ );
273
274
275
throw new Error(
0 commit comments