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": []