diff options
author | 2023-12-11 10:48:10 +0000 | |
---|---|---|
committer | 2023-12-11 10:48:10 +0000 | |
commit | d656797fced1f906a3a2ebdee74ae25588318fd4 (patch) | |
tree | bf9ce3f6b2faf44196f453115e1726722e5fbe09 | |
parent | a7c75b3339e6b1562d0d16ab6ef482840c51df68 (diff) | |
download | astro-d656797fced1f906a3a2ebdee74ae25588318fd4.tar.gz astro-d656797fced1f906a3a2ebdee74ae25588318fd4.tar.zst astro-d656797fced1f906a3a2ebdee74ae25588318fd4.zip |
[ci] format
-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}`; } |