@pnpm/resolver-base
v13.0.4
Published
Types for pnpm-compatible resolvers
Downloads
823,789
Readme
@pnpm/resolver-base
Types for pnpm-compatible resolvers
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