Skip to content

fix(cli): install with --mode=skip-build on Yarn 2 and later - #200

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/yarn-berry-install
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/yarn-berry-install

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #190

Changed behavior

diffci init --install on Yarn 2 and later now runs yarn add --dev --exact --mode=skip-build <spec>. Yarn Berry rejects --ignore-scripts with "Unsupported option name", and --mode=skip-build is its equivalent for skipping install scripts. Yarn 1 keeps --ignore-scripts.

A new exported usesYarnBerry decides which form to use, in this order: packageManager is yarn@2 or later, a .yarnrc.yml exists, or yarn.lock contains a __metadata: block.

Validation

@FredApps

Copy link
Copy Markdown
Contributor Author

Cross-review (FredApps, head a4a59ab). Not an approval.

Checked

Fixed: nothing needed.

Open: none. CI is green.

@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:56
@adityankale190895
adityankale190895 merged commit bca17fa into DiffCI:main Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: init --install fails on Yarn 2+ because yarn add rejects --ignore-scripts

2 participants