diff --git a/.husky/pre-commit b/.husky/pre-commit index 5a182ef10..372362317 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - yarn lint-staged diff --git a/package.json b/package.json index 30bfa7a88..d016882f9 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "eslint-plugin-import": "^2.25.3", "execa": "^5.0.0", "fast-glob": "^3.3.2", - "husky": "^8.0.2", + "husky": "^9.1.7", "jest": "^26.6.2", "jest-circus": "^26.6.2", "jest-snapshot-serializer-raw": "^1.1.0", diff --git a/packages/cli/src/commands/init/init.ts b/packages/cli/src/commands/init/init.ts index 954afb0c7..efa36bda6 100644 --- a/packages/cli/src/commands/init/init.ts +++ b/packages/cli/src/commands/init/init.ts @@ -321,10 +321,9 @@ async function createFromTemplate({ } } catch (error) { logger.error( - `Installing Cocoapods failed. This doesn't affect project initialization and you can safely proceed. However, you will need to install Cocoapods manually when running iOS, follow additional steps in "Run instructions for iOS" section.\n\nError: ${ - (error as Error).message as string - }\n`, + `\nInstalling Cocoapods failed. This doesn't affect project initialization and you can safely proceed. However, you will need to install Cocoapods manually when running iOS, follow additional steps in "Run instructions for iOS" section.\n`, ); + logger.error((error as Error).message as string); } } } else { diff --git a/yarn.lock b/yarn.lock index 1a746bc1c..09cccd258 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5609,10 +5609,10 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" -husky@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.2.tgz#5816a60db02650f1f22c8b69b928fd6bcd77a236" - integrity sha512-Tkv80jtvbnkK3mYWxPZePGFpQ/tT3HNSs/sasF9P2YfkMezDl3ON37YN6jUUI4eTg5LcyVynlb6r4eyvOmspvg== +husky@^9.1.7: + version "9.1.7" + resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.7.tgz#d46a38035d101b46a70456a850ff4201344c0b2d" + integrity sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA== iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24"