conditionally install husky

zio/stable
Eric Bailey 2023-07-13 15:55:30 -07:00
parent c83573bf97
commit 5a2401ada9
2 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,7 @@
"version": "1.41.0", "version": "1.41.0",
"private": true, "private": true,
"scripts": { "scripts": {
"prepare": "husky install", "prepare": "is-ci || husky install",
"postinstall": "patch-package", "postinstall": "patch-package",
"prebuild": "expo prebuild", "prebuild": "expo prebuild",
"android": "expo run:android", "android": "expo run:android",
@ -178,6 +178,7 @@
"eslint-plugin-ft-flow": "^2.0.3", "eslint-plugin-ft-flow": "^2.0.3",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"husky": "^8.0.3", "husky": "^8.0.3",
"is-ci": "^3.0.1",
"jest": "^29.4.3", "jest": "^29.4.3",
"jest-expo": "^48.0.2", "jest-expo": "^48.0.2",
"jest-junit": "^15.0.0", "jest-junit": "^15.0.0",

View File

@ -11678,6 +11678,13 @@ is-ci@^2.0.0:
dependencies: dependencies:
ci-info "^2.0.0" ci-info "^2.0.0"
is-ci@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867"
integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==
dependencies:
ci-info "^3.2.0"
is-core-module@^2.11.0, is-core-module@^2.9.0: is-core-module@^2.11.0, is-core-module@^2.9.0:
version "2.12.1" version "2.12.1"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd"