Skip to content

Commit 0a5be2a

Browse files
committed
test
1 parent ebac720 commit 0a5be2a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/gitHooks/prettier.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ async function doPrettierCommit(changedFiles) {
6565
}
6666

6767
// Only run on .js or .ts files.
68-
const targetFiles = changedFiles.filter(line => line.match(/(js|ts)$/));
68+
const targetFiles = changedFiles.filter(line => {
69+
const res = line.match(/(js|ts)$/);
70+
console.log(res, line);
71+
return true;
72+
});
73+
6974
if (targetFiles.length === 0) {
7075
console.log('No files changed.');
7176
return;

0 commit comments

Comments
 (0)