From a5eaca25ba2c82cbce614341a80830971c42cc8d Mon Sep 17 00:00:00 2001 From: Chris Barth Date: Wed, 6 Mar 2024 12:33:21 -0600 Subject: [PATCH] Update `package.json` script to mirror `node-saml` --- package.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4eb40d0b..d8b9e32b 100644 --- a/package.json +++ b/package.json @@ -35,19 +35,21 @@ "scripts": { "build": "tsc", "changelog": "gren changelog --override --generate --head master", - "lint": "eslint --ext .ts \"**/*.ts\" --cache", + "lint": "eslint --ext .ts \"**/*.ts\" --cache && npm run prettier-check", "lint-watch": "onchange -k -p 100 \"**/*.ts\" -- eslint {{file}}", - "lint:fix": "eslint --ext .ts --fix src", + "lint:fix": "eslint --ext .ts --fix src && npm run prettier-format", "prepare": "tsc", "prettier-check": "prettier --config .prettierrc.json --check .", "prettier-format": "prettier --config .prettierrc.json --write .", - "prettier-watch": "onchange -k -p 100 \".\" -- prettier --config .prettierrc.json --write {{file}}", - "prerelease": "git clean -xfd && npm ci && npm test && npm run build", + "prettier-watch": "npm run prettier-format && onchange -k -p 100 \".\" -- prettier --config .prettierrc.json --write {{file}}", + "prerelease": "git clean -xfd && npm ci && npm run lint && npm test && npm run build", "release": "release-it", - "test": "npm run prettier-check && npm run lint && npm run tsc && nyc mocha", + "test": "npm run tsc && nyc mocha", "test-watch": "mocha --watch", "tsc": "tsc", "tsc-watch": "tsc --watch", + "update:major": "npx npm-check-updates -i", + "update:minor": "npx npm-check-updates -i -t minor", "watch": "concurrently --kill-others \"npm:*-watch\"" }, "dependencies": {