Skip to content

Commit d264d3b

Browse files
committed
fix: switch order position of yarn v1 args
1 parent f0d2c3a commit d264d3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/yarnpkg-core/sources/scriptUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,13 @@ export async function prepareExternalProject(cwd: PortablePath, outputPath: Port
290290
const yarnV1Args = configuration.settings.get(`enableScripts`)
291291
? []
292292
: [`--ignore-scripts`];
293-
const install = await execUtils.pipevp(`yarn`, [...yarnV1Args, `install`], {cwd, env, stdin, stdout, stderr, end: execUtils.EndStrategy.ErrorCode});
293+
const install = await execUtils.pipevp(`yarn`, [`install`, ...yarnV1Args], {cwd, env, stdin, stdout, stderr, end: execUtils.EndStrategy.ErrorCode});
294294
if (install.code !== 0)
295295
return install.code;
296296

297297
stdout.write(`\n`);
298298

299-
const pack = await execUtils.pipevp(`yarn`, [...workspaceCli, ...yarnV1Args, `pack`, `--filename`, npath.fromPortablePath(outputPath)], {cwd, env, stdin, stdout, stderr});
299+
const pack = await execUtils.pipevp(`yarn`, [...workspaceCli, `pack`, ...yarnV1Args, `--filename`, npath.fromPortablePath(outputPath)], {cwd, env, stdin, stdout, stderr});
300300
if (pack.code !== 0)
301301
return pack.code;
302302

0 commit comments

Comments
 (0)