Skip to content

Commit

Permalink
[wip] store resolved catalogs in lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Jan 21, 2024
1 parent 929493e commit bc2df3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lockfile/lockfile-types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface Lockfile {
importers: Record<string, ProjectSnapshot>
lockfileVersion: number | string
time?: Record<string, string>
catalogs?: CatalogSnapshots
packages?: PackageSnapshots
neverBuiltDependencies?: string[]
onlyBuiltDependencies?: string[]
Expand All @@ -33,6 +34,7 @@ export interface LockfileV6 {
importers: Record<string, ProjectSnapshotV6>
lockfileVersion: number | string
time?: Record<string, string>
catalogs?: CatalogSnapshots
packages?: PackageSnapshots
neverBuiltDependencies?: string[]
onlyBuiltDependencies?: string[]
Expand Down Expand Up @@ -137,3 +139,13 @@ export type PackageBin = string | { [name: string]: string }
* }
*/
export type ResolvedDependencies = Record<string, string>

export interface CatalogSnapshots {
default?: { [dependencyName: string]: ResolvedCatalogEntry }
[catalogName: string]: { [dependencyName: string]: ResolvedCatalogEntry } | undefined
}

export interface ResolvedCatalogEntry {
readonly specifier: string
readonly version: string
}
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc2df3f

Please sign in to comment.