commitizen / commitizen/cz-cli

Add `yarn pnp` support

オープン
#995 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
17.5k
フォーク
566
平均マージ
8時間 16分
マージ済み PR(30日)
1

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。