Files
pnpm/config/reader
Dasa Paddock 2e55dcf130 fix: default to ['.'] for workspacePackagePatterns when packages field is missing (#10996)
Commit 6eedf828b removed the ['.'] fallback for workspacePackagePatterns
when pnpm-workspace.yaml has no packages field. This caused findPackages
to default to ['.', '**'], discovering ALL directories with package.json
as workspace projects. This is the same regression that was previously
reverted in 595cd414f (close #10571), reintroduced by #10127.

Projects like cdxgen that use pnpm-workspace.yaml only for settings
(e.g. minimumReleaseAge) without a packages field were broken because
test data directories were picked up as workspace projects.

close #10909
2026-03-19 00:59:19 +01:00
..

@pnpm/config

Gets configuration options for pnpm

npm version

Installation

pnpm add @pnpm/config

Usage

import { getConfig } from '@pnpm/config'

getConfig().then(pnpmConfig => console.log(pnpmConfig))

License

MIT