mirror of
https://github.com/pelican-dev/plugins.git
synced 2026-05-09 00:08:54 +02:00
[PR #122] [MERGED] docs: use Corepack instead of npm i -g yarn in theme setup #123
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/plugins#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/plugins/pull/122
Author: @snxRCS
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/30/2026
Merged by: @Boy132
Base:
main← Head:patch-1📝 Commits (2)
ef5c4a4docs: use Corepack instead ofnpm i -g yarnin theme setup90b214dApply suggestions from code review📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
README.md(+5 -1)📄 Description
The theme setup snippet in
README.mdcurrently installs Yarn vianpm i -g yarn, which requires a global npm write and is the legacy way to get Yarn on Node.Node.js 22 ships with Corepack, the officially supported mechanism for managing package managers (Yarn, pnpm, ...). Enabling Corepack is a single command, avoids the global npm install, and makes the Yarn version pinned per-project (via the
packageManagerfield in a theme'spackage.json) rather than whatever happens to be globally installed on the host.Changes
## Additional setup for themesparagraph mentions Corepack instead of a global Yarn install.npm i -g yarnwithsudo corepack enable.No other changes; the NodeSource install step is untouched.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.