commitizen / commitizen/cz-cli

YARN 3- Usage Error: Couldn't find a script named "cz".

Offen
#951 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
17.5k
Forks
566
Ø Merge
8 Std. 16 Min.
Gemergte PRs (30 T.)
1

Beschreibung

We've been using Yarn Classic for our project, which is a monorepo with different workspaces.. We decided to upgrade yarn to Yarn version 3.2.3.

We used to run:

`yarn workspace @repo/plugin cz`

and it worked.

Now with the new version, it throws, even though we have it already installed at the root level

```

Usage Error: Couldn't find a script named "cz".

$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] ...
```

We have already set the following in settings inside the package.json workspace

```
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
```
It works fine if I install the dependency inside the plugin, but it shouldn't happen as it is already installed at the root level, and as I explained before it still works with yarn classic.

I've been stuck with issues for a while, so I wonder if Yarn 3.2.3 has a different way of doing things that throws that error or if it is a compatibility issue.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere den Fehler mit Yarn 3.2.3 unter Verwendung des workspace-Befehls und der im Bericht gezeigten package.json-Konfiguration. Vergleiche die Auflösung von Abhängigkeiten und Skripten zwischen dem Root-Workspace und dem Plugin; abgeschlossen ist die Aufgabe, wenn festgestellt wurde, ob es sich um ein Kompatibilitätsproblem handelt, und das unterstützte Setup dokumentiert oder korrigiert wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, node.js
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.