diff options
-rw-r--r-- | packages/astro/src/cli/add/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts index 8ddc0e7de..76323ca0b 100644 --- a/packages/astro/src/cli/add/index.ts +++ b/packages/astro/src/cli/add/index.ts @@ -642,15 +642,15 @@ async function convertIntegrationsToInstallSpecifiers( } /** - * Resolves package with a given range to a STABLE version - * peerDependencies might specify a compatible prerelease, - * but `astro add` should only ever install stable releases - */ + * Resolves package with a given range to a STABLE version + * peerDependencies might specify a compatible prerelease, + * but `astro add` should only ever install stable releases + */ async function resolveRangeToInstallSpecifier(name: string, range: string): Promise<string> { const versions = await fetchPackageVersions(name); if (versions instanceof Error) return name; // Filter out any prerelease versions - const stableVersions = versions.filter(v => !v.includes('-')); + const stableVersions = versions.filter((v) => !v.includes('-')); const maxStable = maxSatisfying(stableVersions, range); return `${name}@^${maxStable}`; } |