refactor: rename lockfile-walker to lockfile.walker

This commit is contained in:
Zoltan Kochan
2024-07-28 01:42:38 +02:00
parent c5ef9b0643
commit c92f4bf282
25 changed files with 76 additions and 71 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/lockfile.walker": major
---
Renamed package from `@pnpm/lockfile-walker`.

View File

@@ -61,7 +61,7 @@
"@pnpm/link-bins": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.walker": "workspace:*",
"@pnpm/modules-yaml": "workspace:*",
"@pnpm/normalize-registries": "workspace:*",
"@pnpm/npm-package-arg": "catalog:",

View File

@@ -22,7 +22,7 @@ import {
packageIsIndependent,
type PackageSnapshots,
} from '@pnpm/lockfile.utils'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile.walker'
import { logger, streamParser } from '@pnpm/logger'
import { writeModulesManifest } from '@pnpm/modules-yaml'
import { createOrConnectStoreController } from '@pnpm/store-connection-manager'

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
import path from 'path'
import { type Lockfile, type TarballResolution } from '@pnpm/lockfile.types'
import { nameVerFromPkgSnapshot } from '@pnpm/lockfile.utils'
import { lockfileWalkerGroupImporterSteps, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
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'
import { safeReadProjectManifestOnly } from '@pnpm/read-project-manifest'

View File

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

View File

@@ -47,7 +47,7 @@
"@pnpm/error": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.walker": "workspace:*",
"@pnpm/package-is-installable": "workspace:*",
"@pnpm/types": "workspace:*",
"ramda": "catalog:"

View File

@@ -4,7 +4,7 @@ import {
type Lockfile,
type PackageSnapshots,
} from '@pnpm/lockfile.types'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile.walker'
import { logger } from '@pnpm/logger'
import { type DependenciesField, type DepPath, type ProjectId } from '@pnpm/types'
import { filterImporter } from './filterImporter'

View File

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

View File

@@ -1,6 +1,6 @@
{
"name": "@pnpm/lockfile-walker",
"version": "9.0.4",
"name": "@pnpm/lockfile.walker",
"version": "0.0.0",
"description": "Walk over all the dependencies in a lockfile",
"main": "lib/index.js",
"types": "lib/index.d.ts",
@@ -17,7 +17,7 @@
"prepublishOnly": "pnpm run compile",
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-walker",
"repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/walker",
"keywords": [
"pnpm9",
"pnpm",
@@ -28,9 +28,9 @@
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/lockfile-walker#readme",
"homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/walker#readme",
"devDependencies": {
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.walker": "workspace:*",
"tempy": "catalog:"
},
"dependencies": {

View File

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

View File

@@ -72,9 +72,6 @@
{
"path": "../../lockfile/lockfile-to-pnp"
},
{
"path": "../../lockfile/lockfile-walker"
},
{
"path": "../../lockfile/preferred-versions"
},
@@ -90,6 +87,9 @@
{
"path": "../../lockfile/verification"
},
{
"path": "../../lockfile/walker"
},
{
"path": "../../packages/calc-dep-state"
},

View File

@@ -45,7 +45,7 @@
"@pnpm/link-bins": "workspace:*",
"@pnpm/lockfile.types": "workspace:*",
"@pnpm/lockfile.utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/lockfile.walker": "workspace:*",
"@pnpm/matcher": "workspace:*",
"@pnpm/types": "workspace:*",
"@pnpm/util.lex-comparator": "catalog:",

View File

@@ -7,7 +7,7 @@ import {
type Lockfile,
nameVerFromPkgSnapshot,
} from '@pnpm/lockfile.utils'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile-walker'
import { lockfileWalker, type LockfileWalkerStep } from '@pnpm/lockfile.walker'
import { logger } from '@pnpm/logger'
import { createMatcher } from '@pnpm/matcher'
import { type DepPath, type HoistedDependencies, type ProjectId } from '@pnpm/types'

View File

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

74
pnpm-lock.yaml generated
View File

@@ -1949,15 +1949,15 @@ importers:
'@pnpm/link-bins':
specifier: workspace:*
version: link:../../pkg-manager/link-bins
'@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/lockfile.walker':
specifier: workspace:*
version: link:../../lockfile/walker
'@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-walker':
specifier: workspace:*
version: link:../lockfile-walker
'@pnpm/lockfile.detect-dep-types':
specifier: workspace:*
version: link:../detect-dep-types
@@ -2708,6 +2705,9 @@ importers:
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/lockfile.walker':
specifier: workspace:*
version: link:../walker
'@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-walker':
specifier: workspace:*
version: link:../lockfile-walker
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../utils
'@pnpm/lockfile.walker':
specifier: workspace:*
version: link:../walker
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -2939,25 +2939,6 @@ importers:
specifier: 'catalog:'
version: 0.29.12
lockfile/lockfile-walker:
dependencies:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/types':
specifier: workspace:*
version: link:../../packages/types
devDependencies:
'@pnpm/lockfile-walker':
specifier: workspace:*
version: 'link:'
tempy:
specifier: 'catalog:'
version: 1.0.1
lockfile/merge-lockfile-changes:
dependencies:
'@pnpm/lockfile.types':
@@ -3217,6 +3198,25 @@ importers:
specifier: 'catalog:'
version: 7.5.3
lockfile/walker:
dependencies:
'@pnpm/dependency-path':
specifier: workspace:*
version: link:../../packages/dependency-path
'@pnpm/lockfile.types':
specifier: workspace:*
version: link:../types
'@pnpm/types':
specifier: workspace:*
version: link:../../packages/types
devDependencies:
'@pnpm/lockfile.walker':
specifier: workspace:*
version: 'link:'
tempy:
specifier: 'catalog:'
version: 1.0.1
modules-mounter/daemon:
dependencies:
'@pnpm/config':
@@ -3873,9 +3873,6 @@ importers:
'@pnpm/lockfile-to-pnp':
specifier: workspace:*
version: link:../../lockfile/lockfile-to-pnp
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../../lockfile/lockfile-walker
'@pnpm/lockfile.filtering':
specifier: workspace:*
version: link:../../lockfile/filtering
@@ -3891,6 +3888,9 @@ importers:
'@pnpm/lockfile.verification':
specifier: workspace:*
version: link:../../lockfile/verification
'@pnpm/lockfile.walker':
specifier: workspace:*
version: link:../../lockfile/walker
'@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-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/lockfile.walker':
specifier: workspace:*
version: link:../../lockfile/walker
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0
@@ -6188,9 +6188,6 @@ importers:
'@pnpm/error':
specifier: workspace:*
version: link:../../packages/error
'@pnpm/lockfile-walker':
specifier: workspace:*
version: link:../../lockfile/lockfile-walker
'@pnpm/lockfile.detect-dep-types':
specifier: workspace:*
version: link:../../lockfile/detect-dep-types
@@ -6203,6 +6200,9 @@ importers:
'@pnpm/lockfile.utils':
specifier: workspace:*
version: link:../../lockfile/utils
'@pnpm/lockfile.walker':
specifier: workspace:*
version: link:../../lockfile/walker
'@pnpm/logger':
specifier: ^5.0.0
version: 5.0.0

View File

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

View File

@@ -4,7 +4,7 @@ import { packageIsInstallable } from '@pnpm/package-is-installable'
import {
lockfileWalkerGroupImporterSteps,
type LockfileWalkerStep,
} from '@pnpm/lockfile-walker'
} from '@pnpm/lockfile.walker'
import { type DepTypes, DepType, detectDepTypes } from '@pnpm/lockfile.detect-dep-types'
import { type SupportedArchitectures, type DependenciesField, type ProjectId, type Registries } from '@pnpm/types'
import { getPkgInfo } from './getPkgInfo'

View File

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