From 5a2401ada91a8998500945892956d49ec8d86dd9 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 13 Jul 2023 15:55:30 -0700 Subject: [PATCH] conditionally install husky --- package.json | 3 ++- yarn.lock | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 86bb8283..4f22c745 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.41.0", "private": true, "scripts": { - "prepare": "husky install", + "prepare": "is-ci || husky install", "postinstall": "patch-package", "prebuild": "expo prebuild", "android": "expo run:android", @@ -178,6 +178,7 @@ "eslint-plugin-ft-flow": "^2.0.3", "html-webpack-plugin": "^5.5.0", "husky": "^8.0.3", + "is-ci": "^3.0.1", "jest": "^29.4.3", "jest-expo": "^48.0.2", "jest-junit": "^15.0.0", diff --git a/yarn.lock b/yarn.lock index b6a72783..0169dede 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11678,6 +11678,13 @@ is-ci@^2.0.0: dependencies: 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: version "2.12.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd"