Skip to content

Commit be2e411

Browse files
committed
chore: fix scripts
1 parent 220726e commit be2e411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/preCommit.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ const simpleGit = require('simple-git');
33
const git = simpleGit();
44
git.diff({ '--name-only': true, '--staged': true }).then(res => {
55
const files = res.split('\n').filter(Boolean);
6-
// disallow commit example folder
7-
const status = files.some(file => file.startsWith('example/'));
6+
// disallow commit examples folder
7+
const status = files.some(file => file.startsWith('examples/'));
88
if (status) {
9-
console.error('\n✖ Do not commit the "example" folder \n');
9+
console.error('\n✖ Do not commit the "examples" folder \n');
1010
process.exit(1);
1111
}
1212
process.exit(0);

0 commit comments

Comments
 (0)