From 50607e48b9803f5347c5500e7cf89b1126947954 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Wed, 9 Oct 2024 18:25:40 +0300 Subject: [PATCH] move precommit check to npm script (#4220) --- .husky/pre-commit | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c27d8893a9..f27575a8ed 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -lint-staged +npm run precommit diff --git a/package.json b/package.json index f0de106263..7327e21c17 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "testonly:watch": "npm run testonly -- --watch", "prettier": "prettier --cache --cache-strategy metadata --write --list-different .", "prettier:check": "prettier --cache --cache-strategy metadata --check .", + "precommit": "lint-staged", "check:spelling": "cspell --cache --no-progress \"**/*\"", "check:integrations": "mocha --full-trace resources/integration-test.ts", "serve": "docusaurus serve --dir websiteDist/ --config website/docusaurus.config.cjs",