From 48f500109314048231f2f0184dc6a114b2526b22 Mon Sep 17 00:00:00 2001 From: Gerald Baulig Date: Fri, 15 Nov 2024 12:26:41 +0100 Subject: [PATCH] fix(lint): add lint to test command --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e435f31..1a3a726 100644 --- a/package.json +++ b/package.json @@ -59,8 +59,8 @@ "build:es": "esbuild ./src/start.ts --bundle --platform=node --outfile=lib/start.cjs --minify --tree-shaking=true --sourcemap=inline", "build:clean": "rimraf lib", "build": "npm-run-all build:clean build:es", - "test": "c8 --reporter=text npm run mocha", - "mocha": "cross-env NODE_ENV=test node_modules/.bin/mocha --full-trace --exit --timeout 30000 -r dotenv/config", + "test": "npm-run-all lint mocha", + "mocha": "c8 --reporter=text cross-env NODE_ENV=test node_modules/.bin/mocha --full-trace --exit --timeout 30000 -r dotenv/config", "lcov-report": "c8 report --reporter=lcov", "prepare": "node -e \"try { require('husky').install() } catch (e) {}\"" },