Repository navigation
refactor: migrate to pnpm - #141
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request migrates the project from Yarn to pnpm as the package manager, replacing Yarn-specific tools with pnpm and Husky for git hooks management. The migration includes updates to scripts, CI workflows, and configuration files.
Key changes:
- Replaced all
yarncommands withpnpmequivalents in package.json scripts and CI workflows - Migrated from Yarn's git hooks plugin to Husky v9 for managing pre-commit and commit-msg hooks
- Updated CI workflows to use pnpm action and caching, with matrix strategy for better organization
- Removed legacy Yarn configuration files (.yarnrc.yml, Yarn plugins) and replaced with pnpm configuration (.npmrc)
Reviewed Changes
Copilot reviewed 12 out of 15 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updated all scripts to use pnpm, added husky dependency, configured packageManager and engines for pnpm, added postinstall and prepare scripts |
| .yarnrc.yml | Removed Yarn configuration file |
| .yarn/plugins/@yarnpkg/plugin-git-hooks.cjs | Removed Yarn git hooks plugin |
| .npmrc | Added pnpm configuration for hoisting and workspace settings |
| .husky/pre-commit | Added Husky pre-commit hook for lint-staged |
| .husky/commit-msg | Added Husky commit-msg hook for commitlint |
| .husky/install.mjs | Added install script to skip Husky in production/CI |
| .gitpod.yml | Removed Gitpod Yarn install task |
| .github/workflows/continuous-integration.yml | Updated to use pnpm with action-setup, matrix strategy, and pnpm caching |
| .github/workflows/continuous-delivery.yml | Added HUSKY=0 environment variable to disable Husky in CI |
| .github/hooks/pre-commit | Removed legacy Yarn pre-commit hook |
| .github/hooks/commit-msg | Removed legacy Yarn commit-msg hook |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…le publish image action
…ent to APIButtonComponent
…roxy URL handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request migrates the project from Yarn to pnpm as the package manager and replaces the use of Yarn-specific tools and configurations with pnpm and Husky. It also updates the CI workflow, cleans up legacy files, and introduces several improvements for dependency management and developer experience.
Key changes include:
Migration from Yarn to pnpm:
package.jsonto use pnpm instead of yarn for commands likebuild,dev,prisma:generate, and others. Addedhuskyandpnpmas dependencies, and updated thepackageManagerandenginesfields accordingly. [1] [2] [3] [4] [5].npmrcwith pnpm-specific settings for hoisting and workspace checks.Husky and Git Hooks Integration:
.husky/commit-msg,.husky/pre-commit,.husky/install.mjs) to manage git hooks using pnpm and lint-staged, replacing the old Yarn-based hooks. [1] [2] [3].github/hooks/commit-msg,.github/hooks/pre-commit,.yarn/plugins/@yarnpkg/plugin-git-hooks.cjs). [1] [2] [3].yarnrc.ymlwhich referenced the old hooks and plugins.Continuous Integration Workflow Updates:
.github/workflows/continuous-integration.ymlto use pnpm for installing dependencies, generating Prisma types, and running scripts. Also updated to use Node.js matrix and pnpm caching.General Cleanup:
.gitpod.ymlas part of the migration.These changes collectively modernize the project's dependency management and CI process, streamline git hook handling, and improve overall developer experience.