From b55dc1864d7161d10597a6f37e8ff1f5932b30da Mon Sep 17 00:00:00 2001 From: Boaz Poolman Date: Mon, 30 Jun 2025 07:24:29 +0200 Subject: [PATCH] fix: add @strapi/typescript-utils to peerDependencies to prevent it from being bundled --- package.json | 2 ++ yarn.lock | 43 +++++++++++++++---------------------------- 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 7d52733..3d8b04f 100644 --- a/package.json +++ b/package.json @@ -83,6 +83,7 @@ "@strapi/design-system": "^2.0.0-rc.14", "@strapi/icons": "^2.0.0-rc.14", "@strapi/strapi": "^5.0.0", + "@strapi/typescript-utils": "^5.0.0", "@strapi/utils": "^5.0.0", "react": "^17.0.0 || ^18.0.0", "react-dom": "^17.0.0 || ^18.0.0", @@ -95,6 +96,7 @@ "@strapi/icons": "^2.0.0-rc.14", "@strapi/sdk-plugin": "^5.0.0", "@strapi/strapi": "^5.0.0", + "@strapi/typescript-utils": "^5.0.0", "@strapi/utils": "^5.0.0", "babel-eslint": "9.0.0", "cypress": "^13.9.0", diff --git a/yarn.lock b/yarn.lock index f079ed2..3513561 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2895,6 +2895,18 @@ prettier "3.3.3" typescript "5.3.2" +"@strapi/typescript-utils@^5.16.1": + version "5.16.1" + resolved "https://registry.yarnpkg.com/@strapi/typescript-utils/-/typescript-utils-5.16.1.tgz#df0fb6601a3e12914500d8264129f68cac9c02a0" + integrity sha512-2I1m2rbXCZzXZARzFSPvpNIGd4r+sBAanCZZAVfP1SSzZg9LbX3+h9HyPfx3WYQN0YOhgmtk79MZLIi9Pgj36g== + dependencies: + chalk "4.1.2" + cli-table3 "0.6.5" + fs-extra "11.2.0" + lodash "4.17.21" + prettier "3.3.3" + typescript "5.4.4" + "@strapi/ui-primitives@2.0.0-rc.14": version "2.0.0-rc.14" resolved "https://registry.yarnpkg.com/@strapi/ui-primitives/-/ui-primitives-2.0.0-rc.14.tgz#b09a93ef9a69971886f87cbed076d735af6f4909" @@ -12609,16 +12621,7 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -12727,14 +12730,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -13806,7 +13802,7 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -13824,15 +13820,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"