mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-27 19:41:44 -04:00
* build: enable `@typescript-eslint/no-import-type-side-effects` * build: disable `@typescript-eslint/consistent-type-imports` * chore: apply fixes for `no-import-type-side-effects` pnpm exec eslint "**/src/**/*.ts" "**/test/**/*.ts" --fix
@pnpm/fetcher-base
Types for pnpm-compatible fetchers
Installation
pnpm add @pnpm/fetcher-base
Usage
Here's a template for a fetcher using types from @pnpm/fetcher-base:
import { Resolution } from '@pnpm/resolver-base'
import {
FetchOptions,
FetchResult,
} from '@pnpm/fetcher-base'
export async function demoFetcher (
resolution: Resolution,
targetFolder: string,
opts: FetchOptions,
): Promise<FetchResult> {
// ...
return {
filesIndex,
tempLocation,
}
}
License
MIT