Files
pnpm/packages/types
Dasa Paddock 6d58b102a9 feat(hooks): add beforePacking hook (v10) (#10414)
* 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`

* test: fix
2026-01-07 01:21:50 +01:00
..
2025-12-15 12:10:26 +01:00
2025-12-15 12:10:26 +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