@pnpm/hooks.read-package-hook
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -25,2 +25,8 @@ "use strict"; | ||
} | ||
if (Array.isArray(readPackageHook)) { | ||
hooks.push(...readPackageHook); | ||
} | ||
else if (readPackageHook) { | ||
hooks.push(readPackageHook); | ||
} | ||
if (peerDependencyRules != null && | ||
@@ -32,8 +38,2 @@ (!(0, isEmpty_1.default)(peerDependencyRules.ignoreMissing) || | ||
} | ||
if (Array.isArray(readPackageHook)) { | ||
hooks.push(...readPackageHook); | ||
} | ||
else if (readPackageHook) { | ||
hooks.push(readPackageHook); | ||
} | ||
if (hooks.length === 0) { | ||
@@ -40,0 +40,0 @@ return undefined; |
{ | ||
"name": "@pnpm/hooks.read-package-hook", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Creates the default package reader hook used by pnpm", | ||
@@ -34,3 +34,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@pnpm/hooks.read-package-hook": "2.0.1", | ||
"@pnpm/hooks.read-package-hook": "2.0.2", | ||
"@types/normalize-path": "^3.0.0", | ||
@@ -37,0 +37,0 @@ "@types/ramda": "0.28.15", |
Sorry, the diff of this file is not supported yet