@pnpm/lockfile-utils
Advanced tools
Comparing version
@@ -8,3 +8,3 @@ "use strict"; | ||
const dependency_path_1 = require("dependency-path"); | ||
const fromPairs_1 = __importDefault(require("ramda/src/fromPairs")); | ||
const fromPairs_js_1 = __importDefault(require("ramda/src/fromPairs.js")); | ||
function extendProjectsWithTargetDirs(projects, lockfile, ctx) { | ||
@@ -14,3 +14,3 @@ const getLocalLocation = ctx.pkgLocationByDepPath != null | ||
: (depPath, pkgName) => path_1.default.join(ctx.virtualStoreDir, (0, dependency_path_1.depPathToFilename)(depPath), 'node_modules', pkgName); | ||
const projectsById = (0, fromPairs_1.default)(projects.map((project) => [project.id, { ...project, targetDirs: [] }])); | ||
const projectsById = (0, fromPairs_js_1.default)(projects.map((project) => [project.id, { ...project, targetDirs: [] }])); | ||
Object.entries(lockfile.packages ?? {}) | ||
@@ -17,0 +17,0 @@ .forEach(([depPath, pkg]) => { |
@@ -7,3 +7,3 @@ "use strict"; | ||
const types_1 = require("@pnpm/types"); | ||
const equals_1 = __importDefault(require("ramda/src/equals")); | ||
const equals_js_1 = __importDefault(require("ramda/src/equals.js")); | ||
exports.default = (lockfile, pkg, importerId) => { | ||
@@ -13,6 +13,6 @@ const importer = lockfile.importers[importerId]; | ||
return false; | ||
if (!(0, equals_1.default)({ ...pkg.devDependencies, ...pkg.dependencies, ...pkg.optionalDependencies }, importer.specifiers)) { | ||
if (!(0, equals_js_1.default)({ ...pkg.devDependencies, ...pkg.dependencies, ...pkg.optionalDependencies }, importer.specifiers)) { | ||
return false; | ||
} | ||
if (!(0, equals_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {})) | ||
if (!(0, equals_js_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {})) | ||
return false; | ||
@@ -19,0 +19,0 @@ for (const depField of types_1.DEPENDENCIES_FIELDS) { |
{ | ||
"name": "@pnpm/lockfile-utils", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"description": "Utils for dealing with pnpm-lock.yaml", | ||
@@ -27,5 +27,5 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/lockfile-utils": "4.0.8", | ||
"@pnpm/lockfile-utils": "4.0.9", | ||
"@types/js-yaml": "^4.0.0", | ||
"@types/ramda": "0.27.39", | ||
"@types/ramda": "0.28.14", | ||
"tempy": "^1.0.0", | ||
@@ -41,3 +41,3 @@ "write-yaml-file": "^4.2.0", | ||
"get-npm-tarball-url": "^2.0.3", | ||
"ramda": "^0.27.1" | ||
"ramda": "^0.28.0" | ||
}, | ||
@@ -44,0 +44,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
23352
0.09%+ Added
- Removed
Updated