Skip to content

Commit

Permalink
chore: use rc versions instead of beta (#28)
Browse files Browse the repository at this point in the history
* chore: use rc versions instead of beta

* chore: add changeset
  • Loading branch information
innerdvations authored Jul 23, 2024
1 parent 3802c9f commit 4711257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-flies-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@strapi/sdk-plugin': patch
---

Use rc versions instead of beta
4 changes: 2 additions & 2 deletions src/cli/commands/plugin/init/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import type { InitOptions, TemplateFile } from '@strapi/pack-up';
type ActionOptions = Pick<InitOptions, 'silent' | 'debug'>;

// TODO: remove these when release versions are available
const USE_BETA_VERSIONS: string[] = [
const USE_RC_VERSIONS: string[] = [
'@strapi/design-system',
'@strapi/icons',
'@strapi/strapi',
Expand Down Expand Up @@ -537,7 +537,7 @@ const resolveLatestVerisonOfDeps = async (

for (const [name, version] of Object.entries(deps)) {
try {
const range = USE_BETA_VERSIONS.includes(name) ? 'beta' : version;
const range = USE_RC_VERSIONS.includes(name) ? 'rc' : version;
const latestVersion = await getLatestVersion(name, { range });
latestDeps[name] = latestVersion ? `^${latestVersion}` : '*';
} catch (err) {
Expand Down

0 comments on commit 4711257

Please sign in to comment.