diff --git a/lib/private/resolve-external-context.js b/lib/private/resolve-external-context.js index 03aef19..69856a5 100644 --- a/lib/private/resolve-external-context.js +++ b/lib/private/resolve-external-context.js @@ -11,7 +11,11 @@ const getVersions = ({ externalContext: { metadata } }) => Object.keys(metadata. const resolveStableVersions = ({ externalContext: { metadata } }) => Object.entries(metadata.versions) - .filter(([, meta]) => !meta.deprecated) + .filter(([version, meta]) => { + if (meta.deprecated) return false; + const versionData = semver.parse(version); + return !versionData.prerelease.length; + }) .map(([version]) => version); const getGloballyInstalledVersion = async ({ linkedPath }) => {