From 0313433929694795718c717c73898f71584d6316 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 15 Jun 2024 19:23:07 +0200 Subject: [PATCH] feat: improve npm scripts --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cdf44c7..922c6fb 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "rollup-plugin-visualizer": "^5.9.2" }, "scripts": { - "release": "node ./prerelease.js && npm run test && npm run build", + "release": "node ./prerelease.js && npm test && npm run build", "build": "rm -rf ./dist/ && npm run build:bundle && npm run build:minify", "build:bundle": "rollup -c", "build:minify": "minify ./dist/doip.core.js > ./dist/doip.core.min.js && minify ./dist/doip.fetchers.js > ./dist/doip.fetchers.min.js && minify ./dist/doip.fetchers.minimal.js > ./dist/doip.fetchers.minimal.min.js", @@ -67,7 +67,8 @@ "docs:lib": "jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json", "lint": "eslint ./src", "lint:fix": "eslint ./src --fix", - "test": "npm run lint && npm run license:check && mocha", + "pretest": "npm run lint && npm run license:check", + "test": "mocha", "prepare": "husky install" }, "repository": {