Skip to content

Commit

Permalink
getCurrentDependencies: Fix type.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed May 14, 2021
1 parent fc094cb commit 4acd967
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/versionmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4acd967

Please # to comment.