Skip to content

Commit c8bbba9

Browse files
authored
chore: pin dependencies to specific versions (#123)
1 parent 6a61df0 commit c8bbba9

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@strapi/sdk-plugin': patch
3+
---
4+
5+
Pin generated plugin devDependencies `typescript` and `@strapi/typescript-utils` to `^5` so install succeeds with Strapi 5 (avoids resolving TypeScript 6, which conflicts with `react-intl@6` peerOptional range).

src/cli/commands/utils/init/file-generator.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const generateFiles = async (
4747
},
4848
dependencies: {},
4949
devDependencies: {
50-
'@strapi/strapi': '*',
51-
'@strapi/sdk-plugin': '*',
50+
'@strapi/strapi': '^5.0.0',
51+
'@strapi/sdk-plugin': '^6.0.0',
5252
prettier: '*',
5353
},
5454
peerDependencies: {
@@ -107,15 +107,15 @@ export const generateFiles = async (
107107

108108
pkgJson.peerDependencies = {
109109
...pkgJson.peerDependencies,
110-
'@strapi/design-system': '*',
111-
'@strapi/icons': '*',
110+
'@strapi/design-system': '^2.0.0',
111+
'@strapi/icons': '^2.0.0',
112112
'react-intl': '^6.0.0',
113113
};
114114

115115
pkgJson.devDependencies = {
116116
...pkgJson.devDependencies,
117-
'@strapi/design-system': '*',
118-
'@strapi/icons': '*',
117+
'@strapi/design-system': '^2.0.0',
118+
'@strapi/icons': '^2.0.0',
119119
'react-intl': '^6.0.0',
120120
react: '^17.0.0 || ^18.0.0',
121121
'react-dom': '^17.0.0 || ^18.0.0',
@@ -190,8 +190,8 @@ export const generateFiles = async (
190190

191191
pkgJson.devDependencies = {
192192
...pkgJson.devDependencies,
193-
'@strapi/typescript-utils': '*',
194-
typescript: '*',
193+
'@strapi/typescript-utils': '^5',
194+
typescript: '^5',
195195
};
196196
} else {
197197
if (isRecord(pkgJson.exports['./strapi-admin'])) {

0 commit comments

Comments
 (0)