From 4acd9672741f693b24821795e07dc25b862b2224 Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Fri, 14 May 2021 10:24:53 -0600 Subject: [PATCH] getCurrentDependencies: Fix type. --- src/versionmanager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/versionmanager.ts b/src/versionmanager.ts index 9bee512b..67f327eb 100644 --- a/src/versionmanager.ts +++ b/src/versionmanager.ts @@ -524,7 +524,9 @@ export function getCurrentDependencies(pkgData: PackageFile = {}, options: Optio : ['dev', 'optional', 'peer', 'prod', 'bundle'] // map the dependency section option to a full dependency section name - const depSections = depOptions.map(short => short === 'prod' ? 'dependencies' : short + 'Dependencies') + const depSections = depOptions.map(short => + (short === 'prod' ? 'dependencies' : short + 'Dependencies') as keyof PackageFile + ) // get all dependencies from the selected sections // if a dependency appears in more than one section, take the lowest version number