Browse Source

fix: license header autoinstall (#455)

* fix: autoinstall license dep

* chore: add filter
chenjiawei.inizio 6 months ago
parent
commit
e5d73966b4
3 changed files with 5 additions and 2 deletions
  1. 2 0
      common/autoinstallers/license-header/index.js
  2. 1 1
      common/git-hooks/pre-commit
  3. 2 1
      cspell.json

+ 2 - 0
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, '../../../');
 

+ 1 - 1
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

+ 2 - 1
cspell.json

@@ -22,7 +22,8 @@
     "Sandpack",
     "testrun",
     "zoomin",
-    "zoomout"
+    "zoomout",
+    "Bytedance"
   ],
   "ignoreWords": [],
   "import": []