Skip to content

Instantly share code, notes, and snippets.

@programmer-fe3
programmer-fe3 / migrate-to-pnpm.md
Created July 17, 2024 15:58
Migrate to PNPM, Setup Local Workflows using husky

Remove yarn on package.json

Run npm pkg delete packageManager It will remove the defined packageManager on your root (eg. Local Disk C) package.json

Install pnpm

Follow this: https://pnpm.io/id/installation You can use any method to install pnpm Ensure pnpm has installed, run pnpm -v

@programmer-fe3
programmer-fe3 / husky-pre-push-hook.md
Last active July 8, 2024 10:58
Setup Husky pre-push hook

Get started

Install

npm install --save-dev husky
pnpm add --save-dev husky