mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 23:29:17 -05:00
refactor: rename filter-lockfile to lockfile.filtering
This commit is contained in:
5
.changeset/gold-impalas-film.md
Normal file
5
.changeset/gold-impalas-film.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/lockfile.filtering": major
|
||||
---
|
||||
|
||||
Renamed package from `@pnpm/filter-lockfile`.
|
||||
5
.changeset/rare-pandas-build.md
Normal file
5
.changeset/rare-pandas-build.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/lockfile.fs": major
|
||||
---
|
||||
|
||||
Package renamed from `@pnpm/lockfile-file`.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pnpm/filter-lockfile",
|
||||
"version": "9.0.9",
|
||||
"name": "@pnpm/lockfile.filtering",
|
||||
"version": "0.0.0",
|
||||
"description": "Filters a lockfile",
|
||||
"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/filter-lockfile",
|
||||
"repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/filtering",
|
||||
"keywords": [
|
||||
"pnpm9",
|
||||
"pnpm",
|
||||
@@ -29,12 +29,12 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/pnpm/pnpm/issues"
|
||||
},
|
||||
"homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/filter-lockfile#readme",
|
||||
"homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/filtering#readme",
|
||||
"peerDependencies": {
|
||||
"@pnpm/logger": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@pnpm/filter-lockfile": "workspace:*",
|
||||
"@pnpm/lockfile.filtering": "workspace:*",
|
||||
"@types/ramda": "catalog:",
|
||||
"detect-libc": "catalog:",
|
||||
"tempy": "catalog:",
|
||||
@@ -1,5 +1,5 @@
|
||||
import { LOCKFILE_VERSION, WANTED_LOCKFILE } from '@pnpm/constants'
|
||||
import { filterLockfileByImporters } from '@pnpm/filter-lockfile'
|
||||
import { filterLockfileByImporters } from '@pnpm/lockfile.filtering'
|
||||
import { type DepPath, type ProjectId } from '@pnpm/types'
|
||||
|
||||
test('filterByImporters(): only prod dependencies of one importer', () => {
|
||||
@@ -1,5 +1,5 @@
|
||||
import { LOCKFILE_VERSION } from '@pnpm/constants'
|
||||
import { filterLockfileByImportersAndEngine } from '@pnpm/filter-lockfile'
|
||||
import { filterLockfileByImportersAndEngine } from '@pnpm/lockfile.filtering'
|
||||
import { type DepPath, type ProjectId } from '@pnpm/types'
|
||||
|
||||
const REGIONAL_ARCH = Object.assign({}, process.arch)
|
||||
@@ -27,7 +27,7 @@
|
||||
"@pnpm/dependency-path": "workspace:*",
|
||||
"@pnpm/deps.graph-sequencer": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/filter-lockfile": "workspace:*",
|
||||
"@pnpm/lockfile.filtering": "workspace:*",
|
||||
"@pnpm/get-context": "workspace:*",
|
||||
"@pnpm/headless": "workspace:*",
|
||||
"@pnpm/hoist": "workspace:*",
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
} from '@pnpm/core-loggers'
|
||||
import {
|
||||
filterLockfileByImporters,
|
||||
} from '@pnpm/filter-lockfile'
|
||||
} from '@pnpm/lockfile.filtering'
|
||||
import { linkDirectDeps } from '@pnpm/pkg-manager.direct-dep-linker'
|
||||
import { type InstallationResultStats } from '@pnpm/headless'
|
||||
import { hoist, type HoistedWorkspaceProject } from '@pnpm/hoist'
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
"path": "../../hooks/types"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/filter-lockfile"
|
||||
"path": "../../lockfile/filtering"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/fs"
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
"@pnpm/dependency-path": "workspace:*",
|
||||
"@pnpm/deps.graph-builder": "workspace:*",
|
||||
"@pnpm/error": "workspace:*",
|
||||
"@pnpm/filter-lockfile": "workspace:*",
|
||||
"@pnpm/lockfile.filtering": "workspace:*",
|
||||
"@pnpm/hoist": "workspace:*",
|
||||
"@pnpm/lifecycle": "workspace:*",
|
||||
"@pnpm/link-bins": "workspace:*",
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
import {
|
||||
filterLockfileByEngine,
|
||||
filterLockfileByImportersAndEngine,
|
||||
} from '@pnpm/filter-lockfile'
|
||||
} from '@pnpm/lockfile.filtering'
|
||||
import { hoist, type HoistedWorkspaceProject } from '@pnpm/hoist'
|
||||
import {
|
||||
runLifecycleHooksConcurrently,
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"path": "../../fs/symlink-dependency"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/filter-lockfile"
|
||||
"path": "../../lockfile/filtering"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/fs"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
"dependencies": {
|
||||
"@pnpm/core-loggers": "workspace:*",
|
||||
"@pnpm/dependency-path": "workspace:*",
|
||||
"@pnpm/filter-lockfile": "workspace:*",
|
||||
"@pnpm/lockfile.filtering": "workspace:*",
|
||||
"@pnpm/lockfile.types": "workspace:*",
|
||||
"@pnpm/lockfile-utils": "workspace:*",
|
||||
"@pnpm/read-modules-dir": "workspace:*",
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
removalLogger,
|
||||
statsLogger,
|
||||
} from '@pnpm/core-loggers'
|
||||
import { filterLockfile, filterLockfileByImporters } from '@pnpm/filter-lockfile'
|
||||
import { filterLockfile, filterLockfileByImporters } from '@pnpm/lockfile.filtering'
|
||||
import {
|
||||
type Lockfile,
|
||||
type PackageSnapshots,
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"path": "../../fs/read-modules-dir"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/filter-lockfile"
|
||||
"path": "../../lockfile/filtering"
|
||||
},
|
||||
{
|
||||
"path": "../../lockfile/lockfile-utils"
|
||||
|
||||
22
pnpm-lock.yaml
generated
22
pnpm-lock.yaml
generated
@@ -2759,7 +2759,7 @@ importers:
|
||||
specifier: 'catalog:'
|
||||
version: 1.0.1
|
||||
|
||||
lockfile/filter-lockfile:
|
||||
lockfile/filtering:
|
||||
dependencies:
|
||||
'@pnpm/constants':
|
||||
specifier: workspace:*
|
||||
@@ -2792,7 +2792,7 @@ importers:
|
||||
specifier: 'catalog:'
|
||||
version: '@pnpm/ramda@0.28.1'
|
||||
devDependencies:
|
||||
'@pnpm/filter-lockfile':
|
||||
'@pnpm/lockfile.filtering':
|
||||
specifier: workspace:*
|
||||
version: 'link:'
|
||||
'@types/ramda':
|
||||
@@ -3849,9 +3849,6 @@ importers:
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/filter-lockfile':
|
||||
specifier: workspace:*
|
||||
version: link:../../lockfile/filter-lockfile
|
||||
'@pnpm/get-context':
|
||||
specifier: workspace:*
|
||||
version: link:../get-context
|
||||
@@ -3882,6 +3879,9 @@ importers:
|
||||
'@pnpm/lockfile-walker':
|
||||
specifier: workspace:*
|
||||
version: link:../../lockfile/lockfile-walker
|
||||
'@pnpm/lockfile.filtering':
|
||||
specifier: workspace:*
|
||||
version: link:../../lockfile/filtering
|
||||
'@pnpm/lockfile.fs':
|
||||
specifier: workspace:*
|
||||
version: link:../../lockfile/fs
|
||||
@@ -4212,9 +4212,6 @@ importers:
|
||||
'@pnpm/error':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/error
|
||||
'@pnpm/filter-lockfile':
|
||||
specifier: workspace:*
|
||||
version: link:../../lockfile/filter-lockfile
|
||||
'@pnpm/hoist':
|
||||
specifier: workspace:*
|
||||
version: link:../hoist
|
||||
@@ -4230,6 +4227,9 @@ importers:
|
||||
'@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
|
||||
@@ -4506,12 +4506,12 @@ importers:
|
||||
'@pnpm/dependency-path':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/dependency-path
|
||||
'@pnpm/filter-lockfile':
|
||||
specifier: workspace:*
|
||||
version: link:../../lockfile/filter-lockfile
|
||||
'@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
|
||||
|
||||
Reference in New Issue
Block a user