Files
pnpm/packages/resolver-base
Zoltan Kochan 97b986fbc8 feat: Node.js v10 is not supported anymore (#3121)
* feat: Node.js v10 is not supported anymore

BREAKING CHANGE:
2021-02-04 03:54:58 +02:00
..
2020-11-16 22:25:07 +02:00
2021-01-23 17:33:52 +02:00
2019-05-07 02:10:06 +03:00

@pnpm/resolver-base

Types for pnpm-compatible resolvers

npm version

Installation

<pnpm|npm|yarn> 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 (
  wantedDependency: WantedDependency,
  opts: ResolveOptions,
): Promise<ResolveResult> {
  // ...
  return {
    id,
    resolution,
    package,
    latest,
    normalizedPref,
  }
}

License

MIT © Zoltan Kochan