Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 742 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 742 Bytes

commitizen adapter using commitlint.config.js

@commitlint/prompt

This is the library and commitizen adapter version of commitlint prompt. A ready-to-use cli version is available at @commitlint/prompt-cli. Learn how to use it at docs/prompt.

Getting started

npm install --save-dev @commitlint/prompt @commitlint/config-conventional commitizen
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js

In package.json

{
  "scripts": {
    "commit": "git-cz"
  },
  "config": {
    "commitizen": {
      "path": "@commitlint/prompt"
    }
  }
}
git add .
npm run commit