UNPKG

isolate-package

Version:

Isolate monorepo packages to form a self-contained deployable unit

39 lines (33 loc) 923 B
import type { PackageManifest as PnpmPackageManifest } from "@pnpm/types"; /** * Represents a patch file entry in the pnpm lockfile. Contains the path to the * patch file and its content hash. */ export interface PatchFile { path: string; hash: string; } export type PackageManifest = PnpmPackageManifest & { packageManager?: string; pnpm?: { patchedDependencies?: Record<string, string>; [key: string]: unknown; }; }; export type WorkspacePackageInfo = { absoluteDir: string; /** * The path of the package relative to the workspace root. This is the path * referenced in the lock file. */ rootRelativeDir: string; /** The package.json file contents */ manifest: PackageManifest; }; export type PackagesRegistry = Record<string, WorkspacePackageInfo>; export type FirebaseFunctionsConfig = { source: string; runtime?: string; predeploy?: string[]; codebase?: string; };