Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 .git 目录不在 paackage.json 的同级目录如何配置 #834

Closed
vxhly opened this issue May 26, 2021 · 1 comment
Closed

关于 .git 目录不在 paackage.json 的同级目录如何配置 #834

vxhly opened this issue May 26, 2021 · 1 comment

Comments

@vxhly
Copy link

vxhly commented May 26, 2021

我的项目采用的不是传统的仓库结构,而是如下面这样的结构

- project
  - .git
  - package01
    - node_modules
    - package.json
  - package02
    - node_modules
    - package.json

请问我如何配置可使用 commitizen, 如果我在 package01 目录下执行 git init 时是可以成功达到需要的,但是我不想这么做

模块的 package.json 配置如下

{
"devDependencies": {
"@commitlint/cli": "^12.1.4",
    "@commitlint/config-conventional": "^12.1.4",
    "commitizen": "^4.2.4",
    "conventional-changelog": "^3.1.4",
    "conventional-changelog-cli": "^2.0.17",
    "cz-customizable": "^6.0.0",
"husky": "^6.0.0",
}
  "config": {
    "commitizen": {
      "path": "node_modules/cz-customizable"
    }
  },
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants