JSPM

  • Created
  • Published
  • Downloads 639966
  • Score
    100M100P100Q185075F
  • License MIT

Types for pnpm-compatible resolvers

Package Exports

  • @pnpm/resolver-base

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pnpm/resolver-base) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@pnpm/resolver-base

Types for pnpm-compatible resolvers

npm version Build Status

Installation

npm i -S @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