From e5d73966b4e49881f98a19d7ba3da0f2b4532a46 Mon Sep 17 00:00:00 2001 From: "chenjiawei.inizio" <289056872@qq.com> Date: Thu, 3 Jul 2025 18:16:49 +0800 Subject: [PATCH] fix: license header autoinstall (#455) * fix: autoinstall license dep * chore: add filter --- common/autoinstallers/license-header/index.js | 2 ++ common/git-hooks/pre-commit | 2 +- cspell.json | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/autoinstallers/license-header/index.js b/common/autoinstallers/license-header/index.js index e9aac029..831cf839 100644 --- a/common/autoinstallers/license-header/index.js +++ b/common/autoinstallers/license-header/index.js @@ -11,6 +11,8 @@ const ignoreFile = fs.readFileSync(path.join(__dirname, "../../../.gitignore"), encoding: "utf-8", }); ig.add(ignoreFile); +// ignore cli install demos +ig.add(['.next', 'doc_build']); const src = path.resolve(__dirname, '../../../'); diff --git a/common/git-hooks/pre-commit b/common/git-hooks/pre-commit index 8c9dcbcc..0037e123 100755 --- a/common/git-hooks/pre-commit +++ b/common/git-hooks/pre-commit @@ -11,5 +11,5 @@ if [ "$PRE_LINT" != "1" ]; then node common/scripts/install-run-rush.js -q lint-staged || exit $? node common/scripts/install-run-rush.js check - node common/autoinstallers/license-header/index.js + node common/scripts/install-run-rush.js license-header fi diff --git a/cspell.json b/cspell.json index 33359260..884a9563 100644 --- a/cspell.json +++ b/cspell.json @@ -22,7 +22,8 @@ "Sandpack", "testrun", "zoomin", - "zoomout" + "zoomout", + "Bytedance" ], "ignoreWords": [], "import": []