diff --git a/.changeset/proud-otters-clap.md b/.changeset/proud-otters-clap.md new file mode 100644 index 0000000000..7a6705721e --- /dev/null +++ b/.changeset/proud-otters-clap.md @@ -0,0 +1,5 @@ +--- +"@pnpm/lockfile.pruner": patch +--- + +Package renamed from `@pnpm/prune-lockfile`. diff --git a/lockfile/prune-lockfile/CHANGELOG.md b/lockfile/pruner/CHANGELOG.md similarity index 100% rename from lockfile/prune-lockfile/CHANGELOG.md rename to lockfile/pruner/CHANGELOG.md diff --git a/lockfile/prune-lockfile/README.md b/lockfile/pruner/README.md similarity index 100% rename from lockfile/prune-lockfile/README.md rename to lockfile/pruner/README.md diff --git a/lockfile/prune-lockfile/jest.config.js b/lockfile/pruner/jest.config.js similarity index 100% rename from lockfile/prune-lockfile/jest.config.js rename to lockfile/pruner/jest.config.js diff --git a/lockfile/prune-lockfile/package.json b/lockfile/pruner/package.json similarity index 88% rename from lockfile/prune-lockfile/package.json rename to lockfile/pruner/package.json index f31a97bf16..667534cb2a 100644 --- a/lockfile/prune-lockfile/package.json +++ b/lockfile/pruner/package.json @@ -1,6 +1,6 @@ { - "name": "@pnpm/prune-lockfile", - "version": "6.1.4", + "name": "@pnpm/lockfile.pruner", + "version": "0.0.0", "description": "Prune a 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/prune-lockfile", + "repository": "https://github.com/pnpm/pnpm/blob/main/lockfile/pruner", "keywords": [ "pnpm9", "pnpm", @@ -29,9 +29,9 @@ "bugs": { "url": "https://github.com/pnpm/pnpm/issues" }, - "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/prune-lockfile#readme", + "homepage": "https://github.com/pnpm/pnpm/blob/main/lockfile/pruner#readme", "devDependencies": { - "@pnpm/prune-lockfile": "workspace:*", + "@pnpm/lockfile.pruner": "workspace:*", "@types/ramda": "catalog:", "yaml-tag": "catalog:" }, diff --git a/lockfile/prune-lockfile/src/index.ts b/lockfile/pruner/src/index.ts similarity index 100% rename from lockfile/prune-lockfile/src/index.ts rename to lockfile/pruner/src/index.ts diff --git a/lockfile/prune-lockfile/test/index.ts b/lockfile/pruner/test/index.ts similarity index 99% rename from lockfile/prune-lockfile/test/index.ts rename to lockfile/pruner/test/index.ts index 34754149c8..4eb1d1ffc8 100644 --- a/lockfile/prune-lockfile/test/index.ts +++ b/lockfile/pruner/test/index.ts @@ -3,7 +3,7 @@ import { LOCKFILE_VERSION, WANTED_LOCKFILE } from '@pnpm/constants' import { pruneLockfile, pruneSharedLockfile, -} from '@pnpm/prune-lockfile' +} from '@pnpm/lockfile.pruner' import { type DepPath, type ProjectId } from '@pnpm/types' import yaml from 'yaml-tag' diff --git a/lockfile/prune-lockfile/test/tsconfig.json b/lockfile/pruner/test/tsconfig.json similarity index 100% rename from lockfile/prune-lockfile/test/tsconfig.json rename to lockfile/pruner/test/tsconfig.json diff --git a/lockfile/prune-lockfile/tsconfig.json b/lockfile/pruner/tsconfig.json similarity index 100% rename from lockfile/prune-lockfile/tsconfig.json rename to lockfile/pruner/tsconfig.json diff --git a/lockfile/prune-lockfile/tsconfig.lint.json b/lockfile/pruner/tsconfig.lint.json similarity index 100% rename from lockfile/prune-lockfile/tsconfig.lint.json rename to lockfile/pruner/tsconfig.lint.json diff --git a/packages/make-dedicated-lockfile/package.json b/packages/make-dedicated-lockfile/package.json index 9ab259f073..94c3dd483b 100644 --- a/packages/make-dedicated-lockfile/package.json +++ b/packages/make-dedicated-lockfile/package.json @@ -38,7 +38,7 @@ "@pnpm/find-workspace-dir": "workspace:*", "@pnpm/lockfile.fs": "workspace:*", "@pnpm/logger": "catalog:", - "@pnpm/prune-lockfile": "workspace:*", + "@pnpm/lockfile.pruner": "workspace:*", "@pnpm/read-project-manifest": "workspace:*", "@pnpm/types": "workspace:*", "ramda": "catalog:", diff --git a/packages/make-dedicated-lockfile/src/index.ts b/packages/make-dedicated-lockfile/src/index.ts index d264e49ccb..f5793c5506 100644 --- a/packages/make-dedicated-lockfile/src/index.ts +++ b/packages/make-dedicated-lockfile/src/index.ts @@ -7,7 +7,7 @@ import { readWantedLockfile, writeWantedLockfile, } from '@pnpm/lockfile.fs' -import { pruneSharedLockfile } from '@pnpm/prune-lockfile' +import { pruneSharedLockfile } from '@pnpm/lockfile.pruner' import { readProjectManifest } from '@pnpm/read-project-manifest' import { DEPENDENCIES_FIELDS, type ProjectId } from '@pnpm/types' import pickBy from 'ramda/src/pickBy' diff --git a/packages/make-dedicated-lockfile/tsconfig.json b/packages/make-dedicated-lockfile/tsconfig.json index c47ed4c8c7..7900adf802 100644 --- a/packages/make-dedicated-lockfile/tsconfig.json +++ b/packages/make-dedicated-lockfile/tsconfig.json @@ -16,7 +16,7 @@ "path": "../../lockfile/fs" }, { - "path": "../../lockfile/prune-lockfile" + "path": "../../lockfile/pruner" }, { "path": "../../pkg-manifest/exportable-manifest" diff --git a/pkg-manager/core/package.json b/pkg-manager/core/package.json index 786ba815fe..62108b2bd6 100644 --- a/pkg-manager/core/package.json +++ b/pkg-manager/core/package.json @@ -27,7 +27,6 @@ "@pnpm/dependency-path": "workspace:*", "@pnpm/deps.graph-sequencer": "workspace:*", "@pnpm/error": "workspace:*", - "@pnpm/lockfile.filtering": "workspace:*", "@pnpm/get-context": "workspace:*", "@pnpm/headless": "workspace:*", "@pnpm/hoist": "workspace:*", @@ -35,12 +34,14 @@ "@pnpm/hooks.types": "workspace:*", "@pnpm/lifecycle": "workspace:*", "@pnpm/link-bins": "workspace:*", - "@pnpm/lockfile.verification": "workspace:*", - "@pnpm/lockfile.fs": "workspace:*", "@pnpm/lockfile-to-pnp": "workspace:*", - "@pnpm/lockfile.utils": "workspace:*", - "@pnpm/lockfile.walker": "workspace:*", + "@pnpm/lockfile.filtering": "workspace:*", + "@pnpm/lockfile.fs": "workspace:*", "@pnpm/lockfile.preferred-versions": "workspace:*", + "@pnpm/lockfile.pruner": "workspace:*", + "@pnpm/lockfile.utils": "workspace:*", + "@pnpm/lockfile.verification": "workspace:*", + "@pnpm/lockfile.walker": "workspace:*", "@pnpm/manifest-utils": "workspace:*", "@pnpm/matcher": "workspace:*", "@pnpm/modules-cleaner": "workspace:*", @@ -51,7 +52,6 @@ "@pnpm/parse-overrides": "workspace:*", "@pnpm/parse-wanted-dependency": "workspace:*", "@pnpm/pkg-manager.direct-dep-linker": "workspace:*", - "@pnpm/prune-lockfile": "workspace:*", "@pnpm/read-modules-dir": "workspace:*", "@pnpm/read-project-manifest": "workspace:*", "@pnpm/remove-bins": "workspace:*", diff --git a/pkg-manager/core/src/link/index.ts b/pkg-manager/core/src/link/index.ts index 32f17d816d..d96508dee3 100644 --- a/pkg-manager/core/src/link/index.ts +++ b/pkg-manager/core/src/link/index.ts @@ -20,7 +20,7 @@ import { type PackageSpecObject, updateProjectManifestObject, } from '@pnpm/manifest-utils' -import { pruneSharedLockfile } from '@pnpm/prune-lockfile' +import { pruneSharedLockfile } from '@pnpm/lockfile.pruner' import { readProjectManifest } from '@pnpm/read-project-manifest' import { symlinkDirectRootDependency } from '@pnpm/symlink-dependency' import { diff --git a/pkg-manager/core/tsconfig.json b/pkg-manager/core/tsconfig.json index ae43939ba8..2a76b03387 100644 --- a/pkg-manager/core/tsconfig.json +++ b/pkg-manager/core/tsconfig.json @@ -76,7 +76,7 @@ "path": "../../lockfile/preferred-versions" }, { - "path": "../../lockfile/prune-lockfile" + "path": "../../lockfile/pruner" }, { "path": "../../lockfile/types" diff --git a/pkg-manager/headless/package.json b/pkg-manager/headless/package.json index eab842e101..db2fbb6ef7 100644 --- a/pkg-manager/headless/package.json +++ b/pkg-manager/headless/package.json @@ -73,12 +73,12 @@ "@pnpm/dependency-path": "workspace:*", "@pnpm/deps.graph-builder": "workspace:*", "@pnpm/error": "workspace:*", - "@pnpm/lockfile.filtering": "workspace:*", "@pnpm/hoist": "workspace:*", "@pnpm/lifecycle": "workspace:*", "@pnpm/link-bins": "workspace:*", - "@pnpm/lockfile.fs": "workspace:*", "@pnpm/lockfile-to-pnp": "workspace:*", + "@pnpm/lockfile.filtering": "workspace:*", + "@pnpm/lockfile.fs": "workspace:*", "@pnpm/lockfile.utils": "workspace:*", "@pnpm/modules-cleaner": "workspace:*", "@pnpm/modules-yaml": "workspace:*", diff --git a/pkg-manager/resolve-dependencies/package.json b/pkg-manager/resolve-dependencies/package.json index 7f11008119..6ad56b8eaf 100644 --- a/pkg-manager/resolve-dependencies/package.json +++ b/pkg-manager/resolve-dependencies/package.json @@ -42,7 +42,7 @@ "@pnpm/npm-resolver": "workspace:*", "@pnpm/pick-fetcher": "workspace:*", "@pnpm/pick-registry-for-package": "workspace:*", - "@pnpm/prune-lockfile": "workspace:*", + "@pnpm/lockfile.pruner": "workspace:*", "@pnpm/read-package-json": "workspace:*", "@pnpm/resolver-base": "workspace:*", "@pnpm/store-controller-types": "workspace:*", diff --git a/pkg-manager/resolve-dependencies/src/updateLockfile.ts b/pkg-manager/resolve-dependencies/src/updateLockfile.ts index f244c3b3e1..4260c315c1 100644 --- a/pkg-manager/resolve-dependencies/src/updateLockfile.ts +++ b/pkg-manager/resolve-dependencies/src/updateLockfile.ts @@ -4,7 +4,7 @@ import { type LockfileResolution, type PackageSnapshot, pruneSharedLockfile, -} from '@pnpm/prune-lockfile' +} from '@pnpm/lockfile.pruner' import { type DirectoryResolution, type Resolution } from '@pnpm/resolver-base' import { type DepPath, type Registries } from '@pnpm/types' import * as dp from '@pnpm/dependency-path' diff --git a/pkg-manager/resolve-dependencies/tsconfig.json b/pkg-manager/resolve-dependencies/tsconfig.json index e996cd2bc1..9f8d154ab6 100644 --- a/pkg-manager/resolve-dependencies/tsconfig.json +++ b/pkg-manager/resolve-dependencies/tsconfig.json @@ -25,7 +25,7 @@ "path": "../../lockfile/preferred-versions" }, { - "path": "../../lockfile/prune-lockfile" + "path": "../../lockfile/pruner" }, { "path": "../../lockfile/types" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index aafe5c0bd7..f5a987d346 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3062,7 +3062,7 @@ importers: specifier: workspace:* version: 'link:' - lockfile/prune-lockfile: + lockfile/pruner: dependencies: '@pnpm/constants': specifier: workspace:* @@ -3080,7 +3080,7 @@ importers: specifier: 'catalog:' version: '@pnpm/ramda@0.28.1' devDependencies: - '@pnpm/prune-lockfile': + '@pnpm/lockfile.pruner': specifier: workspace:* version: 'link:' '@types/ramda': @@ -3449,12 +3449,12 @@ importers: '@pnpm/lockfile.fs': specifier: workspace:* version: link:../../lockfile/fs + '@pnpm/lockfile.pruner': + specifier: workspace:* + version: link:../../lockfile/pruner '@pnpm/logger': specifier: 'catalog:' version: 5.0.0 - '@pnpm/prune-lockfile': - specifier: workspace:* - version: link:../../lockfile/prune-lockfile '@pnpm/read-project-manifest': specifier: workspace:* version: link:../../pkg-manifest/read-project-manifest @@ -3882,6 +3882,9 @@ importers: '@pnpm/lockfile.preferred-versions': specifier: workspace:* version: link:../../lockfile/preferred-versions + '@pnpm/lockfile.pruner': + specifier: workspace:* + version: link:../../lockfile/pruner '@pnpm/lockfile.utils': specifier: workspace:* version: link:../../lockfile/utils @@ -3924,9 +3927,6 @@ importers: '@pnpm/pkg-manager.direct-dep-linker': specifier: workspace:* version: link:../direct-dep-linker - '@pnpm/prune-lockfile': - specifier: workspace:* - version: link:../../lockfile/prune-lockfile '@pnpm/read-modules-dir': specifier: workspace:* version: link:../../fs/read-modules-dir @@ -5045,6 +5045,9 @@ importers: '@pnpm/lockfile.preferred-versions': specifier: workspace:* version: link:../../lockfile/preferred-versions + '@pnpm/lockfile.pruner': + specifier: workspace:* + version: link:../../lockfile/pruner '@pnpm/lockfile.types': specifier: workspace:* version: link:../../lockfile/types @@ -5066,9 +5069,6 @@ importers: '@pnpm/pick-registry-for-package': specifier: workspace:* version: link:../../config/pick-registry-for-package - '@pnpm/prune-lockfile': - specifier: workspace:* - version: link:../../lockfile/prune-lockfile '@pnpm/read-package-json': specifier: workspace:* version: link:../../pkg-manifest/read-package-json diff --git a/renovate.json b/renovate.json index a461477375..6faf04f8d6 100644 --- a/renovate.json +++ b/renovate.json @@ -34,7 +34,7 @@ "@pnpm/package-requester", "@pnpm/package-store", "@pnpm/pkgid-to-filename", - "@pnpm/prune-lockfile", + "@pnpm/lockfile.pruner", "@pnpm/read-projects-context", "@pnpm/read-project-manifest", "@pnpm/read-modules-dir",