/pnpm-monorepo

pnpm monorepo starter with ESLint + Prettier + Husky + Lint-staged + commitlin

Primary LanguageJavaScript

Next.js and Sanity.io monorepo

Prerequisites

Tools

You will need the following things properly installed on your computer.

PNPM install

  • If you have installed latest v18.x or greater node version in your system, then enable the pnpm using the below cmd
corepack enable
corepack prepare pnpm@latest --activate
  • If you are using lower version of node in your local system then check this page for additional installation methods https://pnpm.io/installation

Usage

Install packages

pnpm install

To run the linter

pnpm lint

To format the files

pnpm format