commitizen / commitizen/cz-cli

Add `yarn pnp` support

Ouverte
#995 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
17.5k
Forks
566
Merge moyen
8 h 16 min
PR mergées (30 j)
1

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.