Skip to content

Commit

Permalink
fix(cli): allow mutable install for monorepo yarn.lock with deprecate…
Browse files Browse the repository at this point in the history
…d flags (#2455)

Signed-off-by: Paul Schultz <pschultz@pobox.com>
  • Loading branch information
schultzp2020 authored Oct 29, 2024
1 parent b2283d8 commit e5c233d
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/pretty-humans-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@janus-idp/cli": patch
---

fix(cli): allow mutable install for monorepo yarn.lock with deprecated flags

This change updates the CLI to use `--no-immutable` when a plugin package or monorepo `yarn.lock` file is used during the `export-dynamic-plugin` command with deprecated flags. Explicitly passing this flag avoids the default Yarn 3.x behavior of `--immutable` when the command is run in a CI environment.
Original file line number Diff line number Diff line change
@@ -337,7 +337,7 @@ export async function backend(
? `${yarn} install --production${
yarnLockExists ? ' --frozen-lockfile' : ''
}`
: `${yarn} install${yarnLockExists ? ' --immutable' : ''}`;
: `${yarn} install${yarnLockExists ? ' --immutable' : ' --no-immutable'}`;

await Task.forCommand(yarnInstall, { cwd: target, optional: false });
await fs.remove(paths.resolveTarget('dist-dynamic', '.yarn'));

0 comments on commit e5c233d

Please sign in to comment.