You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2023/06/07 08:19:48 UTC

[echarts] branch move-test-dep updated: fix(husky): fix husky hooks not install brought by the update in 73e566cce94326e87173c2bf5699bc90864334e9

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch move-test-dep
in repository https://gitbox.apache.org/repos/asf/echarts.git


The following commit(s) were added to refs/heads/move-test-dep by this push:
     new 82d3a85a0 fix(husky): fix husky hooks not install brought by the update in 73e566cce94326e87173c2bf5699bc90864334e9
82d3a85a0 is described below

commit 82d3a85a065c4b503852e4d764ea470793c244c0
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Wed Jun 7 16:04:40 2023 +0800

    fix(husky): fix husky hooks not install brought by the update in 73e566cce94326e87173c2bf5699bc90864334e9
---
 .husky/pre-commit | 5 +++++
 package.json      | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100644
index 000000000..e7e681f4b
--- /dev/null
+++ b/.husky/pre-commit
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+. "$(dirname -- "$0")/_/husky.sh"
+
+npm run lint
+npm run checktype
diff --git a/package.json b/package.json
index bfb301960..cd9e31b00 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
     "build:extension": "node build/build.js --type extension",
     "dev:fast": "node build/build-i18n.js && node build/dev-fast.js",
     "dev": "npx -y concurrently -n build,server \"npm run dev:fast\" \"npx -y http-server -c-1 -s -o test\"",
-    "prepare": "npm run build:lib",
+    "prepare": "npm run build:lib && husky install",
     "release": "npm run build:lib && npm run build:i18n && npm run build && npm run build:esm && npm run build:extension",
     "help": "node build/build.js --help",
     "test:visual": "node test/runTest/server.js",


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org