Skip to content

fix(init): remove rc versions, @types/react 18, no run#120

Open
unrevised6419 wants to merge 1 commit intostrapi:mainfrom
unrevised6419:fix/wrong-init
Open

fix(init): remove rc versions, @types/react 18, no run#120
unrevised6419 wants to merge 1 commit intostrapi:mainfrom
unrevised6419:fix/wrong-init

Conversation

@unrevised6419
Copy link

Closes #119

@changeset-bot
Copy link

changeset-bot bot commented Mar 22, 2026

⚠️ No Changeset found

Latest commit: 2063dba

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment on lines -1 to -3
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Husky deprecated this syntax in 9, will be removed in 10

Comment on lines -1 to -3
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Husky deprecated this syntax in 9, will be removed in 10

@sonarqubecloud
Copy link

Comment on lines -120 to +121
react: '^17.0.0 || ^18.0.0',
'react-dom': '^17.0.0 || ^18.0.0',
react: '^18.0.0',
'react-dom': '^18.0.0',
Copy link
Author

@unrevised6419 unrevised6419 Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: In the end it will still resolve to the biggest from them. Also creating a new plugin with v17 kind of does not make sense.

Comment on lines -166 to +167
'@types/react': '*',
'@types/react-dom': '*',
'@types/react': '^18.0.0',
'@types/react-dom': '^18.0.0',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Without this the version resolves to v19

pkgJson.scripts = {
...pkgJson.scripts,
'test:ts:front': 'run -T tsc -p admin/tsconfig.json',
'test:ts:front': 'tsc -p admin/tsconfig.json',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: There is no such binary run

pkgJson.scripts = {
...pkgJson.scripts,
'test:ts:back': 'run -T tsc -p server/tsconfig.json',
'test:ts:back': 'tsc -p server/tsconfig.json',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: There is no such binary run

*/

// TODO: remove these when release versions are available
export const USE_RC_VERSIONS: string[] = ['@strapi/design-system', '@strapi/icons'];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: As of this writing the versions are 2.2.0

@unrevised6419 unrevised6419 changed the title fix(init): no @strapi/* rc, @types/react 18, no run fix(init): remove rc versions, @types/react 18, no run Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Plugin template seems to be outdated/broken

1 participant