From 1ae5050b18aec88ab5f34a4f685678206431c180 Mon Sep 17 00:00:00 2001 From: Daniel Garnier-Moiroux Date: Thu, 5 Sep 2019 08:34:47 +0200 Subject: [PATCH] Use "test" script in pre-push hook - The "test" script already does the linting, so there is no need for a "lint-test" script. --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9d7eee5..2768249 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,7 @@ "test": "npm run lint && npm run testonly", "testonly": "NODE_ENV=test mocha test/specs.js", "testonly-watch": "NODE_ENV=test mocha -w test/specs.js", - "lint": "standard", - "lint-test": "npm run lint && npm run test" + "lint": "standard" }, "bugs": { "url": "https://github.com/ilearnio/module-alias/issues" @@ -46,7 +45,7 @@ }, "husky": { "hooks": { - "pre-push": "npm run lint-test" + "pre-push": "npm run test" } } }