Skip to content

Commit

Permalink
Only install husky locally
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jun 13, 2023
1 parent fd26028 commit e70929e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"type": "commonjs",
"scripts": {
"postinstall": "husky install",
"prepare": "is-ci || husky install",
"bootstrap": "make bootstrap",
"codesandbox:build": "make build-no-bundle",
"build": "make build",
Expand Down Expand Up @@ -122,5 +122,8 @@
"PR: Revert :leftwards_arrow_with_hook:": ":leftwards_arrow_with_hook: Revert",
"PR: Output optimization :microscope:": ":microscope: Output optimization"
}
},
"dependencies": {
"is-ci": "^3.0.1"
}
}
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6286,6 +6286,7 @@ __metadata:
gulp-plumber: ^1.2.1
husky: ^7.0.4
import-meta-resolve: ^3.0.0
is-ci: ^3.0.1
jest: ^29.5.0
jest-light-runner: ^0.5.0
jest-worker: ^29.5.0
Expand Down Expand Up @@ -10193,6 +10194,17 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"is-ci@npm:^3.0.1":
version: 3.0.1
resolution: "is-ci@npm:3.0.1"
dependencies:
ci-info: ^3.2.0
bin:
is-ci: bin.js
checksum: 192c66dc7826d58f803ecae624860dccf1899fc1f3ac5505284c0a5cf5f889046ffeb958fa651e5725d5705c5bcb14f055b79150ea5fcad7456a9569de60260e
languageName: node
linkType: hard

"is-core-module@npm:^2.12.0, is-core-module@npm:^2.8.1":
version: 2.12.0
resolution: "is-core-module@npm:2.12.0"
Expand Down

0 comments on commit e70929e

Please sign in to comment.