Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV
<a href="https://ddev.com/">
    <img src="https://raw.githubusercontent.com/ddev/ddev/master/images/ddev-logo.svg" alt="DDEV logo" height="80">
</a>
<a href="https://pnpm.io">
    <img src="https://avatars.githubusercontent.com/u/21320719?s=200&v=4" alt="pnpm Logo" height="80">
</a>
<h1 align="center">ddev-pnpm</h1>

tests project is maintained

What is pnpm?

Fast, disk space efficient package manager

For more information, visit pnpm.io

Installation

For DDEV v1.23.5 or above run

ddev add-on get envsa/ddev-pnpm

For earlier versions of DDEV run

ddev get envsa/ddev-pnpm

Then restart your project

ddev restart

Usage

ddev pnpm

Please refer to the documentation at pnpm.io

Working directory

By default, this add-on assumes your package.json is in the root of the DDEV project.

In a monorepo, such as the one below, package.json is in frontend.

.
├── .ddev
├── backend/
│   └── composer.json
└── frontend/
    └── package.json

To configure this addon to run PNPM commands for this example project, set a PNPM_DIRECTORY environment variable to frontend. For example: .ddev/.env

PNPM_DIRECTORY=frontend