Files
pnpm/packages/types
Dasa Paddock 29764fb140 feat(hooks): add beforePacking hook (#10303)
* feat(hooks): add `readPackageForPublishing` hook

* feat: pass project `dir` parameter to `readPackageForPublishing` hook

* chore: cleanup

* fix: add support for multiple pnpmfiles

* test: readPackageForPublishing hook

* test: add more tests

* test: small update

* refactor: pass in `hooks` as an option

* test: pass in `hooks` as an option

* test: small update

* chore: rename `readPackageForPublishing` to `beforePacking`
2025-12-21 15:49:47 +01:00
..
2025-10-21 15:30:20 +02:00
2025-11-13 15:44:27 +01:00

@pnpm/types

Basic types used by pnpm

npm version

Installation

pnpm add @pnpm/types

Usage

import { PackageManifest } from '@pnpm/types'

const pkg: PackageManifest = {
  name: 'foo',
  version: '1.0.0',
}

License

MIT