refactor: rename filter-utils to lockfile.utils

This commit is contained in:
Zoltan Kochan
2024-07-28 01:35:40 +02:00
parent 8055a30be1
commit c5ef9b0643
83 changed files with 196 additions and 191 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/lockfile.utils": major
---
Package renamed from `@pnpm/lockfile-utils".

View File

@@ -43,7 +43,7 @@
"@pnpm/core-loggers": "workspace:*",
"@pnpm/dependency-path": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",
"@pnpm/package-is-installable": "workspace:*",
"@pnpm/store-controller-types": "workspace:*",

View File

@@ -11,7 +11,7 @@ import {
nameVerFromPkgSnapshot,
packageIdFromSnapshot,
pkgSnapshotToResolution,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { logger } from '@pnpm/logger'
import { type IncludedDependencies } from '@pnpm/modules-yaml'
import { packageIsInstallable } from '@pnpm/package-is-installable'

View File

@@ -16,7 +16,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"

View File

@@ -60,7 +60,7 @@
"@pnpm/lifecycle": "workspace:*",
"@pnpm/link-bins": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",
"@pnpm/normalize-registries": "workspace:*",

View File

@@ -21,7 +21,7 @@ import {
nameVerFromPkgSnapshot,
packageIsIndependent,
type PackageSnapshots,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
import { logger, streamParser } from '@pnpm/logger'
import { writeModulesManifest } from '@pnpm/modules-yaml'

View File

@@ -39,15 +39,15 @@
{
"path": "../../deps/graph-sequencer"
},
{
"path": "../../lockfile/lockfile-utils"
},
{
"path": "../../lockfile/lockfile-walker"
},
{
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/utils"
},
{
"path": "../../packages/calc-dep-state"
},

View File

@@ -46,7 +46,7 @@
"@pnpm/fetching-types": "workspace:*",
"@pnpm/list": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.detect-dep-types": "workspace:*",
"@pnpm/read-project-manifest": "workspace:*",

View File

@@ -1,6 +1,6 @@
import path from 'path'
import { type Lockfile, type TarballResolution } from '@pnpm/lockfile.types'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import { lockfileWalkerGroupImporterSteps, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
import { detectDepTypes, type DepTypes, DepType } from '@pnpm/lockfile.detect-dep-types'
import { type DependenciesField, type ProjectId } from '@pnpm/types'

View File

@@ -39,14 +39,14 @@
{
"path": "../fs"
},
{
"path": "../lockfile-utils"
},
{
"path": "../lockfile-walker"
},
{
"path": "../types"
},
{
"path": "../utils"
}
]
}

View File

@@ -46,7 +46,7 @@
"@pnpm/dependency-path": "workspace:*",
"@pnpm/error": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/package-is-installable": "workspace:*",
"@pnpm/types": "workspace:*",

View File

@@ -4,7 +4,7 @@ import {
type Lockfile,
type PackageSnapshots,
} from '@pnpm/lockfile.types'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import { logger } from '@pnpm/logger'
import { packageIsInstallable } from '@pnpm/package-is-installable'
import { type DepPath, type SupportedArchitectures, type DependenciesField, type ProjectId } from '@pnpm/types'

View File

@@ -24,14 +24,14 @@
{
"path": "../../packages/types"
},
{
"path": "../lockfile-utils"
},
{
"path": "../lockfile-walker"
},
{
"path": "../types"
},
{
"path": "../utils"
}
]
}

View File

@@ -52,7 +52,7 @@
"@pnpm/git-resolver": "workspace:*",
"@pnpm/git-utils": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/merge-lockfile-changes": "workspace:*",
"@pnpm/types": "workspace:*",
"@pnpm/util.lex-comparator": "catalog:",

View File

@@ -27,14 +27,14 @@
{
"path": "../../resolving/git-resolver"
},
{
"path": "../lockfile-utils"
},
{
"path": "../merge-lockfile-changes"
},
{
"path": "../types"
},
{
"path": "../utils"
}
]
}

View File

@@ -41,7 +41,7 @@
"dependencies": {
"@pnpm/dependency-path": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/types": "workspace:*",
"@yarnpkg/pnp": "catalog:",
"normalize-path": "catalog:",

View File

@@ -3,7 +3,7 @@ import path from 'path'
import { type Lockfile } from '@pnpm/lockfile.fs'
import {
nameVerFromPkgSnapshot,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { type Registries } from '@pnpm/types'
import { depPathToFilename, refToRelative } from '@pnpm/dependency-path'
import { generateInlinedScript, type PackageRegistry } from '@yarnpkg/pnp'

View File

@@ -19,7 +19,7 @@
"path": "../fs"
},
{
"path": "../lockfile-utils"
"path": "../utils"
}
]
}

View File

@@ -33,7 +33,7 @@
"@pnpm/lockfile.preferred-versions": "workspace:*"
},
"dependencies": {
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/manifest-utils": "workspace:*",
"@pnpm/resolver-base": "workspace:*",
"@pnpm/types": "workspace:*",

View File

@@ -1,4 +1,4 @@
import { nameVerFromPkgSnapshot, type PackageSnapshots } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot, type PackageSnapshots } from '@pnpm/lockfile.utils'
import { getAllDependenciesFromManifest } from '@pnpm/manifest-utils'
import { DIRECT_DEP_SELECTOR_WEIGHT, type PreferredVersions } from '@pnpm/resolver-base'
import { type DependencyManifest, type ProjectManifest } from '@pnpm/types'

View File

@@ -19,7 +19,7 @@
"path": "../../resolving/resolver-base"
},
{
"path": "../lockfile-utils"
"path": "../utils"
}
]
}

View File

@@ -1,6 +1,6 @@
{
"name": "@pnpm/lockfile-utils",
"version": "11.0.4",
"name": "@pnpm/lockfile.utils",
"version": "0.0.0",
"description": "Utils for dealing with pnpm-lock.yaml",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@@ -18,7 +18,7 @@
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-utils",
"repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/utils",
"keywords": [
"pnpm9",
"pnpm",
@@ -29,9 +29,9 @@
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-utils#readme",
"homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/utils#readme",
"devDependencies": {
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@types/ramda": "catalog:",
"tempy": "catalog:",
"write-yaml-file": "catalog:",

View File

@@ -1,4 +1,4 @@
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
test('nameVerFromPkgSnapshot()', () => {
expect(nameVerFromPkgSnapshot('foo@some-weird-path', {

View File

@@ -1,4 +1,4 @@
import { pkgSnapshotToResolution } from '@pnpm/lockfile-utils'
import { pkgSnapshotToResolution } from '@pnpm/lockfile.utils'
test('pkgSnapshotToResolution()', () => {
expect(pkgSnapshotToResolution('foo@1.0.0', {

View File

@@ -36,7 +36,7 @@
"@pnpm/catalogs.types": "workspace:*",
"@pnpm/dependency-path": "workspace:*",
"@pnpm/get-context": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/read-package-json": "workspace:*",
"@pnpm/resolver-base": "workspace:*",

View File

@@ -7,7 +7,7 @@ import {
type ProjectSnapshot,
type PackageSnapshots,
} from '@pnpm/lockfile.types'
import { refIsLocalDirectory, refIsLocalTarball } from '@pnpm/lockfile-utils'
import { refIsLocalDirectory, refIsLocalTarball } from '@pnpm/lockfile.utils'
import { safeReadPackageJsonFromDir } from '@pnpm/read-package-json'
import { refToRelative } from '@pnpm/dependency-path'
import { type DirectoryResolution, type WorkspacePackages } from '@pnpm/resolver-base'

View File

@@ -34,10 +34,10 @@
"path": "../../resolving/resolver-base"
},
{
"path": "../lockfile-utils"
"path": "../types"
},
{
"path": "../types"
"path": "../utils"
}
]
}

View File

@@ -45,7 +45,7 @@
"@pnpm/config": "workspace:*",
"@pnpm/dependency-path": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/logger": "catalog:",
"@pnpm/store-path": "workspace:*",
"@pnpm/store.cafs": "workspace:*",

View File

@@ -4,7 +4,7 @@ import { getFilePathInCafs, getFilePathByModeInCafs, type PackageFilesIndex } fr
import { type Lockfile, readWantedLockfile, type PackageSnapshot, type TarballResolution } from '@pnpm/lockfile.fs'
import {
nameVerFromPkgSnapshot,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { type DepPath } from '@pnpm/types'
import * as schemas from 'hyperdrive-schemas'
import loadJsonFile from 'load-json-file'

View File

@@ -1,7 +1,7 @@
import path from 'path'
import { type Lockfile } from '@pnpm/lockfile.fs'
import { DEPENDENCIES_FIELDS, type ProjectId } from '@pnpm/types'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import * as dp from '@pnpm/dependency-path'
import normalize from 'normalize-path'

View File

@@ -16,7 +16,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/dependency-path"

View File

@@ -33,7 +33,7 @@
"@pnpm/crypto.object-hasher": "workspace:*",
"@pnpm/dependency-path": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/types": "workspace:*",
"sort-keys": "catalog:"
},

View File

@@ -13,10 +13,10 @@
"path": "../../crypto/object-hasher"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/types"
"path": "../../lockfile/utils"
},
{
"path": "../constants"

View File

@@ -48,7 +48,7 @@
"@pnpm/error": "workspace:*",
"@pnpm/fs.packlist": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",
"@pnpm/parse-wanted-dependency": "workspace:*",
"@pnpm/patching.apply-patch": "workspace:*",

View File

@@ -2,7 +2,7 @@ import path from 'path'
import { parseWantedDependency, type ParseWantedDependencyResult } from '@pnpm/parse-wanted-dependency'
import { prompt } from 'enquirer'
import { readCurrentLockfile, type TarballResolution } from '@pnpm/lockfile.fs'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import { PnpmError } from '@pnpm/error'
import { readModulesManifest } from '@pnpm/modules-yaml'
import { isGitHostedPkgUrl } from '@pnpm/pick-fetcher'

View File

@@ -34,7 +34,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"

View File

@@ -38,7 +38,7 @@
"@pnpm/lockfile.verification": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-to-pnp": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.preferred-versions": "workspace:*",
"@pnpm/manifest-utils": "workspace:*",

View File

@@ -35,7 +35,7 @@ import {
type PatchFile,
} from '@pnpm/lockfile.fs'
import { writePnpFile } from '@pnpm/lockfile-to-pnp'
import { extendProjectsWithTargetDirs } from '@pnpm/lockfile-utils'
import { extendProjectsWithTargetDirs } from '@pnpm/lockfile.utils'
import { allProjectsAreUpToDate, satisfiesPackageManifest } from '@pnpm/lockfile.verification'
import { getPreferredVersionsFromLockfileAndManifests } from '@pnpm/lockfile.preferred-versions'
import { logger, globalInfo, streamParser } from '@pnpm/logger'

View File

@@ -72,9 +72,6 @@
{
"path": "../../lockfile/lockfile-to-pnp"
},
{
"path": "../../lockfile/lockfile-utils"
},
{
"path": "../../lockfile/lockfile-walker"
},
@@ -87,6 +84,9 @@
{
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/utils"
},
{
"path": "../../lockfile/verification"
},

View File

@@ -79,7 +79,7 @@
"@pnpm/link-bins": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-to-pnp": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/modules-cleaner": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",
"@pnpm/package-is-installable": "workspace:*",

View File

@@ -37,7 +37,7 @@ import { writePnpFile } from '@pnpm/lockfile-to-pnp'
import {
extendProjectsWithTargetDirs,
nameVerFromPkgSnapshot,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import {
type LogBase,
logger,

View File

@@ -9,7 +9,7 @@ import {
nameVerFromPkgSnapshot,
packageIdFromSnapshot,
pkgSnapshotToResolution,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { type IncludedDependencies } from '@pnpm/modules-yaml'
import { packageIsInstallable } from '@pnpm/package-is-installable'
import { safeReadPackageJsonFromDir } from '@pnpm/read-package-json'

View File

@@ -49,7 +49,7 @@
"path": "../../lockfile/lockfile-to-pnp"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/calc-dep-state"

View File

@@ -44,7 +44,7 @@
"@pnpm/dependency-path": "workspace:*",
"@pnpm/link-bins": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/matcher": "workspace:*",
"@pnpm/types": "workspace:*",

View File

@@ -6,7 +6,7 @@ import { linkBinsOfPkgsByAliases, type WarnFunction } from '@pnpm/link-bins'
import {
type Lockfile,
nameVerFromPkgSnapshot,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
import { logger } from '@pnpm/logger'
import { createMatcher } from '@pnpm/matcher'

View File

@@ -12,15 +12,15 @@
{
"path": "../../config/matcher"
},
{
"path": "../../lockfile/lockfile-utils"
},
{
"path": "../../lockfile/lockfile-walker"
},
{
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"
},

View File

@@ -32,7 +32,7 @@
"@pnpm/dependency-path": "workspace:*",
"@pnpm/lockfile.filtering": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/read-modules-dir": "workspace:*",
"@pnpm/remove-bins": "workspace:*",
"@pnpm/store-controller-types": "workspace:*",

View File

@@ -10,7 +10,7 @@ import {
type PackageSnapshots,
type ProjectSnapshot,
} from '@pnpm/lockfile.types'
import { packageIdFromSnapshot } from '@pnpm/lockfile-utils'
import { packageIdFromSnapshot } from '@pnpm/lockfile.utils'
import { logger } from '@pnpm/logger'
import { readModulesDir } from '@pnpm/read-modules-dir'
import { type StoreController } from '@pnpm/store-controller-types'

View File

@@ -16,10 +16,10 @@
"path": "../../lockfile/filtering"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/types"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/core-loggers"

View File

@@ -32,7 +32,7 @@
"dependencies": {
"@pnpm/dependency-path": "workspace:*",
"@pnpm/error": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@yarnpkg/nm": "catalog:"
},
"funding": "https://opencollective.com/pnpm",

View File

@@ -3,7 +3,7 @@ import {
type Lockfile,
type ProjectId,
nameVerFromPkgSnapshot,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import * as dp from '@pnpm/dependency-path'
import { hoist as _hoist, HoisterDependencyKind, type HoisterTree, type HoisterResult } from '@yarnpkg/nm'

View File

@@ -16,7 +16,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/dependency-path"

View File

@@ -36,7 +36,7 @@
"@pnpm/dependency-path": "workspace:*",
"@pnpm/error": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile.preferred-versions": "workspace:*",
"@pnpm/manifest-utils": "workspace:*",
"@pnpm/npm-resolver": "workspace:*",

View File

@@ -14,7 +14,7 @@ import {
import {
nameVerFromPkgSnapshot,
pkgSnapshotToResolution,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { logger } from '@pnpm/logger'
import { pickRegistryForPackage } from '@pnpm/pick-registry-for-package'
import {

View File

@@ -21,9 +21,6 @@
{
"path": "../../fetching/pick-fetcher"
},
{
"path": "../../lockfile/lockfile-utils"
},
{
"path": "../../lockfile/preferred-versions"
},
@@ -33,6 +30,9 @@
{
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"
},

200
pnpm-lock.yaml generated
View File

@@ -1573,12 +1573,12 @@ importers:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../../lockfile/fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -1949,15 +1949,15 @@ importers:
'@pnpm/link-bins':
specifier: workspace:*
version: link:../../pkg-manager/link-bins
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../../lockfile/lockfile-walker
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../../lockfile/types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -2696,9 +2696,6 @@ importers:
'@pnpm/list':
specifier: workspace:*
version: link:../../reviewing/list
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../lockfile-utils
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../lockfile-walker
@@ -2708,6 +2705,9 @@ importers:
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -2770,15 +2770,15 @@ importers:
'@pnpm/error':
specifier: workspace:*
version: link:../../packages/error
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../lockfile-utils
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../lockfile-walker
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -2828,12 +2828,12 @@ importers:
'@pnpm/git-utils':
specifier: workspace:*
version: link:../../packages/git-utils
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../lockfile-utils
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -2907,12 +2907,12 @@ importers:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../lockfile-utils
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -2939,46 +2939,6 @@ importers:
specifier: 'catalog:'
version: 0.29.12
lockfile/lockfile-utils:
dependencies:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/pick-fetcher':
specifier: workspace:*
version: link:../../fetching/pick-fetcher
'@pnpm/resolver-base':
specifier: workspace:*
version: link:../../resolving/resolver-base
'@pnpm/types':
specifier: workspace:*
version: link:../../packages/types
get-npm-tarball-url:
specifier: 'catalog:'
version: 2.1.0
ramda:
specifier: 'catalog:'
version: '@pnpm/ramda@0.28.1'
devDependencies:
'@pnpm/lockfile-utils':
specifier: workspace:*
version: 'link:'
'@types/ramda':
specifier: 'catalog:'
version: 0.29.12
tempy:
specifier: 'catalog:'
version: 1.0.1
write-yaml-file:
specifier: 'catalog:'
version: 5.0.0
yaml-tag:
specifier: 'catalog:'
version: 1.1.0
lockfile/lockfile-walker:
dependencies:
'@pnpm/dependency-path':
@@ -3101,9 +3061,9 @@ importers:
lockfile/preferred-versions:
dependencies:
'@pnpm/lockfile-utils':
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../lockfile-utils
version: link:../utils
'@pnpm/manifest-utils':
specifier: workspace:*
version: link:../../pkg-manifest/manifest-utils
@@ -3159,6 +3119,46 @@ importers:
specifier: workspace:*
version: 'link:'
lockfile/utils:
dependencies:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/pick-fetcher':
specifier: workspace:*
version: link:../../fetching/pick-fetcher
'@pnpm/resolver-base':
specifier: workspace:*
version: link:../../resolving/resolver-base
'@pnpm/types':
specifier: workspace:*
version: link:../../packages/types
get-npm-tarball-url:
specifier: 'catalog:'
version: 2.1.0
ramda:
specifier: 'catalog:'
version: '@pnpm/ramda@0.28.1'
devDependencies:
'@pnpm/lockfile.utils':
specifier: workspace:*
version: 'link:'
'@types/ramda':
specifier: 'catalog:'
version: 0.29.12
tempy:
specifier: 'catalog:'
version: 1.0.1
write-yaml-file:
specifier: 'catalog:'
version: 5.0.0
yaml-tag:
specifier: 'catalog:'
version: 1.1.0
lockfile/verification:
dependencies:
'@pnpm/catalogs.types':
@@ -3170,12 +3170,12 @@ importers:
'@pnpm/get-context':
specifier: workspace:*
version: link:../../pkg-manager/get-context
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../lockfile-utils
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -3225,12 +3225,12 @@ importers:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../../lockfile/fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: 'catalog:'
version: 5.0.0
@@ -3341,12 +3341,12 @@ importers:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../dependency-path
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../../lockfile/types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/types':
specifier: workspace:*
version: link:../types
@@ -3667,12 +3667,12 @@ importers:
'@pnpm/fs.packlist':
specifier: workspace:*
version: link:../../fs/packlist
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../../lockfile/fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -3873,9 +3873,6 @@ importers:
'@pnpm/lockfile-to-pnp':
specifier: workspace:*
version: link:../../lockfile/lockfile-to-pnp
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../../lockfile/lockfile-walker
@@ -3888,6 +3885,9 @@ importers:
'@pnpm/lockfile.preferred-versions':
specifier: workspace:*
version: link:../../lockfile/preferred-versions
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/lockfile.verification':
specifier: workspace:*
version: link:../../lockfile/verification
@@ -4224,15 +4224,15 @@ importers:
'@pnpm/lockfile-to-pnp':
specifier: workspace:*
version: link:../../lockfile/lockfile-to-pnp
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.filtering':
specifier: workspace:*
version: link:../../lockfile/filtering
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../../lockfile/fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -4372,15 +4372,15 @@ importers:
'@pnpm/link-bins':
specifier: workspace:*
version: link:../link-bins
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../../lockfile/lockfile-walker
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../../lockfile/types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -4506,15 +4506,15 @@ importers:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.filtering':
specifier: workspace:*
version: link:../../lockfile/filtering
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../../lockfile/types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -4965,9 +4965,9 @@ importers:
'@pnpm/error':
specifier: workspace:*
version: link:../../packages/error
'@pnpm/lockfile-utils':
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
version: link:../../lockfile/utils
'@yarnpkg/nm':
specifier: 'catalog:'
version: 4.0.2(typanion@3.14.0)
@@ -5042,15 +5042,15 @@ importers:
'@pnpm/error':
specifier: workspace:*
version: link:../../packages/error
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.preferred-versions':
specifier: workspace:*
version: link:../../lockfile/preferred-versions
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../../lockfile/types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -6118,15 +6118,15 @@ importers:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.detect-dep-types':
specifier: workspace:*
version: link:../../lockfile/detect-dep-types
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../../lockfile/fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/matcher':
specifier: workspace:*
version: link:../../config/matcher
@@ -6188,9 +6188,6 @@ importers:
'@pnpm/error':
specifier: workspace:*
version: link:../../packages/error
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../../lockfile/lockfile-walker
@@ -6203,6 +6200,9 @@ importers:
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../../lockfile/types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -6313,12 +6313,12 @@ importers:
'@pnpm/hooks.read-package-hook':
specifier: workspace:*
version: link:../../hooks/read-package-hook
'@pnpm/lockfile-utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
'@pnpm/lockfile.fs':
specifier: workspace:*
version: link:../../lockfile/fs
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -6852,9 +6852,9 @@ importers:
'@pnpm/get-context':
specifier: workspace:*
version: link:../../pkg-manager/get-context
'@pnpm/lockfile-utils':
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/lockfile-utils
version: link:../../lockfile/utils
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0

View File

@@ -23,7 +23,7 @@
"@pnpm/local-resolver",
"@pnpm/lockfile-file",
"@pnpm/lockfile-types",
"@pnpm/lockfile-utils",
"@pnpm/lockfile.utils",
"@pnpm/logger",
"@pnpm/modules-cleaner",
"@pnpm/modules-yaml",

View File

@@ -34,7 +34,7 @@
"dependencies": {
"@pnpm/dependency-path": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile.detect-dep-types": "workspace:*",
"@pnpm/matcher": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",

View File

@@ -7,7 +7,7 @@ import {
import {
nameVerFromPkgSnapshot,
pkgSnapshotToResolution,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { type DepTypes, DepType } from '@pnpm/lockfile.detect-dep-types'
import { type Registries } from '@pnpm/types'
import { depPathToFilename, refToRelative } from '@pnpm/dependency-path'

View File

@@ -28,7 +28,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"

View File

@@ -38,7 +38,7 @@
"@pnpm/error": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.detect-dep-types": "workspace:*",
"@pnpm/package-is-installable": "workspace:*",

View File

@@ -14,7 +14,7 @@ import {
import loadJsonFile from 'load-json-file'
import { PnpmError } from '@pnpm/error'
import { type LicensePackage } from './licenses'
import { type DirectoryResolution, type PackageSnapshot, pkgSnapshotToResolution, type Resolution } from '@pnpm/lockfile-utils'
import { type DirectoryResolution, type PackageSnapshot, pkgSnapshotToResolution, type Resolution } from '@pnpm/lockfile.utils'
import { fetchFromDir } from '@pnpm/directory-fetcher'
const limitPkgReads = pLimit(4)

View File

@@ -1,5 +1,5 @@
import { type Lockfile, type TarballResolution } from '@pnpm/lockfile.types'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import { packageIsInstallable } from '@pnpm/package-is-installable'
import {
lockfileWalkerGroupImporterSteps,

View File

@@ -21,15 +21,15 @@
{
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
},
{
"path": "../../lockfile/lockfile-walker"
},
{
"path": "../../lockfile/types"
},
{
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"
},

View File

@@ -41,7 +41,7 @@
"@pnpm/error": "workspace:*",
"@pnpm/hooks.read-package-hook": "workspace:*",
"@pnpm/lockfile.fs": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/manifest-utils": "workspace:*",
"@pnpm/matcher": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",

View File

@@ -12,7 +12,7 @@ import {
type Lockfile,
type ProjectSnapshot,
} from '@pnpm/lockfile.fs'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile-utils'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import { getAllDependenciesFromManifest } from '@pnpm/manifest-utils'
import { parsePref } from '@pnpm/npm-resolver'
import { pickRegistryForPackage } from '@pnpm/pick-registry-for-package'

View File

@@ -31,7 +31,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/constants"

View File

@@ -50,7 +50,7 @@
"@pnpm/dependency-path": "workspace:*",
"@pnpm/error": "workspace:*",
"@pnpm/get-context": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/normalize-registries": "workspace:*",
"@pnpm/parse-wanted-dependency": "workspace:*",
"@pnpm/pick-registry-for-package": "workspace:*",

View File

@@ -5,7 +5,7 @@ import {
nameVerFromPkgSnapshot,
packageIdFromSnapshot,
type PackageSnapshot,
} from '@pnpm/lockfile-utils'
} from '@pnpm/lockfile.utils'
import { streamParser } from '@pnpm/logger'
import * as dp from '@pnpm/dependency-path'
import { type DepPath } from '@pnpm/types'

View File

@@ -34,7 +34,7 @@
"path": "../../lockfile/fs"
},
{
"path": "../../lockfile/lockfile-utils"
"path": "../../lockfile/utils"
},
{
"path": "../../packages/dependency-path"