feat(@websnacksjs/conventional): initial implementation
`@websnacksjs/conventional` is a cli program which can be used with `husky` & git hooks to enforce that commit messages adhere to the conventional commits standard.
This commit is contained in:
parent
3165625fb7
commit
5f519f54f2
19 changed files with 1446 additions and 1 deletions
10
packages/conventional/src/bin/main.ts
Normal file
10
packages/conventional/src/bin/main.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const [command = ""] = process.argv.splice(2, 1);
|
||||
switch (command) {
|
||||
case "commit-msg": {
|
||||
await import("./commit-msg.js");
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
console.error(`⛔ unknown command ${command}`);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue