mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-28 03:51:40 -04:00
* feat: enhance `store prune` to clean global virtual store `pnpm store prune` will now clean the global virtual store via a new project registry and mark-and-sweep garbage collection. * test: add store prune test for transitive dependency preservation * refactor: extract global virtual store pruning logic to a new file * fix: improve symlink handling in global virtual store pruning * fix: optimize removal of unreachable packages in global virtual store * fix: refine project registry error handling Throw `PnpmError` for inaccessible projects and specifically clean up stale symlinks for `ENOENT` errors. * test: create virtual store with install command * refactor: standardize global virtual store directory structure by placing unscoped packages under an `@` scope. * test: update store prune tests to use `toContain` and `not.toContain` assertions` * fix: linting issues * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: implemented CR suggestions * fix: revert not needed change * fix: use `is-subdir` to accurately determine if symlink targets are within the global virtual store. * revert: changes in package.json files * test: add `--config.ci=false` to store prune tests
41 lines
671 B
JSON
41 lines
671 B
JSON
{
|
|
"extends": "@pnpm/tsconfig",
|
|
"compilerOptions": {
|
|
"outDir": "lib",
|
|
"rootDir": "src"
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"../../__typings__/**/*.d.ts"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "../../lockfile/fs"
|
|
},
|
|
{
|
|
"path": "../../packages/constants"
|
|
},
|
|
{
|
|
"path": "../../packages/core-loggers"
|
|
},
|
|
{
|
|
"path": "../../packages/logger"
|
|
},
|
|
{
|
|
"path": "../../packages/types"
|
|
},
|
|
{
|
|
"path": "../../resolving/resolver-base"
|
|
},
|
|
{
|
|
"path": "../../store/package-store"
|
|
},
|
|
{
|
|
"path": "../modules-yaml"
|
|
},
|
|
{
|
|
"path": "../read-projects-context"
|
|
}
|
|
]
|
|
}
|