From 9f80af6a080975d475997929fd1949868dba1cef Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Tue, 6 Feb 2024 23:42:50 -0300 Subject: [PATCH] husky -> run tests using pre-commit --- package-lock.json | 20 ++++++++++++++++++-- package.json | 6 ++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index ef5e7c0..1bb6c73 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@wpdas/naxios", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@wpdas/naxios", - "version": "1.4.0", + "version": "1.4.1", "license": "MIT", "dependencies": { "@near-wallet-selector/core": "^8.9.1", @@ -27,6 +27,7 @@ "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", + "husky": "^9.0.10", "install": "^0.13.0", "jest": "^29.7.0", "prettier": "^2.8.4", @@ -3776,6 +3777,21 @@ "node": ">=10.17.0" } }, + "node_modules/husky": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.10.tgz", + "integrity": "sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==", + "dev": true, + "bin": { + "husky": "bin.mjs" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/ignore": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", diff --git a/package.json b/package.json index ec2a7de..86d8e40 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", + "husky": "^9.0.10", "install": "^0.13.0", "jest": "^29.7.0", "prettier": "^2.8.4", @@ -60,5 +61,10 @@ "ts-node": "^10.9.2", "tslib": "^2.5.0", "typescript": "^5.3.3" + }, + "husky": { + "hooks": { + "pre-commit": "npm run test" + } } }