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
Installation
npm i -S @pnpm/resolver-baseUsage
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,
}
}