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

add-on registry tests last commit release

DDEV pnpm

Overview

pnpm is a fast, disk space efficient package manager.

This add-on integrates pnpm into your DDEV project.

Installation

ddev add-on get ddev/ddev-pnpm
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

Command Description
ddev pnpm Run pnpm from within the web container

Please refer to the documentation at pnpm.io

Advanced Customization

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

In a monorepo that doesn’t have a root level package.json, e.g.

.
├── .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:

ddev dotenv set .ddev/.env.web --pnpm-directory=frontend

Make sure to commit the .ddev/.env.web file to version control.

Credits

Contributed and maintained by @rellafella