- Notifications
You must be signed in to change notification settings - Fork 443
Closed
Description
Since @commitlint/load release v9, this line of code is not working anymore and as a result, no config could be downloaded
https://github.com/commitizen/cz-conventional-changelog/blob/master/index.js#L32
The reason is require('@commitlint/load')
now returns {default: func}
but not function itself.
Here is my package.json:
{ "scripts": { "commit": "git-cz" }, "devDependencies": { "@commitlint/cli": "^9.1.1", "@commitlint/config-conventional": "^9.1.1", "commitizen": "^4.1.2", "conventional-github-releaser": "^3.1.3", "cz-conventional-changelog": "^3.2.0", "husky": "^4.2.5", "lint-staged": "^10.2.2", "typescript": "^3.9.2", }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-commit": "lint-staged" } }, "lint-staged": { "src/**/*.ts": [ "eslint --fix" ] } }
It didnt work even if you specify @commitlint packages versions as 8.3.5, or specify @commitilint/load directly to deps with version 8.3.5. It looks like cz-conventional-changelog
installs latest version by itself
Metadata
Metadata
Assignees
Labels
No labels