Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bassist/commit

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bassist/commit - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "@bassist/commit",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simple Commit Lint by @chengpeiquan .",

@@ -5,0 +5,0 @@ "author": "chengpeiquan <chengpeiquan@chengpeiquan.com>",

@@ -26,9 +26,32 @@ # @bassist/commit

1. Initialize Husky configuration according to [getting-started](https://typicode.github.io/husky/getting-started.html) documentation
1. Initialize Husky configuration according to [getting-started](https://typicode.github.io/husky/get-started.html) documentation
```bash
pnpm add -D husky
pnpm exec husky init
```
2. Run the following command on the command line to add the check script to the `commit-msg` hook:
```bash
npx husky set .husky/commit-msg "npx @bassist/commit $1"
npx husky set .husky/commit-msg 'npx @bassist/commit "$1"'
```
If this package is installed locally (e.g. `devDependencies` ), it can also be called through the `commit` alias.
```bash
pnpm add -D @bassist/commit
npx husky set .husky/commit-msg 'pnpm exec commit "$1"'
```
## FAQ
- Q: hook was ignored because it's not set as executable
A: solve it with the command below (See: [#1177](https://github.com/typicode/husky/issues/1177)).
```bash
chmod ug+x .husky/*
```
## Git Commit Message Convention

@@ -35,0 +58,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc