@pnpm/types
Version:
Basic types used by pnpm
8 lines (7 loc) • 340 B
TypeScript
import type { DepPath } from './misc.js';
export type PackageVersionPolicy = (pkgName: string) => boolean | string[];
export interface AllowBuildContext {
trustPackageIdentity?: boolean;
}
export type AllowBuild = (depPath: DepPath, context?: AllowBuildContext) => boolean | undefined;
export type TrustPolicy = 'no-downgrade' | 'off';