@pnpm/resolver-base
TypeScript icon, indicating that this package has built-in type declarations

12.0.1 • Public • Published

@pnpm/resolver-base

Types for pnpm-compatible resolvers

npm version

Installation

pnpm add @pnpm/resolver-base

Usage

Here's a template of a resolver using types from @pnpm/resolver-base:

import {
  ResolveOptions,
  ResolveResult,
  WantedDependency,
} from '@pnpm/resolver-base'

export async function testResolver (
  wantedDependency: WantedDependency,
  opts: ResolveOptions,
): Promise<ResolveResult> {
  // ...
  return {
    id,
    resolution,
    package,
    latest,
    normalizedPref,
  }
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @pnpm/resolver-base

Weekly Downloads

251,267

Version

12.0.1

License

MIT

Unpacked Size

5.48 kB

Total Files

6

Last publish

Collaborators

  • pnpmuser
  • zkochan