fix(cli): don't early return when a dependency isn't installed (#8841)

This commit is contained in:
Daniel Roe 2021-02-16 22:46:35 +00:00 committed by GitHub
parent 3cd9d67825
commit d58c4f7299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ export function checkDependencies () {
for (const name in dependencies) { for (const name in dependencies) {
const installedVersion = getInstalledVersion(name) const installedVersion = getInstalledVersion(name)
if (!installedVersion) { if (!installedVersion) {
return // Ignore to avoid false-positive warnings continue // Ignore to avoid false-positive warnings
} }
const expectedRange = dependencies[name] const expectedRange = dependencies[name]
if (!satisfies(installedVersion, expectedRange)) { if (!satisfies(installedVersion, expectedRange)) {