commitizen / commitizen/cz-cli

Add `yarn pnp` support

Đang mở
#995 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
17.5k
Fork
566
Merge trung bình
8 giờ 16 phút
Pull request đã merge (30 ngày)
1

Mô tả

Currently if you are using yarn pnp with this package, you will (understandably) get this error message:
```
Attempting to initialize using the npm package cz-conventional-changelog
Error: Could not locate node_modules in your project's root directory. Did you forget to npm init or npm install?
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
```
This is after installing commitizen locally via:
```
yarn add -D commitizen
```
and then running to following init command:
```
yarn dlx commitizen init cz-conventional-changelog --yarn --save-dev --save-exact
```

This is because `yarn pnp` does not use node_modules folder to install it's packages.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.