Skip to content

Switching to pnpm#2428

Merged
RobinTail merged 107 commits intomasterfrom
try-pnpm-again
Jun 11, 2025
Merged

Switching to pnpm#2428
RobinTail merged 107 commits intomasterfrom
try-pnpm-again

Conversation

@RobinTail
Copy link
Copy Markdown
Owner

@RobinTail RobinTail commented Feb 21, 2025

I see the need to migrate from yarn classic (despite my sincere love of it) because I noticed warnings in Node 24 environment about the deprecated methods used by yarn, that are (most likely) not going to be fixed, so that yarn classic would probably become non-operational in Node 25/26 (in a year).

Reiterating #2067
Based on the findings of #2427
And using the advantage of having workspaces introduced in #2374

Summary by CodeRabbit

Summary by CodeRabbit

  • Chores

    • Migrated project tooling and workflows from Yarn to pnpm for package management.
    • Updated all CI workflows and pre-commit hooks to use pnpm commands.
    • Adjusted documentation and contributing guidelines to reflect pnpm usage.
    • Introduced a pnpm workspace configuration and updated ignore files accordingly.
    • Updated package.json scripts and resolutions to align with pnpm usage.
    • Added explicit workspace dependencies in test and example projects for improved clarity and reliability.
  • Bug Fixes

    • Improved TypeScript compatibility with a workaround for a specific type error.
  • Refactor

    • Simplified internal scripts and utility logic by removing Ramda dependencies and adopting native JavaScript approaches.
  • Style

    • Updated package scripts and configuration files for consistency with pnpm standards.

@RobinTail RobinTail added dependencies Pull requests that update a dependency file CI/CD miracle Mysterious events are happening here labels Feb 21, 2025
@coveralls-official
Copy link
Copy Markdown

coveralls-official Bot commented Feb 21, 2025

Coverage Status

coverage: 100.0%. remained the same
when pulling 88a199d on try-pnpm-again
into 2315f29 on master.

@RobinTail
Copy link
Copy Markdown
Owner Author

looks like provenance is lost in beta.3

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
README.md (1)

168-168: Consider link readability and permanence.

Replacing the full URL with a TinyURL may obscure the destination and risks link rot if the redirect service changes. Prefer using the original URL or a project-controlled redirect for clarity and longevity.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dff1b18 and 0d26654.

📒 Files selected for processing (1)
  • README.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (7)
  • GitHub Check: build (20.x)
  • GitHub Check: build (22.0.0)
  • GitHub Check: build (24.x)
  • GitHub Check: build (24.0.0)
  • GitHub Check: build (20.9.0)
  • GitHub Check: build (22.x)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
README.md (1)

171-173: Approve updated pnpm installation commands.

The pnpm add commands correctly reflect the migration from Yarn to pnpm and are consistent with the PR objectives.

Copy link
Copy Markdown
Owner Author

@RobinTail RobinTail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready

@RobinTail RobinTail merged commit 377686e into master Jun 11, 2025
15 checks passed
@RobinTail RobinTail deleted the try-pnpm-again branch June 11, 2025 07:27
This was referenced Jun 11, 2025
RobinTail added a commit that referenced this pull request Jun 15, 2025
Addition to #2428 

It turned out that required peer dependencies are installed
automatically unless opted out:
https://pnpm.io/next/settings#autoinstallpeers

This might be a better solution since I want to absorb the validation
workflow into the existing integration tests without hoisting

Discovered while working on #2736 and might be needed to solve in
advance


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Chores**
- Updated dependencies across multiple packages to use a centralized
peer dependency catalog.
- Added a new peer dependency catalog to the workspace configuration,
listing key runtime and type definition packages.
- Adjusted package dependencies to reference the new peer catalog,
removing direct versioned dependencies where applicable.
- Added or updated peer dependencies for packages such as zod and
http-errors in relevant projects.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@coderabbitai coderabbitai Bot mentioned this pull request Dec 8, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation external bug it's a bug, but in a dependency miracle Mysterious events are happening here

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant