`@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.
10 lines
206 B
TypeScript
10 lines
206 B
TypeScript
const [command = ""] = process.argv.splice(2, 1);
|
|
switch (command) {
|
|
case "commit-msg": {
|
|
await import("./commit-msg.js");
|
|
break;
|
|
}
|
|
default: {
|
|
console.error(`⛔ unknown command ${command}`);
|
|
}
|
|
}
|