@pnpm/reviewing.dependencies-hierarchy
Advanced tools
Comparing version 3.1.7 to 3.1.8
@@ -8,3 +8,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const lockfile_file_1 = require("@pnpm/lockfile-file"); | ||
const lockfile_fs_1 = require("@pnpm/lockfile.fs"); | ||
const lockfile_detect_dep_types_1 = require("@pnpm/lockfile.detect-dep-types"); | ||
@@ -32,4 +32,4 @@ const modules_yaml_1 = require("@pnpm/modules-yaml"); | ||
}); | ||
const currentLockfile = (modules?.virtualStoreDir && await (0, lockfile_file_1.readCurrentLockfile)(modules.virtualStoreDir, { ignoreIncompatible: false })) ?? null; | ||
const wantedLockfile = await (0, lockfile_file_1.readWantedLockfile)(maybeOpts.lockfileDir, { ignoreIncompatible: false }); | ||
const currentLockfile = (modules?.virtualStoreDir && await (0, lockfile_fs_1.readCurrentLockfile)(modules.virtualStoreDir, { ignoreIncompatible: false })) ?? null; | ||
const wantedLockfile = await (0, lockfile_fs_1.readWantedLockfile)(maybeOpts.lockfileDir, { ignoreIncompatible: false }); | ||
if (projectPaths == null) { | ||
@@ -74,3 +74,3 @@ projectPaths = Object.keys(wantedLockfile?.importers ?? {}) | ||
async function dependenciesHierarchyForPackage(projectPath, currentLockfile, wantedLockfile, opts) { | ||
const importerId = (0, lockfile_file_1.getLockfileImporterId)(opts.lockfileDir, projectPath); | ||
const importerId = (0, lockfile_fs_1.getLockfileImporterId)(opts.lockfileDir, projectPath); | ||
if (!currentLockfile.importers[importerId]) | ||
@@ -77,0 +77,0 @@ return {}; |
@@ -1,2 +0,2 @@ | ||
import { type PackageSnapshots } from '@pnpm/lockfile-file'; | ||
import { type PackageSnapshots } from '@pnpm/lockfile.fs'; | ||
import { type DepTypes } from '@pnpm/lockfile.detect-dep-types'; | ||
@@ -3,0 +3,0 @@ import { type Registries } from '@pnpm/types'; |
@@ -8,3 +8,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const lockfile_utils_1 = require("@pnpm/lockfile-utils"); | ||
const lockfile_utils_1 = require("@pnpm/lockfile.utils"); | ||
const lockfile_detect_dep_types_1 = require("@pnpm/lockfile.detect-dep-types"); | ||
@@ -11,0 +11,0 @@ const dependency_path_1 = require("@pnpm/dependency-path"); |
@@ -1,2 +0,2 @@ | ||
import { type PackageSnapshots, type ProjectSnapshot } from '@pnpm/lockfile-file'; | ||
import { type PackageSnapshots, type ProjectSnapshot } from '@pnpm/lockfile.fs'; | ||
import { type DepTypes } from '@pnpm/lockfile.detect-dep-types'; | ||
@@ -3,0 +3,0 @@ import { type Registries } from '@pnpm/types'; |
@@ -1,2 +0,2 @@ | ||
import { type ProjectSnapshot } from '@pnpm/lockfile-file'; | ||
import { type ProjectSnapshot } from '@pnpm/lockfile.fs'; | ||
import { type TreeNodeId } from './TreeNodeId'; | ||
@@ -3,0 +3,0 @@ export interface getTreeNodeChildIdOpts { |
@@ -9,3 +9,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const lockfile_file_1 = require("@pnpm/lockfile-file"); | ||
const lockfile_fs_1 = require("@pnpm/lockfile.fs"); | ||
function getTreeNodeChildId(opts) { | ||
@@ -27,3 +27,3 @@ const depPath = (0, dependency_path_1.refToRelative)(opts.dep.ref, opts.dep.alias); | ||
const absoluteLinkedPath = path_1.default.join(opts.lockfileDir, opts.parentId.importerId, linkValue); | ||
const childImporterId = (0, lockfile_file_1.getLockfileImporterId)(opts.lockfileDir, absoluteLinkedPath); | ||
const childImporterId = (0, lockfile_fs_1.getLockfileImporterId)(opts.lockfileDir, absoluteLinkedPath); | ||
// A 'link:' reference may refer to a package outside of the pnpm workspace. | ||
@@ -30,0 +30,0 @@ // Return undefined in that case since it would be difficult to list/traverse |
{ | ||
"name": "@pnpm/reviewing.dependencies-hierarchy", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"description": "Creates a dependencies hierarchy for a symlinked `node_modules`", | ||
@@ -33,12 +33,12 @@ "main": "lib/index.js", | ||
"semver": "^7.6.2", | ||
"@pnpm/lockfile.fs": "1.0.0", | ||
"@pnpm/lockfile.utils": "1.0.0", | ||
"@pnpm/dependency-path": "5.1.3", | ||
"@pnpm/matcher": "6.0.0", | ||
"@pnpm/lockfile-file": "9.1.3", | ||
"@pnpm/lockfile.detect-dep-types": "2.0.4", | ||
"@pnpm/lockfile.detect-dep-types": "2.0.5", | ||
"@pnpm/modules-yaml": "13.1.4", | ||
"@pnpm/lockfile-utils": "11.0.4", | ||
"@pnpm/normalize-registries": "6.0.4", | ||
"@pnpm/read-modules-dir": "7.0.0", | ||
"@pnpm/read-package-json": "9.0.5", | ||
"@pnpm/normalize-registries": "6.0.4", | ||
"@pnpm/types": "11.1.0" | ||
"@pnpm/types": "11.1.0", | ||
"@pnpm/read-package-json": "9.0.5" | ||
}, | ||
@@ -48,5 +48,5 @@ "devDependencies": { | ||
"@types/semver": "7.5.3", | ||
"@pnpm/reviewing.dependencies-hierarchy": "3.1.7", | ||
"@pnpm/constants": "8.0.0", | ||
"@pnpm/test-fixtures": "0.1.28" | ||
"@pnpm/reviewing.dependencies-hierarchy": "3.1.8", | ||
"@pnpm/test-fixtures": "0.1.29" | ||
}, | ||
@@ -53,0 +53,0 @@ "funding": "https://opencollective.com/pnpm", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58714
+ Added@pnpm/lockfile.fs@1.0.0
+ Added@pnpm/lockfile.utils@1.0.0
+ Added@pnpm/lockfile.detect-dep-types@2.0.5(transitive)
+ Added@pnpm/lockfile.fs@1.0.0(transitive)
+ Added@pnpm/lockfile.merger@1.0.0(transitive)
+ Added@pnpm/lockfile.types@1.0.0(transitive)
+ Added@pnpm/lockfile.utils@1.0.0(transitive)
- Removed@pnpm/lockfile-file@9.1.3
- Removed@pnpm/lockfile-utils@11.0.4
- Removed@pnpm/lockfile-file@9.1.3(transitive)
- Removed@pnpm/lockfile-types@7.1.3(transitive)
- Removed@pnpm/lockfile-utils@11.0.4(transitive)
- Removed@pnpm/lockfile.detect-dep-types@2.0.4(transitive)
- Removed@pnpm/merge-lockfile-changes@6.0.5(transitive)