Skip to content

Commit a968543

Browse files
authored
build: skip husky on CI (#118)
* build: skip husky on CI * fix: update package.json
1 parent 217604d commit a968543

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"@babel/core": "^7.12.10",
99
"@babel/plugin-transform-runtime": "^7.12.10",
1010
"@babel/preset-env": "^7.12.11",
11-
"@babel/preset-react":"7.13.13",
11+
"@babel/preset-react": "7.13.13",
1212
"@commitlint/cli": "^12.0.0",
1313
"@commitlint/config-conventional": "^12.0.0",
1414
"@rollup/plugin-babel": "^5.2.2",
@@ -18,6 +18,7 @@
1818
"cross-env": "^7.0.3",
1919
"eslint": "^7.18.0",
2020
"husky": "^6.0.0",
21+
"is-ci": "^3.0.0",
2122
"jest": "^26.6.3",
2223
"jest-junit": "^12.0.0",
2324
"lerna": "4.0.0",
@@ -37,7 +38,7 @@
3738
"test": "jest",
3839
"test:watch": "yarn run test --watch",
3940
"test:coverage": "yarn run test --coverage",
40-
"prepare": "husky install"
41+
"prepare": "is-ci || husky install"
4142
},
4243
"commitlint": {
4344
"extends": [

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,6 +3222,11 @@ ci-info@^2.0.0:
32223222
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
32233223
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
32243224

3225+
ci-info@^3.1.1:
3226+
version "3.1.1"
3227+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.1.1.tgz#9a32fcefdf7bcdb6f0a7e1c0f8098ec57897b80a"
3228+
integrity sha512-kdRWLBIJwdsYJWYJFtAFFYxybguqeF91qpZaggjG5Nf8QKdizFG2hjqvaTXbxFIcYbSaD74KpAXv6BSm17DHEQ==
3229+
32253230
cjs-module-lexer@^0.6.0:
32263231
version "0.6.0"
32273232
resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f"
@@ -5259,6 +5264,13 @@ is-ci@^2.0.0:
52595264
dependencies:
52605265
ci-info "^2.0.0"
52615266

5267+
is-ci@^3.0.0:
5268+
version "3.0.0"
5269+
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.0.tgz#c7e7be3c9d8eef7d0fa144390bd1e4b88dc4c994"
5270+
integrity sha512-kDXyttuLeslKAHYL/K28F2YkM3x5jvFPEw3yXbRptXydjD9rpLEz+C5K5iutY9ZiUu6AP41JdvRQwF4Iqs4ZCQ==
5271+
dependencies:
5272+
ci-info "^3.1.1"
5273+
52625274
is-core-module@^2.2.0:
52635275
version "2.2.0"
52645276
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a"

0 commit comments

Comments
 (0)