diff options
author | Eric Reeves <eric@alluvium.com> | 2022-04-30 06:01:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-30 11:01:19 +0000 |
commit | 8400779e09d1a9e31429787c8620980c5a4c2051 (patch) | |
tree | 5010e9c9b578a8d10ed083d87cdfb7ef544d2ded /package.json | |
parent | Added build script for unix OSes (diff) | |
download | ferdium-server-8400779e09d1a9e31429787c8620980c5a4c2051.tar.gz ferdium-server-8400779e09d1a9e31429787c8620980c5a4c2051.tar.zst ferdium-server-8400779e09d1a9e31429787c8620980c5a4c2051.zip |
build: Do not run husky for production builds, only for dev builds (#12)
* Use 'is-ci' to determine if we are in a CI system
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json index 2379bc9..d7d8400 100644 --- a/package.json +++ b/package.json | |||
@@ -9,7 +9,7 @@ | |||
9 | "npm": "8.7.0" | 9 | "npm": "8.7.0" |
10 | }, | 10 | }, |
11 | "scripts": { | 11 | "scripts": { |
12 | "prepare": "husky install", | 12 | "prepare": "is-ci || husky install", |
13 | "start": "node server.js", | 13 | "start": "node server.js", |
14 | "test": "node ace test", | 14 | "test": "node ace test", |
15 | "lint": "eslint \"{app,public,start}/**/*.js\" --quiet --fix" | 15 | "lint": "eslint \"{app,public,start}/**/*.js\" --quiet --fix" |
@@ -53,6 +53,7 @@ | |||
53 | "eslint-config-airbnb-base": "^14.2.1", | 53 | "eslint-config-airbnb-base": "^14.2.1", |
54 | "eslint-plugin-import": "^2.23.4", | 54 | "eslint-plugin-import": "^2.23.4", |
55 | "husky": "^7.0.1", | 55 | "husky": "^7.0.1", |
56 | "is-ci": "3.0.1", | ||
56 | "prettier": "2.3.2" | 57 | "prettier": "2.3.2" |
57 | }, | 58 | }, |
58 | "autoload": { | 59 | "autoload": { |