UNPKG

generate-license-file

Version:

Generates a text file containing all of the licenses for your production dependencies

39 lines (38 loc) 919 B
import { z } from "zod"; export type PnpmVersion = { major: number; minor: number; patch: number; }; declare const dependencyValidator: z.ZodEffects<z.ZodUnion<[z.ZodObject<{ name: z.ZodString; path: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; name: string; }, { path: string; name: string; }>, z.ZodObject<{ name: z.ZodString; paths: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { name: string; paths: string[]; }, { name: string; paths: string[]; }>]>, { name: string; paths: string[]; }, { path: string; name: string; } | { name: string; paths: string[]; }>; export type PnpmDependency = z.infer<typeof dependencyValidator>; export declare const getPnpmVersion: () => Promise<PnpmVersion>; export declare const getPnpmProjectDependencies: (projectDirectory: string) => Promise<PnpmDependency[]>; export {};