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