pnpm-shrinkwrap
Advanced tools
Comparing version 5.4.0 to 6.0.0
@@ -39,2 +39,9 @@ "use strict"; | ||
}); | ||
if (shr.dependencies) { | ||
for (const dep of R.keys(shr.dependencies)) { | ||
if (!shrDependencies[dep] && shr.dependencies[dep].startsWith('link:')) { | ||
shrDependencies[dep] = shr.dependencies[dep]; | ||
} | ||
} | ||
} | ||
const devDepRelativePaths = R.keys(shrDevDependencies) | ||
@@ -41,0 +48,0 @@ .map((pkgName) => dependency_path_1.refToRelative(shrDevDependencies[pkgName], pkgName)); |
@@ -6,2 +6,3 @@ "use strict"; | ||
const path = require("path"); | ||
const R = require("ramda"); | ||
const rimraf = require("rimraf-then"); | ||
@@ -29,3 +30,3 @@ const promisify = require("util.promisify"); | ||
// empty shrinkwrap is not saved | ||
if (Object.keys(wantedShrinkwrap.specifiers).length === 0) { | ||
if (R.isEmpty(wantedShrinkwrap.specifiers || {}) && R.isEmpty(wantedShrinkwrap.dependencies || {})) { | ||
return rimraf(shrinkwrapPath); | ||
@@ -40,3 +41,3 @@ } | ||
// empty shrinkwrap is not saved | ||
if (Object.keys(wantedShrinkwrap.specifiers).length === 0) { | ||
if (R.isEmpty(wantedShrinkwrap.specifiers || {}) && R.isEmpty(wantedShrinkwrap.dependencies || {})) { | ||
return Promise.all([ | ||
@@ -43,0 +44,0 @@ rimraf(wantedShrinkwrapPath), |
{ | ||
"name": "pnpm-shrinkwrap", | ||
"version": "5.4.0", | ||
"version": "6.0.0", | ||
"description": "pnpm's shrinkwrap", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37593
508